Documentation ¶
Index ¶
- type User
- func (model *User) UserAdd(db *xorm.Engine) (id int64, err error)
- func (model *User) UserDelete(db *xorm.Engine, id int) (afr int64, err error)
- func (model *User) UserGet(db *xorm.Engine, id int) (user User, err error)
- func (model *User) UserGetList(db *xorm.Engine, page int, pageSize int) (users []User, err error)
- func (model *User) UserUpdate(db *xorm.Engine, id int) (afr int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Id int `json:"id" form:"id" xorm:"pk autoincr"` Name string `json:"name" form:"name" xorm:"name"` Address string `json:"address" form:"address" xorm:"address"` Age int `json:"age" form:"age"` }
func (*User) UserDelete ¶
UserDelete delete
func (*User) UserGetList ¶
UserGetList get list
Click to show internal directories.
Click to hide internal directories.