Documentation ¶
Index ¶
- Variables
- type User
- func (u *User) Create(db orm.DB, usr model.User) (*model.User, error)
- func (u *User) Delete(db orm.DB, user *model.User) error
- func (u *User) List(db orm.DB, qp *model.ListQuery, p *model.Pagination) ([]model.User, error)
- func (u *User) Update(db orm.DB, user *model.User) error
- func (u *User) View(db orm.DB, id int) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = echo.NewHTTPError(http.StatusInternalServerError, "Username or email already exists.")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct{}
User represents the client for user table
func (*User) List ¶
List returns list of all users retrievable for the current user, depending on role
Click to show internal directories.
Click to hide internal directories.