User

用户

创建用户

Request

  • Method: POST
  • URL: /api/asset-server/user/add-user
  • Headers:
    Authorization: eyJhbGciOiJIUzI1NiJ9.eyJiY2hDb2RlIjoiMDAwMDEiLCJhY2NvdW50IjoiemhhbmdnZSIsImlzcyI6IlNoYXJlQ3JlYXRvcnMiLCJpYXQiOjE2OTg5MTQwMTV9.0zWOrxwK4sEgRP1FDQXoOo9PUCXPlkqzggWa9-Ahhdg
    Bid: bfcc86ad9f6b4169aebb2fa026e6e47d
    Platform: WEB
    
  • Body:
    {
    "email": "123@sharecreators.com",
    "telephone": "13912345678",
    "phoneAreaCode": "86",
    "role": "U"
    }
    
字段名 类型 是否必填 说明
email String 文件列表
telephone String 列表数组下标
phoneAreaCode String 文件路径
role String 角色:SA-超级管理员 A-管理员 U-成员 V-访客

Response

{
    "_success": true,
    "_code": "0",
    "_msg": null,
    "traceId": "177478ae3e2444f1851269cb058c29ff",
    "_data": {
        "bch_code": "000001",
        "email": "123@sharecreators.com",
        "is_admin": "Y",
        "role": "U",
        "user_id": "a8ic1nut",
        "user_name": "123@sharecreators.com",
        "areaCode": "86",
        "phone": "13912345678"
    }
}
字段名 类型 说明
_code Integer 状态码,除了200都是失败
_msg String 报错信息
_success Boolean 成功标记
_traceId String
_data Object 响应数据封装
bch_code String 机构码
email String 邮箱
role String 角色:SA-超级管理员 A-管理员 U-成员 V-访客
user_id String 用户账号
user_name String 用户名
areaCode String 手机号区域码
phone String 手机

删除用户

Request

  • Method: POST
  • URL: /api/asset-server/user/del-user
  • Headers:
    Authorization: eyJhbGciOiJIUzI1NiJ9.eyJiY2hDb2RlIjoiMDAwMDEiLCJhY2NvdW50IjoiemhhbmdnZSIsImlzcyI6IlNoYXJlQ3JlYXRvcnMiLCJpYXQiOjE2OTg5MTQwMTV9.0zWOrxwK4sEgRP1FDQXoOo9PUCXPlkqzggWa9-Ahhdg
    Bid: bfcc86ad9f6b4169aebb2fa026e6e47d
    Platform: WEB
    
  • Body:
    {
      "list": ["333@sharecreators.com"]
    }
    
字段名 类型 是否必填 说明
list List 用户账号列表

Response

{
    "_success": true,
    "_code": "0",
    "_msg": null,
    "traceId": "177478ae3e2444f1851269cb058c29ff",
    "_data": null
}
字段名 类型 说明
_code Integer 状态码,除了200都是失败
_msg String 报错信息
_success Boolean 成功标记
_traceId String
_data Object 响应数据封装

results matching ""

    No results matching ""