文档
测试

管理员登录

POST
http://localhost:8886/admin/login

请求参数

参数名
类型
描述
必填
username
String
用户名
必填
password
String
密码
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码,200-成功,100-失败
必填
code
Integer
layUI默认状态码,0-成功
必填
data
T
用户实体
可选
msg
String
失败消息
可选

失败的返回示例

{ "status": 100, "code": 0, "msg": "用户名或密码错误" }

成功的返回示例

{ "status": 200, "code": 0, "data": { "id": 3, "userName": "shs", "password": "12345", "productPower": 1, "productTypePower": 1, "noticePower": 1, "informationPower": 1, "orderPower": 1, "status": 0 } }