product_findall.go 565 B

123456789101112131415161718192021222324
  1. package http_model
  2. type FindAllProductRequest struct {
  3. }
  4. type ProductInfo struct {
  5. ProductID int64 `json:"product_id"`
  6. BrandName string `json:"brand_name"`
  7. ProductName string `json:"product_name"`
  8. ProductType string `json:"product_type"`
  9. }
  10. type FindAllProductData struct {
  11. ProductInfos []ProductInfo `json:"product_infos"`
  12. }
  13. func NewFindAllProductRequest() *FindAllProductRequest {
  14. return new(FindAllProductRequest)
  15. }
  16. func NewFindAllProductResponse() *CommonResponse {
  17. resp := new(CommonResponse)
  18. resp.Data = new(FindAllProductData)
  19. return resp
  20. }