feat: 完善IM用户管理与治理操作
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
)
|
||||
|
||||
// ListReq 查询IM用户列表
|
||||
@@ -23,6 +24,41 @@ type ListRes struct {
|
||||
List []*sysin.ImUserListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/imUser/create" method:"post" tags:"IM用户" summary:"后台创建IM用户"`
|
||||
sysin.ImUserCreateInp
|
||||
}
|
||||
|
||||
type CreateRes struct {
|
||||
*sysin.ImUserCreateModel
|
||||
}
|
||||
|
||||
type BatchCreateReq struct {
|
||||
g.Meta `path:"/imUser/batchCreate" method:"post" tags:"IM用户" summary:"批量创建IM用户"`
|
||||
sysin.ImUserBatchCreateInp
|
||||
}
|
||||
|
||||
type BatchCreateRes struct {
|
||||
*sysin.ImUserBatchCreateModel
|
||||
}
|
||||
|
||||
type ImportReq struct {
|
||||
g.Meta `path:"/imUser/import" method:"post" tags:"IM用户" summary:"Excel导入IM用户"`
|
||||
TenantId int64 `json:"tenantId" dc:"租户ID"`
|
||||
GroupId int64 `json:"groupId" dc:"默认用户策略分组ID"`
|
||||
File *ghttp.UploadFile `json:"file" type:"file" v:"required#请选择Excel文件" dc:"Excel文件"`
|
||||
}
|
||||
|
||||
type ImportRes struct {
|
||||
*sysin.ImUserBatchCreateModel
|
||||
}
|
||||
|
||||
type DownloadTemplateReq struct {
|
||||
g.Meta `path:"/imUser/downloadTemplate" method:"get" tags:"IM用户" summary:"下载IM用户导入模板"`
|
||||
}
|
||||
|
||||
type DownloadTemplateRes struct{}
|
||||
|
||||
// ViewReq 获取IM用户指定信息
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/imUser/view" method:"get" tags:"IM用户" summary:"获取IM用户指定信息"`
|
||||
@@ -56,6 +92,29 @@ type StatusReq struct {
|
||||
|
||||
type StatusRes struct{}
|
||||
|
||||
type AdjustGroupReq struct {
|
||||
g.Meta `path:"/imUser/adjustGroup" method:"post" tags:"IM用户" summary:"调整IM用户分组"`
|
||||
sysin.ImUserAdjustGroupInp
|
||||
}
|
||||
|
||||
type AdjustGroupRes struct{}
|
||||
|
||||
type IPWhitelistReq struct {
|
||||
g.Meta `path:"/imUser/ipWhitelist" method:"get" tags:"IM用户" summary:"获取IM用户IP白名单"`
|
||||
sysin.ImUserIPWhitelistInp
|
||||
}
|
||||
|
||||
type IPWhitelistRes struct {
|
||||
*sysin.ImUserIPWhitelistModel
|
||||
}
|
||||
|
||||
type IPWhitelistSaveReq struct {
|
||||
g.Meta `path:"/imUser/ipWhitelistSave" method:"post" tags:"IM用户" summary:"保存IM用户IP白名单"`
|
||||
sysin.ImUserIPWhitelistInp
|
||||
}
|
||||
|
||||
type IPWhitelistSaveRes struct{}
|
||||
|
||||
type DevicesReq struct {
|
||||
g.Meta `path:"/imUser/devices" method:"get" tags:"IM用户" summary:"获取IM用户设备列表"`
|
||||
sysin.ImUserDeviceListInp
|
||||
|
||||
Reference in New Issue
Block a user