12345678910111213141516171819202122232425262728293031323334353637383940 |
- package entity
- import "gopkg.in/guregu/null.v3"
- type User struct {
- Id int64 `db:"id"`
- Gender int `db:"gender"`
- Mobile string `db:"mobile"`
- Name string `db:"name"`
- Age int `db:"age"`
- Password string `db:"password" json:"-"`
- PasswordSalt string `db:"password_salt" json:"-"`
- Status int `db:"status"`
- CreatedAt string `db:"created_at"`
- Extra string `db:"extra"`
- AccountType uint `db:"account_type"`
- Avatar string `db:"avatar"`
- IsAcceptProto string `db:"is_accept_up"`
- IsNew bool `json:"is_new"`
- Height int `db:"height"`
- Weight int `db:"weight"`
- BirthDay string `db:"birthday"`
- Hobby string `db:"hobby"`
- }
- type UserDB struct {
- Id int64 `db:"id"`
- Gender null.Int `db:"gender"`
- Mobile string `db:"mobile"`
- Name null.String `db:"name"`
- Age null.Int `db:"age"`
- Password string `db:"password" json:"-"`
- PasswordSalt string `db:"password_salt" json:"-"`
- Status int `db:"status"`
- CreatedAt string `db:"created_at"`
- Extra null.String `db:"extra"`
- AccountType uint `db:"account_type"`
- Avatar string `db:"avatar"`
- IsAcceptProto string `db:"is_accept_up"`
- IsNew bool `json:"is_new"`
- }
|