Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerCreateReq ¶
type CustomerCreateReq struct { Firstname string `json:"firstname" binding:"required"` Lastname string `json:"lastname" binding:"required"` Email string `json:"email" binding:"required,email"` }
func (*CustomerCreateReq) MapToModel ¶
func (req *CustomerCreateReq) MapToModel() model.Customer
type ErrorMessage ¶
func NewErrorMessage ¶
func NewErrorMessage(msg, desc string) *ErrorMessage
type IdResponse ¶
type IdResponse struct {
Id int64 `json:"id"`
}
func NewIdResponse ¶
func NewIdResponse(id int64) *IdResponse
type NextIdResponse ¶
type SellerCreateReq ¶
type SellerCreateReq struct { Name string `json:"name" binding:"required"` Email string `json:"email" binding:"required,email"` }
func (*SellerCreateReq) MapToModel ¶
func (req *SellerCreateReq) MapToModel() model.Seller
Click to show internal directories.
Click to hide internal directories.