47 lines
1.4 KiB
Go
47 lines
1.4 KiB
Go
package dto
|
||
|
||
type TenantJoinApplyForm struct {
|
||
// Reason 申请加入原因(可选,空值会使用默认文案)。
|
||
Reason string `json:"reason"`
|
||
}
|
||
|
||
type TenantJoinReviewForm struct {
|
||
// Action 审核动作(approve/reject)。
|
||
Action string `json:"action"`
|
||
// Reason 审核说明(可选,用于展示驳回原因或备注)。
|
||
Reason string `json:"reason"`
|
||
}
|
||
|
||
type TenantInviteCreateForm struct {
|
||
// MaxUses 最大可使用次数(<=0 默认 1)。
|
||
MaxUses int32 `json:"max_uses"`
|
||
// ExpiresAt 过期时间(RFC3339,可选,空值使用默认过期时间)。
|
||
ExpiresAt *string `json:"expires_at"`
|
||
// Remark 备注说明(可选)。
|
||
Remark string `json:"remark"`
|
||
}
|
||
|
||
type TenantInviteAcceptForm struct {
|
||
// Code 邀请码(必填)。
|
||
Code string `json:"code"`
|
||
}
|
||
|
||
type TenantInviteItem struct {
|
||
// ID 邀请记录ID。
|
||
ID int64 `json:"id"`
|
||
// Code 邀请码。
|
||
Code string `json:"code"`
|
||
// Status 邀请状态(active/disabled/expired)。
|
||
Status string `json:"status"`
|
||
// MaxUses 最大可使用次数。
|
||
MaxUses int32 `json:"max_uses"`
|
||
// UsedCount 已使用次数。
|
||
UsedCount int32 `json:"used_count"`
|
||
// ExpiresAt 过期时间(RFC3339,空字符串表示不限制)。
|
||
ExpiresAt string `json:"expires_at"`
|
||
// CreatedAt 创建时间(RFC3339)。
|
||
CreatedAt string `json:"created_at"`
|
||
// Remark 备注说明。
|
||
Remark string `json:"remark"`
|
||
}
|