字段中的blob和JSON类型映射为[]byte和dbs.JSON

This commit is contained in:
GoEdgeLab
2022-03-21 21:39:36 +08:00
parent a2cf2e5b03
commit 31599bee13
105 changed files with 1537 additions and 1156 deletions

View File

@@ -1,17 +1,19 @@
package models
import "github.com/iwind/TeaGo/dbs"
// MessageReceiver 消息通知接收人
type MessageReceiver struct {
Id uint32 `field:"id"` // ID
Role string `field:"role"` // 节点角色
ClusterId uint32 `field:"clusterId"` // 集群ID
NodeId uint32 `field:"nodeId"` // 节点ID
ServerId uint32 `field:"serverId"` // 服务ID
Type string `field:"type"` // 类型
Params string `field:"params"` // 参数
RecipientId uint32 `field:"recipientId"` // 接收人ID
RecipientGroupId uint32 `field:"recipientGroupId"` // 接收人分组ID
State uint8 `field:"state"` // 状态
Id uint32 `field:"id"` // ID
Role string `field:"role"` // 节点角色
ClusterId uint32 `field:"clusterId"` // 集群ID
NodeId uint32 `field:"nodeId"` // 节点ID
ServerId uint32 `field:"serverId"` // 服务ID
Type string `field:"type"` // 类型
Params dbs.JSON `field:"params"` // 参数
RecipientId uint32 `field:"recipientId"` // 接收人ID
RecipientGroupId uint32 `field:"recipientGroupId"` // 接收人分组ID
State uint8 `field:"state"` // 状态
}
type MessageReceiverOperator struct {