Documentation
¶
Index ¶
- type ChangePasswordRequest
- type CreateRequest
- type Handler
- func (h *Handler) ChangePassword(c *app.Context, req ChangePasswordRequest) (api.StatusResponse, error)
- func (h *Handler) Create(c *app.Context, req CreateRequest) (api.Created[models.User], error)
- func (h *Handler) Delete(c *app.Context, req api.IDPathRequest) (api.StatusResponse, error)
- func (h *Handler) Get(c *app.Context, req api.IDPathRequest) (models.User, error)
- func (h *Handler) GetProfile(c *app.Context, _ api.EmptyRequest) (ProfileResponse, error)
- func (h *Handler) List(c *app.Context, req ListRequest) (api.PaginatedResponse[dao.UserListRow], error)
- func (h *Handler) Login(c *app.Context, req LoginRequest) (LoginResponse, error)
- func (h *Handler) Register(c *app.Context, req RegisterRequest) (api.Created[models.User], error)
- func (h *Handler) Update(c *app.Context, req UpdateRequest) (models.User, error)
- func (h *Handler) UpdateProfile(c *app.Context, req UpdateProfileRequest) (ProfileResponse, error)
- func (h *Handler) UpdateQuota(c *app.Context, req UpdateQuotaRequest) (api.StatusResponse, error)
- type ListRequest
- type LoginRequest
- type LoginResponse
- type ProfileResponse
- type RegisterRequest
- type UpdateProfileRequest
- type UpdateQuotaRequest
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordRequest ¶
type CreateRequest ¶
type Handler ¶
func (*Handler) ChangePassword ¶
func (h *Handler) ChangePassword(c *app.Context, req ChangePasswordRequest) (api.StatusResponse, error)
func (*Handler) Delete ¶
func (h *Handler) Delete(c *app.Context, req api.IDPathRequest) (api.StatusResponse, error)
func (*Handler) GetProfile ¶
func (h *Handler) GetProfile(c *app.Context, _ api.EmptyRequest) (ProfileResponse, error)
func (*Handler) List ¶
func (h *Handler) List(c *app.Context, req ListRequest) (api.PaginatedResponse[dao.UserListRow], error)
func (*Handler) Login ¶
func (h *Handler) Login(c *app.Context, req LoginRequest) (LoginResponse, error)
func (*Handler) UpdateProfile ¶
func (h *Handler) UpdateProfile(c *app.Context, req UpdateProfileRequest) (ProfileResponse, error)
func (*Handler) UpdateQuota ¶
func (h *Handler) UpdateQuota(c *app.Context, req UpdateQuotaRequest) (api.StatusResponse, error)
type ListRequest ¶
type ListRequest struct {
api.PaginationQuery
Search string `form:"search"`
Role string `form:"role"`
GroupID string `form:"group_id"`
}
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type ProfileResponse ¶
type RegisterRequest ¶
type UpdateProfileRequest ¶
type UpdateQuotaRequest ¶
type UpdateRequest ¶
type UpdateRequest struct {
ID string `uri:"id" binding:"required"`
Fields map[string]any `json:"-"`
}
func (*UpdateRequest) SetBodyMap ¶
func (r *UpdateRequest) SetBodyMap(fields map[string]any)
Click to show internal directories.
Click to hide internal directories.