文档
测试
现存接口

编辑、保存主题

POST
https://portal.dev2.supwisdom.com/portal-api/v2/theme/edit

请求头

参数名
类型
描述
必填
x-id-token
string
用户token
必填

请求参数

参数名
类型
描述
必填
标签
routerPermissionsList
array
路由权限配置列表
必填
新增
routerCode
string
路由code
必填
routerPath
string
路由访问路径
必填
routerDescription
string
路由说明
必填
roles
array
可访问的角色
必填

响应参数

参数名
类型
描述
必填
code
int
接口状态code; 示例:0=>成功 ; 非0 => 失败
必填
message
string
接口状态描述信息
必填
data
string
主题id
必填

说明 / 示例

post参数示例: ```json { "routerPermissionsList":[{ "routerCode": "Tourist", "routerPath": "/Tourist", "routerDescription": "游客", "roles": [ "1","2","3" ] }, { "routerCode": "Index", "routerPath": "/Index", "routerDesc": "通用首页", "roles":"2,3,4,6,7,8,9,10,11,12" }, { "routerCode": "Visitor", "routerPath": "/Visitor", "routerDesc": "访客首页", "roles": [ "1","2","3" ] }], } ```