资源一体化-用户端

资源一体化-用户端


根据id获取积分商品详情

<h4>根据id获取积分商品详情</h4> <pre><code>url: /pmall/app/welfare/info 请求方式: GET 说明: 需登录 根据id获取积分商品详情</code></pre> <p>入参参数说明:</p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>welfareId</td> <td>是</td> <td>String</td> <td>福利Id</td> </tr> </tbody> </table> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>String</td> <td>状态值</td> </tr> <tr> <td>msg</td> <td>String</td> <td>返回消息</td> </tr> <tr> <td>data</td> <td>Object</td> <td>返回的数据</td> </tr> <tr> <td>id</td> <td>String</td> <td>福利id</td> </tr> <tr> <td>title</td> <td>string</td> <td>标题</td> </tr> <tr> <td>subtitle</td> <td>string</td> <td>副标题</td> </tr> <tr> <td>description</td> <td>string</td> <td>福利描述</td> </tr> <tr> <td>startTime</td> <td>date</td> <td>开始时间</td> </tr> <tr> <td>endTime</td> <td>date</td> <td>结束时间</td> </tr> <tr> <td>marketPrice</td> <td>decimal</td> <td>市场价</td> </tr> <tr> <td>log</td> <td>string</td> <td>logo图</td> </tr> <tr> <td>coverImg</td> <td>string</td> <td>封面图</td> </tr> <tr> <td>joinPeriod</td> <td>int</td> <td>单位时间内用户的参与次数(如果是1,则1天内同一用户只能参与join_count次;如果是7,则7天内同一用户只能参与join_count次)</td> </tr> <tr> <td>joinCount</td> <td>int</td> <td>限制用户参与次数(0表示不限制)</td> </tr> <tr> <td>stockNum</td> <td>int</td> <td>库存数量</td> </tr> <tr> <td>saleNum</td> <td>int</td> <td>销售数量</td> </tr> <tr> <td>welfareExchangeTimes</td> <td>int</td> <td>该用户joinPeriod周期内已兑换次数</td> </tr> <tr> <td>timeToFinish</td> <td>int</td> <td>到活动结束剩余毫秒数</td> </tr> <tr> <td>saleNum</td> <td>string</td> <td>商品轮播图</td> </tr> <tr> <td>costCount</td> <td>int</td> <td>兑换所需积分</td> </tr> </tbody> </table> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>couponInfo</td> <td>object</td> <td>优惠券信息</td> </tr> <tr> <td>couponName</td> <td>string</td> <td>优惠券名</td> </tr> <tr> <td>sceneType</td> <td>int</td> <td>使用场景类型(0菜市,1社区服务,2线下商家)</td> </tr> <tr> <td>valueType</td> <td>int</td> <td>价值类型(0金额,1折扣)</td> </tr> <tr> <td>couponValue</td> <td>decimal</td> <td>如果是金额:抵扣价(单位:元。大于0);如果是折扣:折扣(例如6.5折.大于0小于10)</td> </tr> <tr> <td>logo</td> <td>String</td> <td>logo图url</td> </tr> <tr> <td>validType</td> <td>int</td> <td>有效期类型:0 绝对 1 相对</td> </tr> <tr> <td>validStart</td> <td>datetime</td> <td>生效时间(绝对)</td> </tr> <tr> <td>validEnd</td> <td>datetime</td> <td>失效时间(绝对)</td> </tr> <tr> <td>validDuration</td> <td>int</td> <td>持续时间(单位:天)</td> </tr> <tr> <td>useScope</td> <td>String</td> <td>适用范围描述</td> </tr> <tr> <td>useInstruction</td> <td>String</td> <td>使用说明</td> </tr> <tr> <td>amountLimit</td> <td>decimal</td> <td>优惠券使用金额限制(订单满XX金额才能使用)</td> </tr> <tr> <td>shopLimit</td> <td>json</td> <td>适用商家限制json。例子:[{&quot;shopId&quot;: 1,&quot;shopName&quot;:&quot;商家1&quot;}],[{&quot;shopId&quot;: 2,&quot;shopName&quot;:&quot;商家2&quot;}]</td> </tr> <tr> <td>categoryLimit</td> <td>json</td> <td>适用商品分类限制json。例子:[{&quot;categoryId&quot;: 1,&quot;categoryName&quot;:&quot;商家1&quot;}],[{&quot;categoryId&quot;: 2,&quot;categoryName&quot;:&quot;商家2&quot;}]</td> </tr> <tr> <td>productLimit</td> <td>json</td> <td>适用产品限制json。例子:[{&quot;productId&quot;: 1,&quot;productName&quot;:&quot;商家1&quot;}],[{&quot;productId&quot;: 2,&quot;productName&quot;:&quot;商家2&quot;}]</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code": "0000", "msg": "操作成功!", "data": { "id": 4, "title": "福利2", "subtitle": "商品1,2优惠券哦吼", "description": "描述,每1天参与1次", "startTime": "2020-04-29 01:30:25", "endTime": "2020-05-29 01:30:25", "marketPrice": 10.00, "logo": "string1", "coverImg": "string2", "joinPeriod": 1, "joinCount": 1, "stockNum": 101, "saleNum": 0, "welfareExchangeTimes": 0, "timeToFinish": 2557415, "couponTemplateId": 5, "costCount": 1000, "couponInfo": { "couponName": "测试商城商品1,2优惠券", "sceneType": 0, "valueType": 0, "couponValue": 9.90, "logo": "string", "validType": 0, "validStart": "2020-04-28 09:30:44", "validEnd": "2020-05-28 09:30:44", "validDuration": 0, "useScope": "使用范围", "useInstruction": "使用说明", "amountLimit": 10.00, "shopLimit": "[]", "categoryLimit": "[]", "productLimit": "[{\"productId\": 1, \"productName\": \"商品1\"}, {\"productId\": 2, \"productName\": \"商品2\"}]" } } }</code></pre>

页面列表

ITEM_HTML