123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameWx = "wx"
- // Wx mapped from table <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"` // Create Time | 创建日期
- UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
- Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
- 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"` // 微信id
- 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"` // 服务器id
- OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
- AgentID int64 `gorm:"column:agent_id;not null;comment:0 fastgpt" json:"agent_id"` // 0 fastgpt
- 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"` // 白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许
- GroupAllowList string `gorm:"column:group_allow_list;comment:群白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许" json:"group_allow_list"` // 群白名单,以数组存储wxid。当包含 ALL 字符串时为全部允许
- BlockList string `gorm:"column:block_list;comment:黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝" json:"block_list"` // 黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝
- GroupBlockList string `gorm:"column:group_block_list;comment:群黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝" json:"group_block_list"` // 群黑名单,以数组存储wxid。当包含 ALL 字符串时为全部拒绝
- Ctype int64 `gorm:"column:ctype;default:1;comment:内容类型:1-个微 3-企微" json:"ctype"` // 内容类型:1-个微 3-企微
- }
- // TableName Wx's table name
- func (*Wx) TableName() string {
- return TableNameWx
- }
|