Files
quyun-v2/backend/app/http/v1/dto/tenant_member.go

47 lines
1.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"`
}