feat: add IM admin P1 operations
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package imexternalconfig
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/imExternalConfig/list" method:"get" tags:"IM外部服务配置" summary:"获取IM外部服务配置列表"`
|
||||
sysin.ImExternalConfigListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.ImExternalConfigListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/imExternalConfig/view" method:"get" tags:"IM外部服务配置" summary:"获取IM外部服务配置详情"`
|
||||
sysin.ImExternalConfigViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
*sysin.ImExternalConfigViewModel
|
||||
}
|
||||
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/imExternalConfig/update" method:"post" tags:"IM外部服务配置" summary:"更新IM外部服务配置"`
|
||||
sysin.ImExternalConfigUpdateInp
|
||||
}
|
||||
|
||||
type UpdateRes struct{}
|
||||
|
||||
type CheckReq struct {
|
||||
g.Meta `path:"/imExternalConfig/check" method:"post" tags:"IM外部服务配置" summary:"检查IM外部服务配置"`
|
||||
sysin.ImExternalConfigCheckInp
|
||||
}
|
||||
|
||||
type CheckRes struct{}
|
||||
@@ -0,0 +1,60 @@
|
||||
// Package imfile
|
||||
// @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 imfile
|
||||
|
||||
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:"/imFile/list" method:"get" tags:"IM文件治理" summary:"获取IM文件列表"`
|
||||
sysin.ImFileListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.ImFileListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ViewReq 获取IM文件详情
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/imFile/view" method:"get" tags:"IM文件治理" summary:"获取IM文件详情"`
|
||||
sysin.ImFileViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
*sysin.ImFileViewModel
|
||||
}
|
||||
|
||||
// QuarantineReq 隔离IM文件
|
||||
type QuarantineReq struct {
|
||||
g.Meta `path:"/imFile/quarantine" method:"post" tags:"IM文件治理" summary:"隔离IM文件"`
|
||||
sysin.ImFileActionInp
|
||||
}
|
||||
|
||||
type QuarantineRes struct{}
|
||||
|
||||
// DeleteReq 删除IM文件
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/imFile/delete" method:"post" tags:"IM文件治理" summary:"删除IM文件"`
|
||||
sysin.ImFileActionInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// CleanupOrphanReq 清理IM孤儿文件
|
||||
type CleanupOrphanReq struct {
|
||||
g.Meta `path:"/imFile/cleanupOrphan" method:"post" tags:"IM文件治理" summary:"清理IM孤儿文件"`
|
||||
sysin.ImFileCleanupOrphanInp
|
||||
}
|
||||
|
||||
type CleanupOrphanRes struct {
|
||||
*sysin.ImFileCleanupOrphanModel
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package imtaskdashboard
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/imTaskDashboard/list" method:"get" tags:"IM任务看板" summary:"获取IM任务看板列表"`
|
||||
sysin.ImTaskDashboardListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.ImTaskDashboardListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
Reference in New Issue
Block a user