文档
测试
POST
api.thinker2021.cn

接口描述

登录系统,获取token密钥

请求参数

参数名
类型
描述
必填
_username
string
用户名
必填
_token
string
用户密码(需传入经MD5加密的32位字符串)
必填
_usertype
string
用户类型
必填
_request
string
请求类型
必填

响应参数

参数名
类型
描述
必填
code
int
错误代码(0为成功,其他均为请求失败)
必填
info
string
错误信息
必填
token
string
用户登录密钥
必填

说明 / 示例

# Request Example ```json data={ "_username":"zhangsan", "_token":"e10adc3949ba59abbe56e057f20f883e", "_usertype":"admin", "_request":"login" } ``` # Response Example * If the request is successful, you will get response like this: ```json { "code":0, "info":"Success!", "token":"d6e231066b88fd99c53696d58c6a0992" } ``` * If your request is illegal, you will get response like this: ```json { "code":1, "info":"Illegal Request!" }