<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                #### 列表 ~~~[api] get:/dealer/promotion/coupon/index *number:storesId#門店ID string:search#搜索關鍵詞 number:p=1#當前頁數 number:ps=20#分頁大小 <<< success { "code": 1, "msg": "", "time": "2018-08-16 15:23:34", "data": [ { "id": 1, "dealer_id": 2, "stores_id": 2, "name": "優惠券1", "money": "5.00", "number": 1, "conditions": { "type": 1, "value": "" }, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2016-01-01 00:00:00", "start_at": "2016-01-01 00:00:00", "end_at": "2016-01-01 00:00:00", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 詳情 ~~~[api] get:/dealer/promotion/coupon/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-08-16 15:24:33", "data": { "id": 1, "dealer_id": 2, "stores_id": 2, "name": "優惠券1", "money": "5.00", "number": 1, "conditions": { "type": 1, "value": "" }, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2016-01-01 00:00:00", "start_at": "2016-01-01 00:00:00", "end_at": "2016-01-01 00:00:00", "status_text": "正常" } } ~~~ #### 創建 ~~~[api] post:/dealer/promotion/coupon/create *number:stores_id#門店ID *string:name#名稱 *number:money#金額 *number:number#數量 *object:conditions#條件 *number:type#類型,1=>無條件使用,2=>x商品使用,3=>訂單商品總價滿x元使用 *string:value#值 *string:start_at#開始時間 *string:end_at#結束時間 number:status=1#狀態,0=>禁用,1=>啟用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:37:29", "data": [] } <<< example { "stores_id": 2, "name": "優惠券1", "money": 1, "number": 100, "conditions": { "type": 1, "value": "" }, "start_at": 1534404038, "end_at": 1534404038 } <<< example { "stores_id": 2, "name": "優惠券2", "money": 1, "number": 100, "conditions": { "type": 2, "value": 2 }, "start_at": 1534404038, "end_at": 1534404038 } <<< example { "stores_id": 2, "name": "優惠券3", "money": 1, "number": 100, "conditions": { "type": 1, "value": 20 }, "start_at": 1534404038, "end_at": 1534404038 } ~~~ #### 更新 ~~~[api] post:/dealer/promotion/coupon/update/id/:id string:name#名稱 number:money#金額 number:number#數量 object:conditions#條件 string:start_at#開始時間 string:end_at#結束時間 number:status=1#狀態,0=>禁用,1=>啟用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:40:40", "data": [] } ~~~ #### 刪除 ~~~[api] post:/dealer/promotion/coupon/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:41:03", "data": [] } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看