A AuthMS API Wiki API Reference iam.tianv.com →

DELETE /admin/tenants/{id}/departments/{dept_id}

删除指定租户下的某个部门,通常会校验该部门下是否还有成员或子部门

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID
dept_id path string Yes 部门ID

Responses

StatusDescriptionSchema
200删除成功dto.DataClassificationDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DataClassification

数据分类项

FieldTypeRequiredExampleConstraintsDescription
color string No #FF0000 颜色
description string No 机密数据 描述
label string No 机密 标签
level string No confidential 级别

dto.DataClassificationDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.DataClassificationResponse No
message string No
timestamp string No

dto.DataClassificationResponse

租户数据分类分级配置

FieldTypeRequiredExampleConstraintsDescription
classifications array of

See dto.DataClassification

No 分类列表
tenant_id string No tnt_abc123 租户ID
updated_at string No 2026-04-10T14:20:00Z 更新时间

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No