Merge branch 'dev' of https://git.118im.com/im_team/im_manager into dev
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package imconfiginternal
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
import (
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type TenantReq struct {
|
||||
g.Meta `path:"/internal/im-config/tenants/by-code/{code}" method:"get" tags:"IM内部配置" summary:"按编码获取IM租户"`
|
||||
@@ -99,14 +103,24 @@ type SecurityPolicyReq struct {
|
||||
}
|
||||
|
||||
type SecurityPolicyRes struct {
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
TenantCode string `json:"tenant_code"`
|
||||
PolicyVersion uint `json:"policy_version"`
|
||||
GlobalFriendEnabled bool `json:"global_friend_enabled"`
|
||||
FriendDisabledPolicy map[string]interface{} `json:"friend_disabled_policy"`
|
||||
MessageCurfewEnabled bool `json:"message_curfew_enabled"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
TenantCode string `json:"tenant_code"`
|
||||
PolicyVersion uint `json:"policy_version"`
|
||||
GlobalFriendEnabled bool `json:"global_friend_enabled"`
|
||||
FriendDisabledPolicy map[string]interface{} `json:"friend_disabled_policy"`
|
||||
MessageCurfewEnabled bool `json:"message_curfew_enabled"`
|
||||
LoginRateLimit *SecurityLoginRateLimitRes `json:"login_rate_limit"`
|
||||
CurfewRules []*SecurityCurfewRuleRes `json:"curfew_rules"`
|
||||
CurfewRules []*SecurityCurfewRuleRes `json:"curfew_rules"`
|
||||
}
|
||||
|
||||
type RealnamePolicyReq struct {
|
||||
g.Meta `path:"/internal/im-config/tenants/by-id/{id}/realname-policy" method:"get" tags:"IM内部配置" summary:"获取租户实名认证策略"`
|
||||
Id int64 `json:"id" in:"path" dc:"租户ID"`
|
||||
}
|
||||
|
||||
type RealnamePolicyRes struct {
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
RealnameReviewPolicy int `json:"realname_review_policy"`
|
||||
}
|
||||
|
||||
type SecurityLoginRateLimitRes struct {
|
||||
@@ -145,6 +159,33 @@ type SensitiveWordsRes struct {
|
||||
Items []*SensitiveWordModel `json:"items"`
|
||||
}
|
||||
|
||||
type MessageKeyActiveReq struct {
|
||||
g.Meta `path:"/internal/im-config/tenants/{tenantCode}/message-keys/active" method:"get" tags:"IM内部配置" summary:"获取商户当前消息密钥"`
|
||||
TenantCode string `json:"tenantCode" in:"path"`
|
||||
}
|
||||
|
||||
type MessageKeyActiveRes struct {
|
||||
*sysin.ImMessageKeyModel
|
||||
}
|
||||
|
||||
type MessageKeyVersionReq struct {
|
||||
g.Meta `path:"/internal/im-config/tenants/{tenantCode}/message-keys/{version}" method:"get" tags:"IM内部配置" summary:"获取商户指定版本消息密钥"`
|
||||
TenantCode string `json:"tenantCode" in:"path"`
|
||||
Version uint `json:"version" in:"path"`
|
||||
}
|
||||
|
||||
type MessageKeyVersionRes struct {
|
||||
*sysin.ImMessageKeyModel
|
||||
}
|
||||
|
||||
type MessageKeyAckReq struct {
|
||||
g.Meta `path:"/internal/im-config/tenants/{tenantCode}/message-keys/ack" method:"post" tags:"IM内部配置" summary:"确认商户消息密钥可用"`
|
||||
TenantCode string `json:"tenantCode" in:"path"`
|
||||
Version uint `json:"version" v:"required|min:1#密钥版本不能为空|密钥版本不正确"`
|
||||
}
|
||||
|
||||
type MessageKeyAckRes struct{}
|
||||
|
||||
type SensitiveWordModel struct {
|
||||
ID int64 `json:"id"`
|
||||
Word string `json:"word"`
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package immessageencryption
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/imMessageEncryption/list" method:"get" tags:"消息加密密钥" summary:"获取商户消息加密状态"`
|
||||
sysin.ImMessageEncryptionListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.ImMessageEncryptionListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
|
||||
type InitializeReq struct {
|
||||
g.Meta `path:"/imMessageEncryption/initialize" method:"post" tags:"消息加密密钥" summary:"初始化商户消息密钥"`
|
||||
sysin.ImMessageEncryptionActionInp
|
||||
}
|
||||
type InitializeRes struct{}
|
||||
|
||||
type RotateReq struct {
|
||||
g.Meta `path:"/imMessageEncryption/rotate" method:"post" tags:"消息加密密钥" summary:"轮换商户消息密钥"`
|
||||
sysin.ImMessageEncryptionActionInp
|
||||
}
|
||||
type RotateRes struct{}
|
||||
|
||||
type SwitchReq struct {
|
||||
g.Meta `path:"/imMessageEncryption/switch" method:"post" tags:"消息加密密钥" summary:"切换商户消息加密"`
|
||||
sysin.ImMessageEncryptionSwitchInp
|
||||
}
|
||||
type SwitchRes struct{}
|
||||
Reference in New Issue
Block a user