| 12345678910111213141516171819202122232425 |
- package entity
- // DtCustomerService 客服配置表
- type DtCustomerService struct {
- MysqlBaseModel
- Name string `json:"name" gorm:"type:varchar(64);comment:客服名称"`
- Type string `json:"type" gorm:"type:varchar(32);comment:类型: email/telegram/phone/whatsapp/zalo"`
- Account string `json:"account" gorm:"type:varchar(255);comment:账号/链接"`
- Icon string `json:"icon" gorm:"type:varchar(255);comment:图标"`
- QrCode string `json:"qrCode" gorm:"type:varchar(255);comment:二维码"`
- Status int8 `json:"status" gorm:"default:1;comment:状态: 0=禁用 1=启用"`
- Sort int `json:"sort" gorm:"default:0;comment:排序"`
- }
- func (*DtCustomerService) TableName() string {
- return "dt_customer_service"
- }
- func (*DtCustomerService) Comment() string {
- return "客服配置表"
- }
- func NewDtCustomerService() *DtCustomerService {
- return &DtCustomerService{}
- }
|