tenant: add invites and join requests
This commit is contained in:
13
backend/app/http/tenantjoin/dto/join.go
Normal file
13
backend/app/http/tenantjoin/dto/join.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user