feat: 增加商户消息加密密钥管理
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租户"`
|
||||
@@ -155,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"`
|
||||
|
||||
Reference in New Issue
Block a user