Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
project-credit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • project-credit
  • Wiki
  • api

Last edited by 金小龙 Sep 22, 2016
Page history
This is an old version of this page. You can view the most recent version or browse the history.

api

登陆

地址:user/login

参数列表:

  • action: String 定值 login

  • username : String 对应用户名

  • password : String 对应密码

返回值说明:

返回带有两个参数的josn字符串

如:{"code":"101","message":"\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef"}

  • code:0 代表登录成功

  • code:100 登陆信息不完整

  • code:101 用户名或密码错误

  • code:102 格式不正确

修改密码

地址:/user/login/

参数列表:

  • action: String 定值 update_password

  • old_password : String 对应原始密码

  • new_password : String 对应要更改密码

返回值说明:

返回带有两个参数的josn字符串

如:{"code":"0","message":"\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef"}

  • code:0 代表密码修改成功

  • code:100 缺少参数

  • code:101 原始密码错误

Clone repository
  • api
  • crontab
  • db
  • doc
  • files
  • Home
  • sql