chore: seed migration objects batch 5
This commit is contained in:
@@ -155,3 +155,67 @@ func (in *ImTenantStatusInp) Filter(ctx context.Context) (err error) {
|
||||
}
|
||||
|
||||
type ImTenantStatusModel struct{}
|
||||
|
||||
type ImTenantUsageInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *ImTenantUsageInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
return gerror.New("ID不能为空")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type ImTenantUsageModel struct {
|
||||
Id int64 `json:"id" dc:"租户ID"`
|
||||
Code string `json:"code" dc:"租户编码"`
|
||||
Name string `json:"name" dc:"租户名称"`
|
||||
DbName string `json:"dbName" dc:"业务库名"`
|
||||
DbDsnConfigured bool `json:"dbDsnConfigured" dc:"是否配置独立连接串"`
|
||||
DbReachable bool `json:"dbReachable" dc:"业务库是否可达"`
|
||||
DbCheckError string `json:"dbCheckError" dc:"业务库检查错误"`
|
||||
SchemaVersion string `json:"schemaVersion" dc:"Schema版本"`
|
||||
UserCount int64 `json:"userCount" dc:"用户数"`
|
||||
ActiveUserCount int64 `json:"activeUserCount" dc:"正常用户数"`
|
||||
GroupCount int64 `json:"groupCount" dc:"群数"`
|
||||
DeviceCount int64 `json:"deviceCount" dc:"设备数"`
|
||||
PushTokenCount int64 `json:"pushTokenCount" dc:"Push Token数"`
|
||||
InviteUseCount int64 `json:"inviteUseCount" dc:"邀请码使用次数"`
|
||||
OutboxPendingCount int64 `json:"outboxPendingCount" dc:"待处理Outbox数"`
|
||||
Warnings []string `json:"warnings" dc:"警告信息"`
|
||||
}
|
||||
|
||||
type ImTenantDeletionCheckInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *ImTenantDeletionCheckInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
return gerror.New("ID不能为空")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type ImTenantDeletionCheckModel struct {
|
||||
Id int64 `json:"id" dc:"租户ID"`
|
||||
Code string `json:"code" dc:"租户编码"`
|
||||
Name string `json:"name" dc:"租户名称"`
|
||||
CanEnterDeleting bool `json:"canEnterDeleting" dc:"是否可进入删除流程"`
|
||||
Blockers []string `json:"blockers" dc:"阻断原因"`
|
||||
Warnings []string `json:"warnings" dc:"警告信息"`
|
||||
UserCount int64 `json:"userCount" dc:"用户数"`
|
||||
GroupCount int64 `json:"groupCount" dc:"群数"`
|
||||
PendingOutbox int64 `json:"pendingOutbox" dc:"待处理Outbox"`
|
||||
}
|
||||
|
||||
type ImTenantLifecycleInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *ImTenantLifecycleInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
return gerror.New("ID不能为空")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user