91 lines
2.2 KiB
Go
91 lines
2.2 KiB
Go
// Package imtenant
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2026 HotGo
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
package imtenant
|
|
|
|
import (
|
|
"hotgo/internal/model/input/form"
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
// ListReq 查询IM租户列表
|
|
type ListReq struct {
|
|
g.Meta `path:"/imTenant/list" method:"get" tags:"IM租户" summary:"获取IM租户列表"`
|
|
sysin.ImTenantListInp
|
|
}
|
|
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*sysin.ImTenantListModel `json:"list" dc:"数据列表"`
|
|
}
|
|
|
|
// ViewReq 获取IM租户指定信息
|
|
type ViewReq struct {
|
|
g.Meta `path:"/imTenant/view" method:"get" tags:"IM租户" summary:"获取IM租户指定信息"`
|
|
sysin.ImTenantViewInp
|
|
}
|
|
|
|
type ViewRes struct {
|
|
*sysin.ImTenantViewModel
|
|
}
|
|
|
|
// AddReq 新增IM租户
|
|
type AddReq struct {
|
|
g.Meta `path:"/imTenant/add" method:"post" tags:"IM租户" summary:"新增IM租户"`
|
|
sysin.ImTenantEditInp
|
|
}
|
|
|
|
type AddRes struct{}
|
|
|
|
// EditReq 修改IM租户
|
|
type EditReq struct {
|
|
g.Meta `path:"/imTenant/edit" method:"post" tags:"IM租户" summary:"修改IM租户"`
|
|
sysin.ImTenantEditInp
|
|
}
|
|
|
|
type EditRes struct{}
|
|
|
|
// StatusReq 更新IM租户状态
|
|
type StatusReq struct {
|
|
g.Meta `path:"/imTenant/status" method:"post" tags:"IM租户" summary:"更新IM租户状态"`
|
|
sysin.ImTenantStatusInp
|
|
}
|
|
|
|
type StatusRes struct{}
|
|
|
|
type UsageReq struct {
|
|
g.Meta `path:"/imTenant/usage" method:"get" tags:"IM租户" summary:"获取IM租户用量和健康状态"`
|
|
sysin.ImTenantUsageInp
|
|
}
|
|
|
|
type UsageRes struct {
|
|
*sysin.ImTenantUsageModel
|
|
}
|
|
|
|
type DeletionCheckReq struct {
|
|
g.Meta `path:"/imTenant/deletionCheck" method:"get" tags:"IM租户" summary:"IM租户删除前检查"`
|
|
sysin.ImTenantDeletionCheckInp
|
|
}
|
|
|
|
type DeletionCheckRes struct {
|
|
*sysin.ImTenantDeletionCheckModel
|
|
}
|
|
|
|
type EnterDeletingReq struct {
|
|
g.Meta `path:"/imTenant/enterDeleting" method:"post" tags:"IM租户" summary:"IM租户进入删除流程"`
|
|
sysin.ImTenantLifecycleInp
|
|
}
|
|
|
|
type EnterDeletingRes struct{}
|
|
|
|
type RestoreReq struct {
|
|
g.Meta `path:"/imTenant/restore" method:"post" tags:"IM租户" summary:"恢复IM租户"`
|
|
sysin.ImTenantLifecycleInp
|
|
}
|
|
|
|
type RestoreRes struct{}
|