进存销系统

进存销系统接口文档


用户登录

[TOC]

简要描述
  • 用户登录接口
请求URL
  • http://www.changbaiqi.com:8989/user/login
请求方式
  • POST
参数
参数名 必选 类型 说明
username string 用户名
password string 密码
code string 验证码
返回示例
//登录成功
{
    "code":200,
    "msg": "登录成功",
    "data":{
      "username":"admin",
      "groupid":"1",
      "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZ…TAifQ.VbNpJgrrQ7gHZ369p-srNwdqVWNWDF7hUWMWnyDBR5g"
 }
}
 //验证码错误
 {
    "code": 400,
    "msg","验证码错误",
    "data":{
    "codeImg":"data:image/png;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAA8ANwDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ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FCgDJ4GFH45PUk1IIPLGEmlAz0LbsZPvn1/zih2voNaK423RhAqQMqRpmNUMJQKFO3AHHHHHYjGOOaS3Zlh2wqJFVmG4zl+cnIycng5GO2Mdqz768nsbeIRSE9Uy/zEfJnOe59zmqmnWlxrCXEtxqt+jRTGJRDKEGAAeQB1+Y/pQF+h//2Q=="
    } 
 }
 //用户名或密码错误
 {
 "code":"400",
 "msg":"用户名或密码错误"
 }
返回参数说明
参数名 类型 说明
username string 用户名
token string 服务器生成的token
code int 状态码,<br />200:成功;<br />400:验证码错误;<br />400:用户名或密码错误;
msg string 返回消息
codeImg string 返回图形的验证码base64编码
groupid int 用户组id,1:超级管理员;2:普通用户;
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML