Documentation
¶
Index ¶
- func CreateSchema(db *pg.DB) error
- func DeleteUserByPrimaryKey(pg *pg.DB, user User) (orm.Result, error)
- func DropTables(db *pg.DB) error
- func ExistsUserByPrimaryKey(pg *pg.DB, user User) (bool, error)
- func InsertUser(pg *pg.DB, user User) (orm.Result, error)
- func InsertUserBatch(pg *pg.DB, users []User) (orm.Result, error)
- func UpdateUserByPrimaryKey(pg *pg.DB, user User) (orm.Result, error)
- type LoginParams
- type RegisterParams
- type ReturnParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSchema ¶
func CreateSchema(db *pg.DB) error
func DropTables ¶
func DropTables(db *pg.DB) error
func ExistsUserByPrimaryKey ¶
Types ¶
type LoginParams ¶
type RegisterParams ¶
type RegisterParams struct { Email string `json:"email" xml:"email" form:"email" validate:"required,email"` FirstName string `json:"first_name" xml:"first_name" form:"first_name"` LastName string `json:"last_name" xml:"last_name" form:"last_name"` Password string `json:"password" xml:"password" form:"password" validate:"required"` }
type ReturnParams ¶
type ReturnParams struct { Status string `json:"status"` Message string `json:"message"` Data interface{} `json:"data"` }
func GetReturnParams ¶
func GetReturnParams(status string, message string, data interface{}) ReturnParams
Click to show internal directories.
Click to hide internal directories.