go-wxhelper/model/entity/robot.go
2024-01-19 12:06:30 +08:00

27 lines
1.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package entity
import "wechat-robot/pkg/types"
// Robot
// @description: 机器人信息
type Robot struct {
types.BaseDbModel
WxId string `json:"wxid" gorm:"index:deleted,unique;column:wxid;type:varchar(255);not null;comment:'微信Id'"` // 微信Id
Account string `json:"account" gorm:"type:varchar(255);comment:'微信号'"` // 微信号
Nickname string `json:"name" gorm:"type:varchar(255);comment:'昵称'"` // 昵称
Avatar string `json:"avatar" gorm:"type:varchar(255);comment:'头像'"` // 头像
Mobile string `json:"mobile" gorm:"type:varchar(255);comment:'手机号'"` // 手机
CurrentDataPath string `json:"currentDataPath" gorm:"type:varchar(255);comment:'当前数据目录'"` // 当前数据目录,登录的账号目录
DataSavePath string `json:"dataSavePath" gorm:"type:varchar(255);comment:'微信保存目录'"` // 微信保存目录
DbKey string `json:"dbKey" gorm:"type:varchar(255);comment:'数据库的SQLCipher的加密key'"` // 数据库的SQLCipher的加密key可以使用该key配合decrypt.py解密数据库
HookApi string `json:"hookApi" gorm:"type:varchar(255);comment:'hook接口地址'"` // hook接口地址
}
// TableName
// @description: 表名
// @receiver Robot
// @return string
func (Robot) TableName() string {
return "t_robot"
}