Explorar o código

客户分析
删除方案
删除方案商品

Gao %!s(int64=2) %!d(string=hai) anos
pai
achega
a276844989
Modificáronse 2 ficheiros con 54 adicións e 8 borrados
  1. 3 3
      application/api/controller/Programme.php
  2. 51 5
      public/api.html

+ 3 - 3
application/api/controller/Programme.php

@@ -167,7 +167,7 @@ class Programme extends Api
     }
     /**
      * 删除方案
-     *ApiParams (name=id,description=方案id)
+     *@ApiParams (name=id,description=方案id)
      */
     public function delete(){
         $id = input('id');
@@ -177,8 +177,8 @@ class Programme extends Api
     }
     /**
      * 删除方案商品
-     *ApiParams (name=id,description=方案id)
-     * ApiParams (name=goods_id,description=商品id,删除多个商品用逗号分割)
+     *@ApiParams (name=id,description=方案id)
+     * @ApiParams (name=goods_id,description=商品id,删除多个商品用逗号分割)
      */
     public function deleteGoods(){
         $id = input('id');

+ 51 - 5
public/api.html

@@ -7209,7 +7209,24 @@
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>参数</strong></div>
                                         <div class="panel-body">
-                                                                                        无
+                                                                                        <table class="table table-hover">
+                                                <thead>
+                                                    <tr>
+                                                        <th>名称</th>
+                                                        <th>类型</th>
+                                                        <th>必选</th>
+                                                        <th>描述</th>
+                                                    </tr>
+                                                </thead>
+                                                <tbody>
+                                                                                                        <tr>
+                                                        <td>id</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>方案id</td>
+                                                    </tr>
+                                                                                                    </tbody>
+                                            </table>
                                                                                     </div>
                                     </div>
                                     <div class="panel panel-default">
@@ -7231,7 +7248,8 @@
                                                 <div class="panel-body">
                                                     <form enctype="application/x-www-form-urlencoded" role="form" action="/api/programme/delete" method="get" name="form53" id="form53">
                                                                                                                 <div class="form-group">
-                                                            无
+                                                            <label class="control-label" for="id">id</label>
+                                                            <input type="string" class="form-control input-sm" id="id" required placeholder="方案id" name="id">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="53">提交</button>
@@ -7322,7 +7340,30 @@
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>参数</strong></div>
                                         <div class="panel-body">
-                                                                                        无
+                                                                                        <table class="table table-hover">
+                                                <thead>
+                                                    <tr>
+                                                        <th>名称</th>
+                                                        <th>类型</th>
+                                                        <th>必选</th>
+                                                        <th>描述</th>
+                                                    </tr>
+                                                </thead>
+                                                <tbody>
+                                                                                                        <tr>
+                                                        <td>id</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>方案id</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>goods_id</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>商品id</td>
+                                                    </tr>
+                                                                                                    </tbody>
+                                            </table>
                                                                                     </div>
                                     </div>
                                     <div class="panel panel-default">
@@ -7344,7 +7385,12 @@
                                                 <div class="panel-body">
                                                     <form enctype="application/x-www-form-urlencoded" role="form" action="/api/programme/deleteGoods" method="get" name="form54" id="form54">
                                                                                                                 <div class="form-group">
-                                                            无
+                                                            <label class="control-label" for="id">id</label>
+                                                            <input type="string" class="form-control input-sm" id="id" required placeholder="方案id" name="id">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="goods_id">goods_id</label>
+                                                            <input type="string" class="form-control input-sm" id="goods_id" required placeholder="商品id" name="goods_id">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="54">提交</button>
@@ -13780,7 +13826,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2022-09-28 17:12:46 <a href="./" target="_blank">后台管理</a>
+                    Generated on 2022-09-28 17:15:15 <a href="./" target="_blank">后台管理</a>
                 </div>
             </div>