You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
778 B
19 lines
778 B
package vend
|
|
|
|
import "github.com/golangkit/formatime"
|
|
|
|
type Account struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"userId"` // userId
|
|
VendorId uint `gorm:"column:vendor_id" json:"vendorId"` // 供应商id
|
|
Mobile string `gorm:"column:mobile" json:"mobile"` // '手机号'
|
|
Password string `gorm:"column:password" json:"password"`
|
|
Token string `gorm:"column:token" json:"token"` // api token
|
|
Role int64 `gorm:"column:role" json:"role"` // 角色 1主账号 2子账号'
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"-"`
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (r *Account) TableName() string {
|
|
return "recook_vendor_account"
|
|
}
|