Documentation
¶
Index ¶
- type CRUDReq
- type Credentials
- type DeleteReq
- type Handler
- func (h *Handler) ChangePassword(c echo.Context) error
- func (h *Handler) CreateUser(c echo.Context) error
- func (h *Handler) DecodeCRUDReq(c echo.Context, req *CRUDReq, data interface{}) error
- func (h *Handler) Login(c echo.Context) error
- func (h *Handler) Me(c echo.Context) error
- func (h *Handler) Register(v1 *echo.Group)
- func (h *Handler) SignUp(c echo.Context) error
- func (h *Handler) UpdateAccount(c echo.Context) error
- type LoginResponse
- type NewPasswordForm
- type NewPasswordReq
- type Tokened
- type UpdateAccountForm
- type UpdateAccountReq
- type UserLoginReq
- type UserUpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRUDReq ¶
type CRUDReq struct {
Data map[string]interface{} `json:"data"`
}
CRUDReq for CreateUpdateReq
type Credentials ¶
type Handler ¶
type Handler struct {
AccStore store.AccessStore
EduStore store.EducationStore
ProStore store.ProjectStore
}
func NewHandler ¶
func NewHandler(as store.AccessStore, es store.EducationStore, ps store.ProjectStore) *Handler
func (*Handler) DecodeCRUDReq ¶
type LoginResponse ¶
func NewLoginResp ¶
func NewLoginResp(u *models.User) (*LoginResponse, error)
type NewPasswordForm ¶
type NewPasswordReq ¶
type NewPasswordReq struct {
Data NewPasswordForm `json:"data"`
}
type UpdateAccountForm ¶
type UpdateAccountReq ¶
type UpdateAccountReq struct {
Data UpdateAccountForm `json:"data"`
}
type UserLoginReq ¶
type UserLoginReq struct {
Credentials Credentials `json:"user"`
}
type UserUpdateResponse ¶
Click to show internal directories.
Click to hide internal directories.