Documentation ¶
Index ¶
- func MarshalCreateResponse(res *sub_s.Tenant, w http.ResponseWriter)
- func MarshalDetailResponse(res *sub_s.Tenant, w http.ResponseWriter)
- func MarshalListAsSelectOptionResponse(res []*sub_s.TenantAsSelectOption, w http.ResponseWriter)
- func MarshalListResponse(res *sub_s.TenantListResult, w http.ResponseWriter)
- func MarshalOperationCreateCommentResponse(res *sub_s.Tenant, w http.ResponseWriter)
- func MarshalUpdateResponse(res *sub_s.Tenant, w http.ResponseWriter)
- func UnmarshalCreateRequest(ctx context.Context, r *http.Request) (*sub_s.Tenant, error)
- func UnmarshalUpdateRequest(ctx context.Context, r *http.Request) (*sub_s.Tenant, error)
- func UnmarshalUpdateTaxRateOperationRequest(ctx context.Context, r *http.Request) (*c.UpdateTaxRateOperationRequestIDO, error)
- func ValidateCreateRequest(dirtyData *sub_s.Tenant) error
- func ValidateOperationCreateCommentRequest(dirtyData *TenantOperationCreateCommentRequest) error
- func ValidateUpdateRequest(dirtyData *sub_s.Tenant) error
- 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) ListAsSelectOptionByFilter(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationCreateComment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateByID(w http.ResponseWriter, r *http.Request, id string)
- func (h *Handler) UpdateTaxRateOperation(w http.ResponseWriter, r *http.Request)
- type TenantOperationCreateCommentRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCreateResponse ¶
func MarshalCreateResponse(res *sub_s.Tenant, w http.ResponseWriter)
func MarshalDetailResponse ¶
func MarshalDetailResponse(res *sub_s.Tenant, w http.ResponseWriter)
func MarshalListAsSelectOptionResponse ¶
func MarshalListAsSelectOptionResponse(res []*sub_s.TenantAsSelectOption, w http.ResponseWriter)
func MarshalListResponse ¶
func MarshalListResponse(res *sub_s.TenantListResult, w http.ResponseWriter)
func MarshalOperationCreateCommentResponse ¶
func MarshalOperationCreateCommentResponse(res *sub_s.Tenant, w http.ResponseWriter)
func MarshalUpdateResponse ¶
func MarshalUpdateResponse(res *sub_s.Tenant, w http.ResponseWriter)
func UnmarshalCreateRequest ¶
func UnmarshalUpdateRequest ¶
func ValidateCreateRequest ¶
func ValidateOperationCreateCommentRequest ¶
func ValidateOperationCreateCommentRequest(dirtyData *TenantOperationCreateCommentRequest) error
func ValidateUpdateRequest ¶
Types ¶
type Handler ¶
type Handler struct { Logger *slog.Logger Controller tenant_c.TenantController }
Handler Creates http request handler
func NewHandler ¶
func NewHandler(loggerp *slog.Logger, c tenant_c.TenantController) *Handler
NewHandler Constructor
func (*Handler) DeleteByID ¶
func (*Handler) ListAsSelectOptionByFilter ¶
func (h *Handler) ListAsSelectOptionByFilter(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationCreateComment ¶
func (h *Handler) OperationCreateComment(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateByID ¶
func (*Handler) UpdateTaxRateOperation ¶
func (h *Handler) UpdateTaxRateOperation(w http.ResponseWriter, r *http.Request)
type TenantOperationCreateCommentRequest ¶
type TenantOperationCreateCommentRequest struct { TenantID primitive.ObjectID `bson:"tenant_id" json:"tenant_id"` Content string `bson:"content" json:"content"` }
Click to show internal directories.
Click to hide internal directories.