修改账号注册方法,以及邮箱协议对接
This commit is contained in:
24
models/twitter_account.go
Normal file
24
models/twitter_account.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
import "github.com/go-rod/rod/lib/proto"
|
||||
|
||||
type TwitterAccount struct {
|
||||
ID int64 `gorm:"id;primary_key;auto_increment"`
|
||||
Name string `gorm:"name"`
|
||||
Email string `gorm:"email"`
|
||||
Password string `gorm:"password"`
|
||||
Birthday string `gorm:"birthday"`
|
||||
Token string `gorm:"token"`
|
||||
Fa2 string `gorm:"fa2"`
|
||||
Cookies []*proto.NetworkCookieParam `gorm:"img;type:json;serializer:json"`
|
||||
Status string `gorm:"status"`
|
||||
LoginStatus string `gorm:"login_status"`
|
||||
Proxy string `gorm:"proxy"`
|
||||
UpdateTime int64 `gorm:"update_time"`
|
||||
CreateTime int64 `gorm:"create_time"`
|
||||
}
|
||||
|
||||
// 实现 TableName 方法指定表名
|
||||
func (TwitterAccount) TableName() string {
|
||||
return "ar_twitter_account"
|
||||
}
|
||||
Reference in New Issue
Block a user