tenant: add invites and join requests

This commit is contained in:
2025-12-18 18:27:23 +08:00
parent 462bde351d
commit ec4506fd2d
28 changed files with 5206 additions and 201 deletions

View File

@@ -0,0 +1,13 @@
package dto
// JoinByInviteForm 用户通过邀请码加入租户的请求参数。
type JoinByInviteForm struct {
// InviteCode 邀请码:由租户管理员生成;用户提交后加入对应租户。
InviteCode string `json:"invite_code"`
}
// JoinRequestCreateForm 用户提交加入租户申请的请求参数(无邀请码场景)。
type JoinRequestCreateForm struct {
// Reason 申请原因(可选):用于向租户管理员说明申请加入的目的。
Reason string `json:"reason"`
}