feat: 增加商户消息加密密钥管理
This commit is contained in:
@@ -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