# 角色管理中少了三个接口对接

## 1. 获取角色权限
    url: /api/admin/roles/{id}/permissions
    methods: get
    response: [
    {
        "available_for_role_types": "string",
        "creator": 0,
        "parent_id": 0,
        "perm_code": "string",
        "perm_name": "string",
        "perm_type": 0,
        "platform": "string",
        "sort": 0,
        "status": 0,
        "updater": 0,
        "url": "string"
    }
]
/**
* ModelPermission
  */
  export interface ApifoxModel {
  available_for_role_types?: string;
  creator?: number;
  parent_id?: number | null;
  perm_code?: string;
  perm_name?: string;
  perm_type?: number;
  platform?: string;
  sort?: number;
  status?: number;
  updater?: number;
  url?: string;
  [property: string]: any;
  }

## 2. 分配权限
    url: /api/admin/roles/{id}/permissions
    methods: post
    body: {
    "perm_ids": [
        0
    ]
}
 response: {
"code": 0,
"message": "string",
"timestamp": "2019-08-24T14:15:22.123Z"
}
## 3. 移除权限
    url: /api/admin/roles/{role_id}/permissions/{perm_id}
    export interface ApifoxModel {
    /**
     * 权限ID
     */
    perm_id: number;
    /**
     * 角色ID
     */
    role_id: number;
    [property: string]: any;
}

    methods: delete

响应: {
"code": 0,
"message": "string",
"timestamp": "2019-08-24T14:15:22.123Z"
}
