文档
测试

保存路由

POST
/router/saveRouter

接口描述

新增编辑路由

请求头

参数名
类型
描述
必填
Authorization
String
用户token
必填
Content-Type
String
application/json
必填

请求参数

参数名
类型
描述
必填
id
Integer
id,编辑时使用
必填
path
String
状态(0,禁用 1正常)
必填
parentId
String
上级id
必填
title
String
名称
必填
repo
String
代码仓库
必填
resource
String
源码路径
必填
meta
String
meta
必填
status
String
状态
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态值(200成功,其他均为失败)
必填
error
String
失败原因
必填
payload
List
必填
message
String
必填