FindAllProductsRequest.go 643 B

12345678910111213141516171819202122232425
  1. package http_model
  2. type FindAllProductsRequest struct {
  3. EnterpriseID string `json:"enterprise_id"`
  4. }
  5. type ProductInfos struct {
  6. ProductID int64 `json:"product_id"`
  7. BrandName string `json:"brand_name"`
  8. ProductName string `json:"product_name"`
  9. ProductType string `json:"product_type"`
  10. }
  11. type FindAllProductsData struct {
  12. ProductInfos []ProductInfos `json:"product_infos"`
  13. }
  14. func NewFindAllProductsRequest() *FindAllProductsRequest {
  15. return new(FindAllProductsRequest)
  16. }
  17. func NewFindAllProductsResponse() *CommonResponse {
  18. resp := new(CommonResponse)
  19. resp.Data = new(FindAllProductsData)
  20. return resp
  21. }