Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // User is globally public accessible object for table user operations. User = UserDao{ M: g.DB("default").Model("user").Safe(), DB: g.DB("default"), Table: "user", Columns: userColumns{ Id: "id", Passport: "passport", Password: "password", Nickname: "nickname", CreateAt: "create_at", UpdateAt: "update_at", }, } )
Functions ¶
This section is empty.
Types ¶
type UserDao ¶
type UserDao struct { gmvc.M // M is the core and embedded struct that inherits all chaining operations from gdb.Model. DB gdb.DB // DB is the raw underlying database management object. Table string // Table is the table name of the DAO. Columns userColumns // Columns contains all the columns of Table that for convenient usage. }
UserDao is the manager for logic model data accessing and custom defined data operations functions management.
Click to show internal directories.
Click to hide internal directories.