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

更新网校信息


接口URL

http://demonuxtapi.dishait.cn/admin/s/school/update

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Body参数

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

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"id": 11,
		"name": "帝莎编程123",
		"level_id": 0,
		"level_last_time": null,
		"user_id": 1,
		"balance": "1.00",
		"w_balance": "50.00",
		"t_balance": "100.00",
		"appid": "bd9d01ecc75dbbaaefce",
		"status": 1,
		"created_time": "2021-02-27T16:18:58.000Z",
		"updated_time": "2021-03-21T09:13:36.565Z",
		"userId": 1
	},
	"code": 20000
}

错误响应示例

json5
{
	"msg": "fail",
	"data": "当前网校不存在!"
}