Documentation
¶
Index ¶
- func MarshalCreateResponse(res *orderincident_s.OrderIncident, w http.ResponseWriter)
- func MarshalDetailResponse(res *sub_s.OrderIncident, w http.ResponseWriter)
- func MarshalListAsSelectOptionResponse(res []*sub_s.OrderIncidentAsSelectOption, w http.ResponseWriter)
- func MarshalListResponse(res *orderincident_s.OrderIncidentPaginationListAndCountResult, ...)
- func MarshalOperationCreateAttachmentResponse(res *a_s.OrderIncident, w http.ResponseWriter)
- func MarshalOperationCreateCommentResponse(res *c_s.OrderIncident, w http.ResponseWriter)
- func MarshalUpdateResponse(res *orderincident_s.OrderIncident, w http.ResponseWriter)
- func UnmarshalUpdateRequest(ctx context.Context, r *http.Request) (*orderincident_c.OrderIncidentUpdateRequestIDO, 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) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OperationCreateAttachment(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)
- type OrderIncidentOperationCreateCommentRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCreateResponse ¶
func MarshalCreateResponse(res *orderincident_s.OrderIncident, w http.ResponseWriter)
func MarshalDetailResponse ¶
func MarshalDetailResponse(res *sub_s.OrderIncident, w http.ResponseWriter)
func MarshalListAsSelectOptionResponse ¶
func MarshalListAsSelectOptionResponse(res []*sub_s.OrderIncidentAsSelectOption, w http.ResponseWriter)
func MarshalListResponse ¶
func MarshalListResponse(res *orderincident_s.OrderIncidentPaginationListAndCountResult, w http.ResponseWriter)
func MarshalOperationCreateAttachmentResponse ¶
func MarshalOperationCreateAttachmentResponse(res *a_s.OrderIncident, w http.ResponseWriter)
func MarshalOperationCreateCommentResponse ¶
func MarshalOperationCreateCommentResponse(res *c_s.OrderIncident, w http.ResponseWriter)
func MarshalUpdateResponse ¶
func MarshalUpdateResponse(res *orderincident_s.OrderIncident, w http.ResponseWriter)
func UnmarshalUpdateRequest ¶
func UnmarshalUpdateRequest(ctx context.Context, r *http.Request) (*orderincident_c.OrderIncidentUpdateRequestIDO, error)
Types ¶
type Handler ¶
type Handler struct { Logger *slog.Logger Controller orderincident_c.OrderIncidentController }
Handler Creates http request handler
func NewHandler ¶
func NewHandler(loggerp *slog.Logger, c orderincident_c.OrderIncidentController) *Handler
NewHandler Constructor
func (*Handler) DeleteByID ¶
func (*Handler) ListAsSelectOptions ¶
func (h *Handler) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationCreateAttachment ¶
func (h *Handler) OperationCreateAttachment(w http.ResponseWriter, r *http.Request)
func (*Handler) OperationCreateComment ¶
func (h *Handler) OperationCreateComment(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateByID ¶
Click to show internal directories.
Click to hide internal directories.