main--VO--ResultVO.java
package com.tkft.sell.VO;
import lombok.Data;
/**
* http请求返回的最外层对象
* @Auther xinyuan
* @Date 11/17/18 3:22 PM
**/
@Data
public class ResultVO<T> {
// 错误码
private Integer code;
private String msg;
private T data;
}
package com.tkft.sell.VO;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
/**
* 商品(包含类目)
* @Auther xinyuan
* @Date 11/17/18 3:29 PM
**/
@Data
public class ProductVO {
@JsonProperty("name")
private String categoryName;//
@JsonProperty("type")
private Integer categoryType;
@JsonProperty("foods")
private List<ProductInfoVO> productInfoVOList;
}
package com.tkft.sell.VO;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
/**
* 商品详情
* @Auther xinyuan
* @Date 11/17/18 3:33 PM
**/
@Data
public class ProductInfoVO {
@JsonProperty("id")
private String productId;
@JsonProperty("name")
private String productName;
@JsonProperty("price")
private BigDecimal productPrice;
@JsonProperty("description")
private BigDecimal productDescription;
@JsonProperty("icon")
private BigDecimal productIcon;
}
网友评论