Documentation ¶
Index ¶
- func Delete(db *sql.DB, where, data map[string]interface{}) (int64, error)
- func GetCount(db *sql.DB, where map[string]interface{}) (int64, error)
- func Insert(db *sql.DB, data []map[string]interface{}) (int64, error)
- func Update(db *sql.DB, where, data map[string]interface{}) (int64, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { ID uint `ddb:"id"` Name string `ddb:"name"` Age byte `ddb:"age"` Gender int8 `ddb:"gender"` Avatar string `ddb:"avatar"` Email string `ddb:"email"` Phone string `ddb:"phone"` Password string `ddb:"password"` Salt string `ddb:"salt"` UpdateAt time.Time `ddb:"update_at"` CreateAt time.Time `ddb:"create_at"` Status int8 `ddb:"status"` }
User is a mapping object for user table in mysql
Click to show internal directories.
Click to hide internal directories.