POST /admin/tenants/{id}/domains
为指定租户添加新的自定义域名
租户服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
租户ID |
Request Body
Schema: dto.AddDomainRequest
| Field | Type | Required | Example | Constraints | Description |
domain |
string |
Yes |
acme.example.com |
|
域名 |
is_primary |
boolean |
No |
False |
|
是否主域名 |
Referenced Schemas
dto.DomainDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.DomainResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.DomainResponse
租户自定义域名信息
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
创建时间 |
domain |
string |
No |
acme.example.com |
|
域名 |
is_primary |
boolean |
No |
True |
|
是否主域名 |
tenant_id |
string |
No |
tnt_abc123 |
|
租户ID |
verified |
boolean |
No |
True |
|
是否验证 |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|