Documentation ¶
Index ¶
- func MarshalArchiveResponse(res *usr_s.Customer, w http.ResponseWriter)
- func MarshalBanResponse(res *usr_s.Customer, w http.ResponseWriter)
- func MarshalCreateResponse(res *usr_s.Customer, w http.ResponseWriter)
- func MarshalDetailResponse(res *c_s.Customer, w http.ResponseWriter)
- func MarshalListAsSelectOptionResponse(res []*customer_s.CustomerAsSelectOption, w http.ResponseWriter)
- func MarshalLiteListResponse(res *c_s.CustomerPaginationLiteListAndCountResult, w http.ResponseWriter)
- func MarshalOperationAvatarResponse(res *c_s.Customer, w http.ResponseWriter)
- func MarshalOperationCreateCommentResponse(res *c_s.Customer, w http.ResponseWriter)
- func MarshalOperationDowngradeResponse(res *c_s.Customer, w http.ResponseWriter)
- func MarshalOperationUnbanResponse(res *c_s.Customer, w http.ResponseWriter)
- func MarshalOperationUpgradeResponse(res *c_s.Customer, w http.ResponseWriter)
- func MarshalUpdateResponse(res *c_s.Customer, w http.ResponseWriter)
- func UnmarshalOperationAvatarRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationAvatarRequest, error)
- func UnmarshalOperationChangePasswordRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationChangePasswordRequest, error)
- func UnmarshalOperationChangeTwoFactorAuthenticationRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationChangeTwoFactorAuthenticationRequest, error)
- func UnmarshalOperationCreateCommentRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationCreateCommentRequest, error)
- func UnmarshalOperationDowngradeRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationDowngradeRequest, error)
- func UnmarshalOperationUnbanRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationUnbanRequest, error)
- func UnmarshalOperationUpgradeRequest(ctx context.Context, r *http.Request) (*c_c.CustomerOperationUpgradeRequest, error)
- type CustomerOperationCreateCommentRequest
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteByID(w http.ResponseWriter, r *http.Request, id string)
- func (h *Handler) GetByID(w http.ResponseWriter, r *http.Request, id string)
- func (h *Handler) List(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationArchive(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationAvatar(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationBan(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationChangePassword(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationChangeTwoFactorAuthentication(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationCreateComment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationDowngrade(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationUnban(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationUpgrade(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateByID(w http.ResponseWriter, r *http.Request, id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalArchiveResponse ¶
func MarshalArchiveResponse(res *usr_s.Customer, w http.ResponseWriter)
func MarshalBanResponse ¶
func MarshalBanResponse(res *usr_s.Customer, w http.ResponseWriter)
func MarshalCreateResponse ¶
func MarshalCreateResponse(res *usr_s.Customer, w http.ResponseWriter)
func MarshalDetailResponse ¶
func MarshalDetailResponse(res *c_s.Customer, w http.ResponseWriter)
func MarshalListAsSelectOptionResponse ¶
func MarshalListAsSelectOptionResponse(res []*customer_s.CustomerAsSelectOption, w http.ResponseWriter)
func MarshalLiteListResponse ¶
func MarshalLiteListResponse(res *c_s.CustomerPaginationLiteListAndCountResult, w http.ResponseWriter)
func MarshalOperationAvatarResponse ¶
func MarshalOperationAvatarResponse(res *c_s.Customer, w http.ResponseWriter)
func MarshalOperationCreateCommentResponse ¶
func MarshalOperationCreateCommentResponse(res *c_s.Customer, w http.ResponseWriter)
func MarshalOperationDowngradeResponse ¶
func MarshalOperationDowngradeResponse(res *c_s.Customer, w http.ResponseWriter)
func MarshalOperationUnbanResponse ¶
func MarshalOperationUnbanResponse(res *c_s.Customer, w http.ResponseWriter)
func MarshalOperationUpgradeResponse ¶
func MarshalOperationUpgradeResponse(res *c_s.Customer, w http.ResponseWriter)
func MarshalUpdateResponse ¶
func MarshalUpdateResponse(res *c_s.Customer, w http.ResponseWriter)
Types ¶
type Handler ¶
type Handler struct { Logger *slog.Logger Controller customer_c.CustomerController }
Handler Creates http request handler
func NewHandler ¶
func NewHandler(loggerp *slog.Logger, c customer_c.CustomerController) *Handler
NewHandler Constructor
func (*Handler) DeleteByID ¶
func (*Handler) ListAsSelectOptions ¶
func (h *Handler) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationArchive ¶
func (h *Handler) OperationArchive(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationAvatar ¶
func (h *Handler) OperationAvatar(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationBan ¶
func (h *Handler) OperationBan(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationChangePassword ¶
func (h *Handler) OperationChangePassword(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationChangeTwoFactorAuthentication ¶
func (h *Handler) OperationChangeTwoFactorAuthentication(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationCreateComment ¶
func (h *Handler) OperationCreateComment(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationDowngrade ¶
func (h *Handler) OperationDowngrade(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationUnban ¶
func (h *Handler) OperationUnban(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationUpgrade ¶
func (h *Handler) OperationUpgrade(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateByID ¶
Click to show internal directories.
Click to hide internal directories.