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

创建网校


接口URL

http://demonuxtapi.dishait.cn/admin/school/save

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Body参数

参数名示例值参数类型是否必填参数描述
name帝莎编程String网校名称

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"level_id": 0,
		"balance": 0,
		"w_balance": 0,
		"t_balance": 0,
		"status": 1,
		"id": 14,
		"name": "帝莎编程",
		"user_id": 3,
		"appid": "a4...c3d9",
		"updated_time": "2021-03-21T09:10:44.534Z",
		"created_time": "2021-03-21T09:10:44.534Z",
		"userId": 3
	},
	"code": 20000
}

错误响应示例

json5
{
	"msg": "fail",
	"data": "网校标题不能为空"
}