Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func DeleteByDingTalkConversationID ¶
Delete
func Initialize ¶
func Initialize()
Types ¶
type Chat ¶
type Chat struct { gorm.Model SenderID string `gorm:"type:varchar(128);not null;comment:'发送者ID'" json:"sender_id"` SenderNick string `gorm:"type:varchar(50);not null;comment:'发送者昵称'" json:"sender_nick"` DingTalkConversationID string `gorm:"type:varchar(128);not null;comment:'钉钉会话ID'" json:"ding_talk_conversation_id"` MessageID string `gorm:"type:varchar(128);not null;comment:'消息ID'" json:"message_id"` ConversationID string `gorm:"type:varchar(128);not null;comment:'会话ID'" json:"conversation_id"` ConversationMode ChatMode `gorm:"type:int;not null;comment:'消息模式1问题2回答'" json:"conversation_mode"` ConversationType string `gorm:"type:int;not null;comment:'消息类型1私聊2群聊'" json:"conversation_type"` Content string `gorm:"type:varchar(255);not null;comment:'消息内容'" json:"content"` }
type ChatListParams ¶
type ChatListParams struct {
SenderID string `form:"sender_id" json:"sender_id"`
}
Click to show internal directories.
Click to hide internal directories.