企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## 信息 ~~~[api] post:/elecoupons/info *int:id=默认值1#ID <<< success { "code": 0, "info": "成功", "data":{ "id": 2, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0, "code": 0, "deduction": "10.00", "money": "100.00", "validity_type": 1, "validity": 30, "start_date": "2018-11-01", "end_date": "2019-01-01", "use_week": "1,2,3", "is_giving": 1, "get_limit_type": 1, "get_limit": 2, "use_limit": 1, "rules": "我是使用规则", "user_id": 1000 } } <<< error ~~~ ## 列表 ~~~[api] post:/elecoupons/getlist *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ {"id": 4, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 3, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 2, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 1, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…} ] } <<< error ~~~ ## 添加add ~~~[api] post:/elecoupons/add *int:type=1#电子券类型 1现金券,2兑换券 *string:title=test#电子券名称 *int:deduction=10# type=1 必传 --- 可抵扣金额 *int:validity_type=1|2|3#有效期1-指定时间,2-领取计算,3会员有效期 *string:start_num=2018-11-01# validity_type=1,选择时间段-开始时间,validity_type=2;电子券领取后多少天开始计算 *string:end_num=2018-12-01# validity_type=1,选择时间段-结束时间,validity_type=2,有效天数 *string:use_week=1,2,3 # 周一到周天 *int:is_giving=1#是否可赠送,0否,1是 *int:get_limit_type=1#领取限制:1-不限制,2-数量限制,3-有效期内仅一张 *int:get_limit=2 #数量限制输入数量 *string:level_ids=1# get_limit_type=4 适用等级ID串 int:use_limit=1# type=1 必传 --- 使用限制,0不可叠加,1可叠加 *string:rules=test#使用规则 *string:shop_ids=1,2,3#适用门店ID串 int:num=30#数量 int:money=100# type=1 传 --- 满多少金额可用 *int:inventory=10# 库存数量 *int:is_self=10# 是否支持自助核销 0-不支持,1-支持 *array:put=array#可投放员工id数组 *array:auditor=array#可核销员工id数组 <<< success <<< error ~~~ ## 编辑标题、规则 ~~~[api] post:/elecoupons/edittitle *int:id=1000#Id *string:title=test#电子券名称 string:rules=test#使用规则 <<< success <<< error ~~~ ## 删除 ~~~[api] post:/elecoupons/del *int:id=1000#Id <<< success ~~~ ## 制券记录 ~~~[api] post:/elecoupons/logslist *int:page=1#页码 *int:limit=10#每页显示个数 <<< success <<< error ~~~ ## 库存变更 ~~~[api] post:/elecoupons/addinventory *int:plusOrMinus=1#1-增加,0减少 *int:inventory_num=10#库存数 *int:coupon_id=1#电子券ID <<< error ~~~ ## 库存变更列表 ~~~[api] post:/elecoupons/getinventorylist *int:page=1#页码 *int:limit=10#每页显示个数 *int:coupon_id=1#电子券ID <<< success <<< error ~~~ ## 设置电子券 投放人、核销人 ~~~[api] post:/elecoupons/setadd *int:coupon_id=1#电子券ID *int:type=1# 1-投放人,2-核销人 *array:user_ids=array#员工id数组 <<< success <<< error ~~~ ## 获取电子券 投放人、核销人 ~~~[api] post:/elecoupons/getuser *int:coupon_id=1#电子券ID *int:type=1# 1-投放人,2-核销人 <<< success <<< error ~~~