Documentation ¶
Index ¶
- Variables
- type User
- func (u User) Create(db orm.DB, usr andro.User) (andro.User, error)
- func (u User) Delete(db orm.DB, user andro.User) error
- func (u User) List(db orm.DB, qp *andro.ListQuery, p andro.Pagination) ([]andro.User, error)
- func (u User) Update(db orm.DB, user andro.User) error
- func (u User) View(db orm.DB, id int) (andro.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.