dt_customer_service.go 888 B

12345678910111213141516171819202122232425
  1. package entity
  2. // DtCustomerService 客服配置表
  3. type DtCustomerService struct {
  4. MysqlBaseModel
  5. Name string `json:"name" gorm:"type:varchar(64);comment:客服名称"`
  6. Type string `json:"type" gorm:"type:varchar(32);comment:类型: email/telegram/phone/whatsapp/zalo"`
  7. Account string `json:"account" gorm:"type:varchar(255);comment:账号/链接"`
  8. Icon string `json:"icon" gorm:"type:varchar(255);comment:图标"`
  9. QrCode string `json:"qrCode" gorm:"type:varchar(255);comment:二维码"`
  10. Status int8 `json:"status" gorm:"default:1;comment:状态: 0=禁用 1=启用"`
  11. Sort int `json:"sort" gorm:"default:0;comment:排序"`
  12. }
  13. func (*DtCustomerService) TableName() string {
  14. return "dt_customer_service"
  15. }
  16. func (*DtCustomerService) Comment() string {
  17. return "客服配置表"
  18. }
  19. func NewDtCustomerService() *DtCustomerService {
  20. return &DtCustomerService{}
  21. }