NATSorganization.org.remove注销组织
Try it 面板需要启用 JavaScript。
删除组织及其团队与邀请;仅所有者可操作(本服务内校验)。
Request Payload
消息格式:JSON
| Name | Data Type | Required | Description |
|---|---|---|---|
| orgId | string | Yes | 组织 ID |
| operatorId | string | Yes | 操作者用户 ID(用于所有者校验) |
type RequestBody = {
/** 组织 ID */
orgId: string
/** 操作者用户 ID(用于所有者校验) */
operatorId: string
}{
"orgId": "01JD8SRP1N4T8W6XQ5V9XDL2Y7K",
"operatorId": "01JD8SEGQ0P9N2XK4L7VDH3T6C"
}Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
result type: null
Response Code
回复使用统一信封 {id, code, messages, result},其 code 字段:
| code | Meaning | Notes |
|---|---|---|
| 0 | 成功 | 注销组织 |
| 2501 | 仅所有者可注销 |
Examples
{ "orgId": "01JD8SRP1N4T8W6XQ5V9XDL2Y7K", "operatorId": "01JD8SEGQ0P9N2XK4L7VDH3T6C" }
{
"id": "01JD8SVXB9M5O2PL",
"code": 0,
"messages": [],
"result": null
}
Remarks
组织内角色授权的清除由 permission_service 的授权数据随组织一并失效(级联语义)。