接口地址:http://address/Campus take-out/addCoupon
字段 |
类型 |
含义 |
备注 |
cp_mid |
int |
所属商家id |
必传 |
cp_num |
int |
优惠券张数 |
必传 |
cp_content |
String |
优惠券内容 |
必传 |
cp_begintime |
datetime |
优惠券使用开始时间 |
必传 |
m_endtime |
datetime |
优惠券使用结束时间 |
必传 |
{
"cp_mid":"5c90e806-de0d-4099-b524-0fa30d62f008",
"cp_num":"10",
"cp_content":"xxxxxxx",
"cp_begintime":"2018-07-31 10:21:18.0000",
"cp_endtime":"2018-07-31 10:21:18.0000"
}
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
data |
jsonObject |
返回的数据 |
无 |
{
"code":"200",
"msg":"优惠券注册成功",
"time":1528777676503,
"data":null
}
接口地址:http://address/Campus take-out/deleteCoupon
字段 |
类型 |
含义 |
备注 |
cp_id |
int |
优惠券id |
必传 |
http://address/Campus take-out/deleteCoupon?cp_id=492330e5-aaa6-4662-aa45-8cb16b3ffb68
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
data |
jsonObject |
返回的数据 |
无 |
{
"code":"200",
"msg":"删除优惠券成功",
"time":1528980478089,
"data":null
}
接口地址:http://address/Campus take-out/updateCoupon
字段 |
类型 |
含义 |
备注 |
cp_id |
int |
优惠券id |
必传 |
cp_content |
String |
优惠券内容 |
必传 |
{
"cp_id":"bc896d00-05bd-43f0-be6b-7db6e8992c96",
"cp_content":"000xxxxxxx"
}
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
data |
jsonObject |
返回的数据 |
无 |
{
"code":"200",
"msg":"完善优惠券信息成功",
"time":1528777676503,
"data":null
}
接口地址:http://address/Campus take-out/updateCouponSuper
字段 |
类型 |
含义 |
备注 |
cp_id |
int |
优惠券id |
必传 |
cp_content |
String |
优惠券内容 |
必传 |
cp_begintime |
String |
优惠券开始使用时间 |
必传 |
cp_endtime |
String |
优惠券结束使用时间 |
必传 |
cp_num |
String |
优惠券数量 |
必传 |
cp_mid |
int |
优惠券所属商家id |
必传 |
{
"cp_mid":"22",
"cp_num":"10",
"cp_content":"xxxxxxx",
"cp_begintime":"2018-07-31 10:21:18.0000",
"cp_endtime":"2018-07-31 10:21:18.0000",
"cp_id":"xxxx"
}
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
data |
jsonObject |
返回的数据 |
无 |
{
"code":"200",
"msg":"超级管理员完善优惠券信息成功",
"time":1528777676503,
"data":null
}
接口地址:http://address/Campus take-out/getCouponByMID
字段 |
类型 |
含义 |
备注 |
cp_mid |
int |
所属商家id |
必传 |
http://address/Campus take-out/getCouponByMID?cp_mid=5c90e806-de0d-4099-b524-0fa30d62f008
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
data |
jsonObject |
返回的数据 |
无 |
cp_id |
varchar |
36 |
cp_id(主键) |
cp_mid |
int |
|
36 |
所属商家(外键) |
cp_num |
int |
10 |
优惠券数量 |
cp_content |
varchar |
255 |
优惠券内容 |
cp_begintime |
datetime |
4 |
优惠券开始使用时间 |
cp_endtime |
datetime |
4 |
优惠券失效使用时间 |
{
"code":"200",
"msg":"通过mid查询成功",
"time":1535721206528,
"data":
[
{
"cp_id":"bc896d00-05bd-43f0-be6b-7db6e8992c96",
"cp_mid":"5c90e806-de0d-4099-b524-0fa30d62f008",
"cp_num":10,
"cp_content":"000xxxxxxx",
"cp_begintime":"2018-07-31 10:21:18.0",
"cp_endtime":"2018-07-31 10:21:18.0"}
,
{
"cp_id":"ea7aed1b-339b-4199-8bde-62c54713800e",
"cp_mid":"5c90e806-de0d-4099-b524-0fa30d62f008",
"cp_num":10,
"cp_content":"000xxxxxxx",
"cp_begintime":"2018-07-31 10:21:18.0",
"cp_endtime":"2018-07-31 10:21:18.0"
}
]
}
接口地址:http://address/Campus take-out/getCouponByCPID
字段 |
类型 |
含义 |
备注 |
cp_id |
int |
优惠券id |
必传 |
http://address/Campus take-out/getCouponByCPID?cp_id=1111
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
object |
jsonObject |
返回的数据 |
无 |
cp_id |
varchar |
36 |
cp_id(主键) |
cp_mid |
int |
10 |
所属商家(外键) |
cp_num |
int |
10 |
优惠券数量 |
cp_content |
varchar |
255 |
优惠券内容 |
cp_begintime |
datetime |
4 |
优惠券开始使用时间 |
cp_endtime |
datetime |
4 |
优惠券失效使用时间 |
{
"code":"200","msg":"返回优惠券信息成功",
"time":1535974813900,
"object":
{
"cp_id":"1111",
"cp_mid":"22",
"cp_num":10,
"cp_content":"xxxxxxx",
"cp_begintime":"2018-07-31 10:21:18.0",
"cp_endtime":"2018-07-31 10:21:18.0"
}
}
接口地址:http://address/Campus take-out/getAllCoupon
http://address/Campus take-out/getAllCoupon
字段 |
类型 |
含义 |
备注 |
code |
string |
状态码 |
200成功 400失败 |
msg |
string |
状态信息 |
无 |
time |
long |
格林威治时间1970年01月01日00时00分00秒到现在的毫秒数 |
无 |
data |
jsonObject |
返回的数据 |
无 |
cp_id |
int |
10 |
cp_id(主键) |
cp_mid |
int |
10 |
所属商家(外键) |
cp_num |
int |
10 |
优惠券数量 |
cp_content |
varchar |
255 |
优惠券内容 |
cp_begintime |
datetime |
4 |
优惠券开始使用时间 |
cp_endtime |
datetime |
4 |
优惠券失效使用时间 |
{
"code":"200",
"msg":"查询所有优惠券信息成功",
"time":1535973805604,
"data":
[
{
"cp_id":"xxxx",
"cp_mid":"22",
"cp_num":0,
"cp_content":"",
"cp_begintime":null,
"cp_endtime":null
}
]
}