meta { name: 启用角色 type: http seq: 9 tags: [ generated ] } post { url: {{baseUrl}}/api/roles/enable body: formUrlEncoded auth: inherit } body:form-urlencoded { id: 3 } docs { # 启用角色 `POST /api/roles/enable` 启用角色(校验菜单授权+四域档位):须过「有 menu 授权 + 四域数据范围档位齐全」校验。 ## 请求参数 | 参数 | 类型 | 必填 | 默认 | 说明 | | --- | --- | --- | --- | --- | | id | string | 是 | - | 角色 ID | ## 请求示例 请求头:Authorization: Bearer {{token}} Content-Type: application/x-www-form-urlencoded POST /api/roles/enable id=3 ## 响应 data 结构 null ## 响应示例 ```json { "code": 0, "success": true, "message": "success", "data": null } ``` }