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

优惠券列表


接口URL

http://demonuxtapi.dishait.cn/admin/s/coupon?page=1&status=1

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Query参数

参数名示例值参数类型是否必填参数描述
page1Integer页码
status1Integer状态:0禁用1启用

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"total": 2,
		"items": [
			{
				"id": 2,
				"school_id": 11,
				"type": "course",
				"goods_id": 4,
				"condition": "100.00",
				"price": "20.00",
				"c_num": 100,
				"received_num": 0,
				"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-25T16:06:53.000Z",
				"updated_time": "2021-03-25T16:06:53.000Z",
				"value": {
					"id": 4,
					"title": "第一个图文",
					"cover": "http://...png",
					"price": "9.98",
					"type": "media"
				}
			},
			// ...
		]
	},
	"code": 20000
}