说明

角色分配

请求地址

环境 请求地址
测试环境 https://m.umxnt.com/api/role/assRole
正式环境 https://xy.umxnt.com/api/role/assRole

请求参数

参数 类型 是否必填 最大长度 描述
token string 令牌
user_id string 用户id
asp string 分配传1
roles string 不传代表查询此用户的角色列表,角色列表添加格式为多个数组['1','2']
  • 返回值示例 成功请求示例

    {
      "status": 1,
      "msg": "添加成功"
    }
    
  • 失败请求示例

    {
        "msg":"无效参数",
        "status":0
    }
    

results matching ""

    No results matching ""