🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**简要描述:** - 添加活动 **请求URL:** - ` /lucky_draw.lucky_draw/add` **请求方式:** - POST **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |name |是 |string |活动名称| |start_time|是 |int|开始时间,时间戳| |end_time |是 |int |结束时间,时间戳| |need_integral|是 |int|需要消耗的积分| |frequency_type|是 |int|抽奖次数类型| |frequency|是 |int|抽奖次数| |rule|是 |string|抽奖规则| |show_winning_list|是 |int|是否显示中奖名单| |remark|否|string|备注| |prizes|是 |array|奖品| |prizes.name|是 |string|奖品名称| |prizes.image|是 |string|奖品图片| |prizes.type|是 |string|奖品类型| |prizes.type_value|是 |string|奖品类型值| |prizes.num|是 |string|奖品数量| |prizes.probability|是 |string|中奖概率| |prizes.tips|是 |string|中奖提示| **传参示例:** ``` { "name": "活动一", "start_time": 1600000000, "end_time": 1600000000, "need_integral": 10, "frequency_type": 0, "frequency": 0, "rule": "一个用户一天只能抽5次", "show_winning_list": 1, "remark": "这是备注呀", "prizes": [ {"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {"name": "优惠券", "image": "xxx", "type":2, "type_value":5,"num":100,"probability":20,"tips":"恭喜您中了优惠券"}, {"name": "余额", "image": "xxx", "type":3, "type_value":3,"num":100,"probability":30,"tips":"恭喜您中了余额"}, {"name": "积分", "image": "xxx", "type":1, "type_value":5,"num":100,"probability":30,"tips":"恭喜您中了积分"}, {"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"} ] } ``` **返回示例:** ``` { "code": 1, "show": 0, "msg": "添加成功", "data": [] } ```