1234567891011121314151617181920212223 |
- package http_model
- type FindAllProductRequest struct {
- }
- type ProductInfo struct {
- ProductID int64 `json:"product_id"`
- BrandName string `json:"brand_name"`
- ProductName string `json:"product_name"`
- }
- type FindAllProductData struct {
- ProductInfos []ProductInfo `json:"product_infos"`
- }
- func NewFindAllProductRequest() *FindAllProductRequest {
- return new(FindAllProductRequest)
- }
- func NewFindAllProductResponse() *CommonResponse {
- resp := new(CommonResponse)
- resp.Data = new(FindAllProductData)
- return resp
- }
|