xieruidong 2 years ago
parent
commit
6b4b8465a5
2 changed files with 15 additions and 1 deletions
  1. 4 0
      application/api/controller/mall/GoodsCoupon.php
  2. 11 1
      public/api.html

+ 4 - 0
application/api/controller/mall/GoodsCoupon.php

@@ -16,6 +16,7 @@ class GoodsCoupon extends Api
      * 优惠券列表
      * @ApiParams (name=is_use,description="0未使用1已使用不传查全部")
      * @ApiParams (name=is_expire,description="0未过期1已过期不传查全部")
+     * @ApiParams (name=id,description="券id")
      * @ApiReturnParams (name=id,description=券ID)
      * @ApiReturnParams (name=amount,description=优惠金额)
      * @ApiReturnParams (name=amount_full,description=满多少可用)
@@ -32,6 +33,9 @@ class GoodsCoupon extends Api
         if(isset($data['is_use']) && is_numeric($data['is_use'])){
             $map['is_use']=$data['is_use'];
         }
+        if(!empty($data['id'])){
+            $map['id']=$data['id'];
+        }
         if(isset($data['is_expire'])){
             if($data['is_expire']){
                 $not_expire=false;

+ 11 - 1
public/api.html

@@ -13949,6 +13949,12 @@
                                                         <td>是</td>
                                                         <td>0未过期1已过期不传查全部</td>
                                                     </tr>
+                                                                                                        <tr>
+                                                        <td>id</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>券id</td>
+                                                    </tr>
                                                                                                     </tbody>
                                             </table>
                                                                                     </div>
@@ -13979,6 +13985,10 @@
                                                             <label class="control-label" for="is_expire">is_expire</label>
                                                             <input type="string" class="form-control input-sm" id="is_expire" required placeholder="0未过期1已过期不传查全部" name="is_expire">
                                                         </div>
+                                                                                                                <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="32">提交</button>
                                                             <button type="reset" class="btn btn-info" rel="32">重置</button>
@@ -18432,7 +18442,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2022-11-28 16:22:05 <a href="./" target="_blank">苏州屏酷有限公司</a>
+                    Generated on 2022-11-28 18:40:40 <a href="./" target="_blank">苏州屏酷有限公司</a>
                 </div>
             </div>