多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 权益信息 ~~~[api] post:/memberpower/info *int:id=默认值1#权益id <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "name": "权益1修改", "num": 4, "term_validity": "2018-11-11", "type": 1, "mlevel_id": 2, "create_date": "2018-10-26 00:00:00" } } <<< error ~~~ ## 添加等级权益 ~~~[api] post:/memberpower/add *string:name=test#会员等级权益名称 *string:num= 5#次数 *int:term_validity= 2018-10-10#有效期 *int:type= 1#类型,1领取后有效天数,2截止日期 *int:mlevel_id= 1#会员等级id <<< success { "code": 0, "info": "成功", "data":{ "name": "权益7", "num": "6", "term_validity": "2018-11-11", "type": "2", "mlevel_id": "1", "create_date": "2018-10-26 10:00:47", "id": "6" } } <<< error ~~~ ## 编辑等级权益 ~~~[api] post:/memberpower/edit *int:id=1000#权益Id *string:name=test#会员等级权益名称 *string:num= 6#次数 *int:term_validity= 2018-10-10#有效期 *int:type= 1#类型,1领取后有效天数,2截止日期 *int:mlevel_id= 1#会员等级id <<< success { "code": 0, "info": "成功", "data":{ "name": "权益7", "num": "6", "term_validity": "2018-11-11", "type": "2", "mlevel_id": "1", "create_date": "2018-10-26 10:00:47", "id": "6" } } <<< error ~~~