泛圈社群


发红包

<p><strong>简要描述:</strong> </p> <ul> <li>社群金币发红包 + 一对一发红包 + 一对多</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>/v1/goldcoin-redpackets/send-single</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">total_amount</td> <td style="text-align: left;">是</td> <td style="text-align: left;">float</td> <td>金额 保留2位小数</td> </tr> <tr> <td style="text-align: left;">total_packet</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>a、红包个数一对一 1 b、社群红包可以设置多个 这里注意一对一数字必须为1</td> </tr> <tr> <td style="text-align: left;">genre</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>广告类型 1为图片 2为视频</td> </tr> <tr> <td style="text-align: left;">note</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>备注</td> </tr> <tr> <td style="text-align: left;">video_url</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>视频地址 例如:moment/160009FnGsEFXwxU-gcWom3rwAKAVsZtKk11032021</td> </tr> <tr> <td style="text-align: left;">images</td> <td style="text-align: left;">是</td> <td style="text-align: left;">json</td> <td>图片数组 [&quot;shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png&quot;,&quot;shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png&quot;]</td> </tr> <tr> <td style="text-align: left;">indexes</td> <td style="text-align: left;">是</td> <td style="text-align: left;">json</td> <td>[1,2]</td> </tr> <tr> <td style="text-align: left;">pay_password</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>支付密码</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>1为一对一单独 2为社群红包 不传默认为一对一红包</td> </tr> <tr> <td style="text-align: left;">group_id</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>社群抢红包必发 单独发送红包不需要传值</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <p>一对一红包返回参数</p> <pre><code>{ "success": true, "statusCode": 200, "message": "OK", "data": { "id": 240, "user_id": 57, "user": { "id": "57", "nickname": "许涛", "im_identifier": "c0f5a762ea53f113485ec96c2756e5c6", "avatar": "http://resource.greenzeus.cn/user/homepage/cover/363413FlkuDFPOCJxJSlcjdRQ4gNIpCySC17112022" }, "total_amount": 1, "total_packet": "1", "deduction": null, "type": "1", "genre": "1", "note": "111", "covers": [ { "img_url": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageMogr2/auto-orient&amp;w=800&amp;h=800", "img_url_w": "800", "img_url_h": "800", "img_url_thumb": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageView2/1/w/400/h/400&amp;w=400&amp;h=400", "img_url_thumb_w": "400", "img_url_thumb_h": "400" }, { "img_url": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageMogr2/auto-orient&amp;w=800&amp;h=800", "img_url_w": "800", "img_url_h": "800", "img_url_thumb": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageView2/1/w/400/h/400&amp;w=400&amp;h=400", "img_url_thumb_w": "400", "img_url_thumb_h": "400" }, { "video_url": "http://resource.greenzeus.cn/group_cover/cf3686c1eec4ee970b08d797b751a9fe.mp4", "video_url_thumb": "http://resource.greenzeus.cn/group_cover/cf3686c1eec4ee970b08d797b751a9fe.mp4?vframe/jpg/offset/1/w/800/h/800&amp;w=800&amp;h=800", "video_url_thumb_w": "800", "video_url_thumb_h": "800" } ], "record": [], "recordcount": 0, "group_id": "1", "group": { "id": 1, "groupname": "刘思瑶nice", "compositeImage": null, "avatar": "group/avatar/7fdf1ebb36191a10d7b19b4877f92a73", "avatar_userid": "2615", "group_category_id": 1, "cover": { "url": "http://resource.greenzeus.cn/group_cover/3c7ba0340dabeae941623dccf9bf251a.mp4?vframe/jpg/offset/1/w/720/h/1280&amp;w=720&amp;h=1280", "key": "group_cover/3c7ba0340dabeae941623dccf9bf251a.mp4", "w": "720", "h": "1280", "id": 5022, "is_top": 1, "collect_num": 4415, "comment_num": 0, "collect_num_text": 4415, "comment_num_text": 0, "like_total": 563802, "is_fabulous": 0, "is_collected": 0, "address": { "id": 30613, "city": "梧州市" }, "owner": { "user_id": 2615, "im_identifier": "047090d343658e3d488b43981b69c06c", "avatar": "http://resource.greenzeus.cn/user_avatar/bb5b7cd8d1af9c85d88b3fe374b8e0c0?imageMogr2/auto-orient", "nickname": "刘思瑶nice" }, "created_at": "2022-11-03 22:12:25" }, "coverCount": 328, "coverList": [], "ad": [], "is_ad": 0, "video_url": "http://resource.greenzeus.cn/group_cover/eef42cf43eeb4efbd7d4c83316137a1c.mp4", "desc": "以梦为马 不负韶华唯一小号:@刘大嘴很nice 商务合作:18221257535团队招募策划&amp;编导,坐标:杭州简历:kongjia95@foxmail.com", "notice": "", "membersonly": 0, "banned": 0, "AVChatRoom": "rDs-uEDApkZwMNJhq7GIWKNzKLZeMd", "comment_num": 0, "comment_text": 0, "collect": 2474745, "collect_text": "247.4万", "isFollow": 0, "isCollect": 0, "isOwner": 0, "isManager": 0, "touristStatus": 0, "links": "", "citycode": "30613", "city": "梧州市", "group_type": 2, "created_at": "2022-11-03 20:47:29", "liveStatus": 0, "live_start": 0, "live_end": 0, "live_sort": 0, "roomid": "", "live_url": "", "user_id": 2615, "user": null, "is_blacklist": null, "isMember": 0, "isTourist": 0, "login_userid": 0, "isFollowOwner": 0, "memberNum": 0, "touristrNum": 0, "memberList": [], "touristList": [], "juli": 0, "mediacover": { "w": 340, "h": 420, "url": "http://resource.greenzeus.cn//group_cover/3c7ba0340dabeae941623dccf9bf251a.mp4?vframe/jpg/offset/1/w/340/h/420" }, "goodsNum": 0, "visitor": 1, "followme": "1" }, "is_mock": 1, "receive": "", "is_attention": 0, "create_time": "2022-11-25 01:27:07" }, "msg": "" }</code></pre> <p>社群抢红包功能返回参数</p> <pre><code>{ "success": true, "statusCode": 200, "message": "OK", "data": { "id": 241, "user_id": 57, "user": { "id": "57", "nickname": "许涛", "im_identifier": "c0f5a762ea53f113485ec96c2756e5c6", "avatar": "http://resource.greenzeus.cn/user/homepage/cover/363413FlkuDFPOCJxJSlcjdRQ4gNIpCySC17112022" }, "total_amount": 1, "total_packet": "5", "deduction": null, "type": "2", "genre": "1", "note": "111", "covers": [ { "img_url": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageMogr2/auto-orient&amp;w=800&amp;h=800", "img_url_w": "800", "img_url_h": "800", "img_url_thumb": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageView2/1/w/400/h/400&amp;w=400&amp;h=400", "img_url_thumb_w": "400", "img_url_thumb_h": "400" }, { "img_url": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageMogr2/auto-orient&amp;w=800&amp;h=800", "img_url_w": "800", "img_url_h": "800", "img_url_thumb": "http://resource.greenzeus.cn/shop/1579087464538_brCtscvEUvBt4j6g-GniTQ.png?imageView2/1/w/400/h/400&amp;w=400&amp;h=400", "img_url_thumb_w": "400", "img_url_thumb_h": "400" }, { "video_url": "http://resource.greenzeus.cn/group_cover/cf3686c1eec4ee970b08d797b751a9fe.mp4", "video_url_thumb": "http://resource.greenzeus.cn/group_cover/cf3686c1eec4ee970b08d797b751a9fe.mp4?vframe/jpg/offset/1/w/800/h/800&amp;w=800&amp;h=800", "video_url_thumb_w": "800", "video_url_thumb_h": "800" } ], "record": [], "recordcount": 0, "group_id": "1", "group": { "id": 1, "groupname": "刘思瑶nice", "compositeImage": null, "avatar": "group/avatar/7fdf1ebb36191a10d7b19b4877f92a73", "avatar_userid": "2615", "group_category_id": 1, "cover": { "url": "http://resource.greenzeus.cn/group_cover/3c7ba0340dabeae941623dccf9bf251a.mp4?vframe/jpg/offset/1/w/720/h/1280&amp;w=720&amp;h=1280", "key": "group_cover/3c7ba0340dabeae941623dccf9bf251a.mp4", "w": "720", "h": "1280", "id": 5022, "is_top": 1, "collect_num": 4415, "comment_num": 0, "collect_num_text": 4415, "comment_num_text": 0, "like_total": 563802, "is_fabulous": 0, "is_collected": 0, "address": { "id": 30613, "city": "梧州市" }, "owner": { "user_id": 2615, "im_identifier": "047090d343658e3d488b43981b69c06c", "avatar": "http://resource.greenzeus.cn/user_avatar/bb5b7cd8d1af9c85d88b3fe374b8e0c0?imageMogr2/auto-orient", "nickname": "刘思瑶nice" }, "created_at": "2022-11-03 22:12:25" }, "coverCount": 328, "coverList": [], "ad": [], "is_ad": 0, "video_url": "http://resource.greenzeus.cn/group_cover/492f82f7df9f000dccab9cdabe527ea2.mp4", "desc": "以梦为马 不负韶华唯一小号:@刘大嘴很nice 商务合作:18221257535团队招募策划&amp;编导,坐标:杭州简历:kongjia95@foxmail.com", "notice": "", "membersonly": 0, "banned": 0, "AVChatRoom": "rDs-uEDApkZwMNJhq7GIWKNzKLZeMd", "comment_num": 0, "comment_text": 0, "collect": 2474745, "collect_text": "247.4万", "isFollow": 0, "isCollect": 0, "isOwner": 0, "isManager": 0, "touristStatus": 0, "links": "", "citycode": "30613", "city": "梧州市", "group_type": 2, "created_at": "2022-11-03 20:47:29", "liveStatus": 0, "live_start": 0, "live_end": 0, "live_sort": 0, "roomid": "", "live_url": "", "user_id": 2615, "user": null, "is_blacklist": null, "isMember": 0, "isTourist": 0, "login_userid": 0, "isFollowOwner": 0, "memberNum": 0, "touristrNum": 0, "memberList": [], "touristList": [], "juli": 0, "mediacover": { "w": 340, "h": 420, "url": "http://resource.greenzeus.cn//group_cover/3c7ba0340dabeae941623dccf9bf251a.mp4?vframe/jpg/offset/1/w/340/h/420" }, "goodsNum": 0, "visitor": 1, "followme": "1" }, "is_mock": 1, "receive": "", "is_attention": 0, "create_time": "2022-11-25 01:27:46" }, "msg": "" } 、、</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">int</td> <td>申请ID</td> </tr> <tr> <td style="text-align: left;">user</td> <td style="text-align: left;">int</td> <td>发包人信息</td> </tr> <tr> <td style="text-align: left;">total_amount</td> <td style="text-align: left;">float</td> <td>发送金额</td> </tr> <tr> <td style="text-align: left;">total_packet</td> <td style="text-align: left;">int</td> <td>发送个数 一对一为1个</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">int</td> <td>发起类型 1为一对一 2为抢红包</td> </tr> <tr> <td style="text-align: left;">note</td> <td style="text-align: left;">string</td> <td>红包备注</td> </tr> <tr> <td style="text-align: left;">genre</td> <td style="text-align: left;">int</td> <td>广告类型 1为图片 2为视频 视频只能上转一条数据</td> </tr> <tr> <td style="text-align: left;">covers</td> <td style="text-align: left;">array</td> <td>广告信息</td> </tr> <tr> <td style="text-align: left;">record</td> <td style="text-align: left;">array</td> <td>领取红包信息</td> </tr> <tr> <td style="text-align: left;">is_mock</td> <td style="text-align: left;">array</td> <td>领取状态:1为未领取完,2为已经领取</td> </tr> <tr> <td style="text-align: left;">deduction</td> <td style="text-align: left;">array</td> <td>已领取的奖金</td> </tr> <tr> <td style="text-align: left;">create_time</td> <td style="text-align: left;">string</td> <td>发起时间</td> </tr> </tbody> </table> <pre><code>{ "success": false, "statusCode": 403, "message": "您的代金券不足!", "data": { "name": "Forbidden", "message": "您的代金券不足!", "code": 0, "status": 403 } }</code></pre> <p><strong>提示参数</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">403</td> <td style="text-align: left;">string</td> <td>您的代金券不足</td> </tr> <tr> <td style="text-align: left;">403</td> <td style="text-align: left;">string</td> <td>请先设置支付密码!</td> </tr> <tr> <td style="text-align: left;">403</td> <td style="text-align: left;">string</td> <td>请输入支付密码!</td> </tr> <tr> <td style="text-align: left;">403</td> <td style="text-align: left;">string</td> <td>支付密码错误</td> </tr> </tbody> </table>

页面列表

ITEM_HTML