- 新增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
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"tblname": "discount_marketing",
|
|
"alias": "discount_marketing_list",
|
|
"title": "营销方案",
|
|
"params": {
|
|
"browserfields": {
|
|
"name": {
|
|
"title": "方案名称"
|
|
},
|
|
"resellerid": {
|
|
"title": "商户机构",
|
|
"width": 150
|
|
},
|
|
"enabled_date": {
|
|
"title": "启用日期",
|
|
"width": 120
|
|
},
|
|
"expired_date": {
|
|
"title": "失效日期",
|
|
"width": 120
|
|
},
|
|
"status": {
|
|
"title": "状态",
|
|
"width": 80
|
|
},
|
|
"created_at": {
|
|
"title": "创建时间",
|
|
"width": 160
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/marketing_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/marketing_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/marketing_delete.dspy')}}"
|
|
},
|
|
"logined_userorgid": "resellerid"
|
|
}
|
|
}
|