6. 密码文件接口

6.1. 获取全部密码文件列表

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 获取全部密码文件列表

Request-example:

curl -X GET -i /api/password/getList

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

array

返回内容

-

└─id

string

主键

-

└─name

string

用户名

-

└─pass

string

密码

-

└─descr

string

No comments found.

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": [
    {
      "id": "",
      "name": "",
      "pass": "",
      "descr": ""
    }
  ]
}

6.2. 添加或编辑密码文件

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 添加或编辑密码文件

Query-parameters:

Parameter Type Description Required Since

id

string

主键

false

-

name

string

用户名

false

-

pass

string

密码

false

-

descr

string

No comments found.

false

-

Request-example:

curl -X GET -i /api/password/insertOrUpdate?id=&name=&pass=&descr=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {}
}

6.3. 删除密码文件

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 删除密码文件

Query-parameters:

Parameter Type Description Required Since

id

string

密码文件id

false

-

Request-example:

curl -X GET -i /api/password/del?id=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {}
}