Skip to content
关注公众号,获取新课通知

新增秒杀


接口URL

http://demonuxtapi.dishait.cn/admin/s/flashsale/save

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token
schoolid11Integer网校id

请求Body参数

参数名示例值参数类型是否必填参数描述
typecourseString类型:course课程,column专栏
goods_id4Integer课程/专栏id
price4.98Float秒杀价格
s_num10Integer秒杀人数
status1Integer状态:0禁用1启用
start_time2021-04-03 01:00:00DateTime秒杀开始时间
end_time2021-04-04 01:00:00DateTime秒杀结束时间

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"used_num": 0,
		"id": 3,
		"type": "course",
		"goods_id": 4,
		"price": 4.98,
		"s_num": 10,
		"status": 1,
		"start_time": "2021-04-02T17:00:00.000Z",
		"end_time": "2021-04-03T17:00:00.000Z",
		"school_id": 11,
		"updated_time": "2021-03-25T15:57:02.914Z",
		"created_time": "2021-03-25T15:57:02.914Z"
	},
	"code": 20000
}