123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameWx = "wx"
- type Wx struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"`
- Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- Port string `gorm:"column:port;not null;comment:端口号" json:"port"`
- ProcessID string `gorm:"column:process_id;not null;comment:进程号" json:"process_id"`
- Callback string `gorm:"column:callback;not null;comment:回调地址" json:"callback"`
- Wxid string `gorm:"column:wxid;not null;comment:微信id" json:"wxid"`
- Account string `gorm:"column:account;not null;comment:微信账号" json:"account"`
- Nickname string `gorm:"column:nickname;not null;comment:微信昵称" json:"nickname"`
- Tel string `gorm:"column:tel;not null;comment:手机号" json:"tel"`
- HeadBig string `gorm:"column:head_big;not null;comment:微信头像" json:"head_big"`
- ServerID int64 `gorm:"column:server_id;comment:服务器id" json:"server_id"`
- OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"`
- AgentID int64 `gorm:"column:agent_id;not null;comment:0 fastgpt" json:"agent_id"`
- APIBase string `gorm:"column:api_base" json:"api_base"`
- APIKey string `gorm:"column:api_key" json:"api_key"`
- AllowList string `gorm:"column:allow_list;comment:白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许" json:"allow_list"`
- GroupAllowList string `gorm:"column:group_allow_list;comment:群白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许" json:"group_allow_list"`
- BlockList string `gorm:"column:block_list;comment:黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝" json:"block_list"`
- GroupBlockList string `gorm:"column:group_block_list;comment:群黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝" json:"group_block_list"`
- Ctype int64 `gorm:"column:ctype;default:1;comment:内容类型:1-个微 3-企微" json:"ctype"`
- }
- func (*Wx) TableName() string {
- return TableNameWx
- }
|