wx.gen.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameWx = "wx"
  10. // Wx mapped from table <wx>
  11. type Wx struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Port string `gorm:"column:port;not null;comment:端口号" json:"port"` // 端口号
  18. ProcessID string `gorm:"column:process_id;not null;comment:进程号" json:"process_id"` // 进程号
  19. Callback string `gorm:"column:callback;not null;comment:回调地址" json:"callback"` // 回调地址
  20. Wxid string `gorm:"column:wxid;not null;comment:微信id" json:"wxid"` // 微信id
  21. Account string `gorm:"column:account;not null;comment:微信账号" json:"account"` // 微信账号
  22. Nickname string `gorm:"column:nickname;not null;comment:微信昵称" json:"nickname"` // 微信昵称
  23. Tel string `gorm:"column:tel;not null;comment:手机号" json:"tel"` // 手机号
  24. HeadBig string `gorm:"column:head_big;not null;comment:微信头像" json:"head_big"` // 微信头像
  25. ServerID int64 `gorm:"column:server_id;comment:服务器id" json:"server_id"` // 服务器id
  26. OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  27. AgentID int64 `gorm:"column:agent_id;not null;comment:0 fastgpt" json:"agent_id"` // 0 fastgpt
  28. APIBase string `gorm:"column:api_base" json:"api_base"`
  29. APIKey string `gorm:"column:api_key" json:"api_key"`
  30. AllowList string `gorm:"column:allow_list;comment:白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许" json:"allow_list"` // 白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许
  31. GroupAllowList string `gorm:"column:group_allow_list;comment:群白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许" json:"group_allow_list"` // 群白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许
  32. BlockList string `gorm:"column:block_list;comment:黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝" json:"block_list"` // 黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝
  33. GroupBlockList string `gorm:"column:group_block_list;comment:群黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝" json:"group_block_list"` // 群黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝
  34. Ctype int64 `gorm:"column:ctype;default:1;comment:内容类型:1-个微 3-企微" json:"ctype"` // 内容类型:1-个微 3-企微
  35. }
  36. // TableName Wx's table name
  37. func (*Wx) TableName() string {
  38. return TableNameWx
  39. }