Documentation ¶
Index ¶
- Constants
- Variables
- func UserWithDeleteByUUID(exec mysql.Exec, uuid string, timeout time.Duration) (int64, error)
- func UserWithInsertOne(exec mysql.Exec, user *User, timeout time.Duration) (int64, error)
- type User
- func UserWithSelectOneByEmail(exec mysql.Exec, email string, timeout time.Duration) (*User, error)
- func UserWithSelectOneByEmailOrPhone(exec mysql.Exec, email string, phone string, timeout time.Duration) (*User, error)
- func UserWithSelectOneByPhone(exec mysql.Exec, phone string, timeout time.Duration) (*User, error)
- func UserWithSelectOneByUUID(exec mysql.Exec, uuid string, timeout time.Duration) (*User, error)
- func UserWithSelectRange(exec mysql.Exec, offset, limit int64, timeout time.Duration) ([]*User, error)
Constants ¶
View Source
const ( FieldUserID = "id" FieldUserUUID = "uuid" FieldUserNickName = "nick_name" FieldUserEmail = "email" FieldUserPhone = "phone" FieldDisabled = "disabled" FieldUserCreateTimestamp = "create_timestamp" FieldUserModifyTimestamp = "modify_timestamp" )
Variables ¶
View Source
var UserFeilds = []string{ FieldUserUUID, FieldUserNickName, FieldUserEmail, FieldUserPhone, FieldDisabled, FieldUserCreateTimestamp, }
Functions ¶
func UserWithDeleteByUUID ¶
Types ¶
type User ¶
type User struct { ID int64 `json:"id"` UUID string `json:"uuid"` NickName sql.NullString `json:"nick_name"` Email string `json:"email"` Phone string `json:"phone"` Disabled int8 `json:"disabled"` CreateTimestamp time.Time `json:"create_timestamp"` ModifyTimestamp sql.NullTime `json:"modify_timestamp"` }
func UserWithSelectOneByUUID ¶
func UserWithSelectRange ¶
Click to show internal directories.
Click to hide internal directories.