19 lines
698 B
Go
19 lines
698 B
Go
package entity
|
|
|
|
import "github.com/gogf/gf/v2/os/gtime"
|
|
|
|
type User struct {
|
|
Id int64 `orm:"id" json:"id"`
|
|
Role string `orm:"role" json:"role"`
|
|
Username string `orm:"username" json:"username"`
|
|
Phone string `orm:"phone" json:"phone"`
|
|
Password string `orm:"password" json:"-"`
|
|
Name string `orm:"name" json:"name"`
|
|
Province string `orm:"province" json:"province"`
|
|
Region string `orm:"region" json:"region"`
|
|
Address string `orm:"address" json:"address"`
|
|
ExpiredAt *gtime.Time `json:"expired_at"`
|
|
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
|
|
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
|
|
}
|