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

上架or下架秒杀


接口URL

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

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Body参数

参数名示例值参数类型是否必填参数描述
id3Integer秒杀id
status1Integer状态:0禁用1启用

成功响应示例

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