37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
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{}
|