文档
测试
POST
/api/login

接口描述

登录

请求参数

参数名
类型
描述
必填
account
String
账号
必填
password
String
密码
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
message
string
示例:SUCCESS
必填
data
object
数据字典
必填
token
string
登录 返回 token
必填
userName
String
登录的用户名
必填
rolePermission
array
权限菜单 数据列表
必填
id
int
菜单 id 示例:1
必填
description
string
菜单描述 示例:Supplier management
必填
parentId
int
上级菜单 id 示例:0
必填
type
int
1:菜单 2:按钮 示例:1
必填
roleList
object
菜单下级数据 示例:null
必填

说明 / 示例

{ "code": 200, "message": "SUCCESS", "data": { "account": null, "password": null, "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MDcwNDkxNTksImFjY291bnQiOiIyIn0.oC3rQY43rM2xichVAIbF2TKQgO0zwTzpZPBUdHdsDes", "rolePermission": [ { "id": 1, "description": "Supplier management", "parentId": 0, "type": 1, "roleList": null }, { "id": 2, "description": "Project management", "parentId": 0, "type": 1, "roleList": null }, { "id": 3, "description": "Supplier data analysis", "parentId": 0, "type": 1, "roleList": null }, { "id": 4, "description": "Basic configuration", "parentId": 0, "type": 1, "roleList": [ { "id": 5, "description": "User management", "parentId": 4, "type": 2, "roleList": null }, { "id": 6, "description": "Authority management", "parentId": 4, "type": 2, "roleList": null }, { "id": 7, "description": "Supplier competence table management", "parentId": 4, "type": 2, "roleList": null }, { "id": 8, "description": "Project requirement table", "parentId": 4, "type": 2, "roleList": null } ] } ] } }