httptransport

package
v0.0.0-...-53e80a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalCreateResponse

func MarshalCreateResponse(res *usr_s.Order, w http.ResponseWriter)

func MarshalOperationCloneResponse

func MarshalOperationCloneResponse(res *o_s.Order, w http.ResponseWriter)

func MarshalOperationCloseResponse

func MarshalOperationCloseResponse(res *c_s.Order, w http.ResponseWriter)

func MarshalOperationCreateCommentResponse

func MarshalOperationCreateCommentResponse(res *c_s.Order, w http.ResponseWriter)

func MarshalOperationPostponeResponse

func MarshalOperationPostponeResponse(res *c_s.Order, w http.ResponseWriter)

func MarshalOperationTransferResponse

func MarshalOperationTransferResponse(res *c_s.Order, w http.ResponseWriter)

func MarshalOperationUnassignResponse

func MarshalOperationUnassignResponse(res *c_s.Order, w http.ResponseWriter)

func MarshalUpdateResponse

func MarshalUpdateResponse(res *usr_s.Order, w http.ResponseWriter)

func UnmarshalOperationCloneRequest

func UnmarshalOperationCloneRequest(ctx context.Context, r *http.Request) (*o_c.OrderOperationCloneRequest, error)

func UnmarshalOperationCloseRequest

func UnmarshalOperationCloseRequest(ctx context.Context, r *http.Request) (*c_c.OrderOperationCloseRequest, error)

func UnmarshalOperationCreateCommentRequest

func UnmarshalOperationCreateCommentRequest(ctx context.Context, r *http.Request) (*c_c.OrderOperationCreateCommentRequest, error)

func UnmarshalOperationPostponeRequest

func UnmarshalOperationPostponeRequest(ctx context.Context, r *http.Request) (*c_c.OrderOperationPostponeRequest, error)

func UnmarshalOperationTransferRequest

func UnmarshalOperationTransferRequest(ctx context.Context, r *http.Request) (*c_c.OrderOperationTransferRequest, error)

func UnmarshalOperationUnassignRequest

func UnmarshalOperationUnassignRequest(ctx context.Context, r *http.Request) (*c_c.OrderOperationUnassignRequest, error)

Types

type Handler

type Handler struct {
	Logger     *slog.Logger
	Controller order_c.OrderController
}

Handler Creates http request handler

func NewHandler

func NewHandler(loggerp *slog.Logger, c order_c.OrderController) *Handler

NewHandler Constructor

func (*Handler) Create

func (h *Handler) Create(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteByWJID

func (h *Handler) DeleteByWJID(w http.ResponseWriter, r *http.Request, idStr string)

func (*Handler) GetByWJID

func (h *Handler) GetByWJID(w http.ResponseWriter, r *http.Request, idStr string)

func (*Handler) LiteList

func (h *Handler) LiteList(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationClone

func (h *Handler) OperationClone(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationClose

func (h *Handler) OperationClose(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationCreateComment

func (h *Handler) OperationCreateComment(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationGenerateInvoice

func (h *Handler) OperationGenerateInvoice(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationPostpone

func (h *Handler) OperationPostpone(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationTransfer

func (h *Handler) OperationTransfer(w http.ResponseWriter, r *http.Request)

func (*Handler) OperationUnassign

func (h *Handler) OperationUnassign(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateByWJID

func (h *Handler) UpdateByWJID(w http.ResponseWriter, r *http.Request, wjidStr string)

func (*Handler) UpdateFinancialByWJID

func (h *Handler) UpdateFinancialByWJID(w http.ResponseWriter, r *http.Request, wjidStr string)

type OrderOperationCloseRequest

type OrderOperationCloseRequest struct {
	OrderID primitive.ObjectID `bson:"order_id" json:"order_id"`
	Content string             `bson:"content" json:"content"`
}

type OrderOperationCreateCommentRequest

type OrderOperationCreateCommentRequest struct {
	OrderID primitive.ObjectID `bson:"order_id" json:"order_id"`
	Content string             `bson:"content" json:"content"`
}

type OrderOperationPostponeRequest

type OrderOperationPostponeRequest struct {
	OrderID primitive.ObjectID `bson:"order_id" json:"order_id"`
	Content string             `bson:"content" json:"content"`
}

type OrderOperationTransferRequest

type OrderOperationTransferRequest struct {
	OrderID primitive.ObjectID `bson:"order_id" json:"order_id"`
	Content string             `bson:"content" json:"content"`
}

type OrderOperationUnassignRequest

type OrderOperationUnassignRequest struct {
	OrderID primitive.ObjectID `bson:"order_id" json:"order_id"`
	Content string             `bson:"content" json:"content"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL