- 新增3个数据模型: discount_marketing, discount_promo_code, discount_customer_bind - 新增CRUD定义: marketing/promo_code/customer_bind 的list和api - 新增init/data.json: appcodes编码(促销码类型、绑定方式) - init.py: bind_customer支持customerid参数覆盖(注册场景) - 折扣校验放宽至 0 < discount <= 1
41 lines
906 B
JSON
41 lines
906 B
JSON
{
|
|
"appcodes": [
|
|
{
|
|
"id": "promo_code_type",
|
|
"name": "促销码类型",
|
|
"hierarchy_flg": "0"
|
|
},
|
|
{
|
|
"id": "bind_type",
|
|
"name": "客户绑定方式",
|
|
"hierarchy_flg": "0"
|
|
}
|
|
],
|
|
"appcodes_kv": [
|
|
{
|
|
"id": "promo_code_type_1",
|
|
"parentid": "promo_code_type",
|
|
"k": "1",
|
|
"v": "促销码"
|
|
},
|
|
{
|
|
"id": "promo_code_type_2",
|
|
"parentid": "promo_code_type",
|
|
"k": "2",
|
|
"v": "邀请码"
|
|
},
|
|
{
|
|
"id": "bind_type_1",
|
|
"parentid": "bind_type",
|
|
"k": "1",
|
|
"v": "促销码"
|
|
},
|
|
{
|
|
"id": "bind_type_2",
|
|
"parentid": "bind_type",
|
|
"k": "2",
|
|
"v": "手动分配"
|
|
}
|
|
]
|
|
}
|