客服可以给会话设置个人备注, 设置 快捷回复
建群自动话术
This commit is contained in:
@@ -29,6 +29,7 @@ type ChatParticipant struct {
|
||||
ParticipantType string `gorm:"size:16;not null;index" json:"participant_type"`
|
||||
ParticipantID uint64 `gorm:"not null;index" json:"participant_id"`
|
||||
Role string `gorm:"size:32;not null" json:"role"`
|
||||
Remark string `gorm:"size:128;not null;default:''" json:"remark"`
|
||||
LastReadAt *time.Time `json:"last_read_at"`
|
||||
JoinedAt time.Time `json:"joined_at"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type ChatQuickReply struct {
|
||||
ID uint64 `gorm:"primaryKey;autoIncrement" json:"id"`
|
||||
AdminUserID uint64 `gorm:"not null;default:0;index" json:"admin_user_id"` // 0=全局, >0=个人
|
||||
Title string `gorm:"size:64;not null" json:"title"`
|
||||
Content string `gorm:"type:text;not null" json:"content"`
|
||||
SortOrder int `gorm:"not null;default:0" json:"sort_order"`
|
||||
CreatedAt time.Time `gorm:"not null;default:CURRENT_TIMESTAMP" json:"created_at"`
|
||||
UpdatedAt time.Time `gorm:"not null;default:CURRENT_TIMESTAMP" json:"updated_at"`
|
||||
}
|
||||
|
||||
func (ChatQuickReply) TableName() string {
|
||||
return "chat_quick_replies"
|
||||
}
|
||||
Reference in New Issue
Block a user