product_findall.go 608 B

12345678910111213141516171819202122232425
  1. package http_model
  2. type FindAllProductRequest struct {
  3. UserID string `json:"userID"` // 用户ID
  4. }
  5. type ProductInfo 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 FindAllProductData struct {
  12. ProductInfos []ProductInfo `json:"product_infos"`
  13. }
  14. func NewFindAllProductRequest() *FindAllProductRequest {
  15. return new(FindAllProductRequest)
  16. }
  17. func NewFindAllProductResponse() *CommonResponse {
  18. resp := new(CommonResponse)
  19. resp.Data = new(FindAllProductData)
  20. return resp
  21. }