Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleMapper ¶
type ExampleMapper struct{}
func (*ExampleMapper) Map ¶
func (m *ExampleMapper) Map(ctx context.Context, mapCtx *port.MapperContext) (any, error)
Map parses the raw body and returns the business-specific payload. If you need to support multiple document types, route internally here.
type ExamplePayload ¶
type ExamplePayload struct {
CustomerName string `json:"customerName"`
ProductID string `json:"productId"`
Amount float64 `json:"amount"`
Quantity int `json:"quantity"`
}
ExamplePayload is the business-specific payload. Define the fields you expect to receive in the request body.
Click to show internal directories.
Click to hide internal directories.