product_findall.go 523 B

1234567891011121314151617181920212223
  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. }
  9. type FindAllProductData struct {
  10. ProductInfos []ProductInfo `json:"product_infos"`
  11. }
  12. func NewFindAllProductRequest() *FindAllProductRequest {
  13. return new(FindAllProductRequest)
  14. }
  15. func NewFindAllProductResponse() *CommonResponse {
  16. resp := new(CommonResponse)
  17. resp.Data = new(FindAllProductData)
  18. return resp
  19. }