feat:添加商品列表接口

This commit is contained in:
haoxr 2020-11-05 18:00:04 +08:00
parent 644d4de555
commit ccf9efe891
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package com.youlai.mall.pms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youlai.common.core.base.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class PmsSku extends BaseEntity {
@TableId(type = IdType.AUTO)
private Long id;
private Long spuId;
private String specification;
private String barCode;
private String pic;
private Integer originPrice;
private Integer price;
private Integer vipPrice;
private Integer stock;
}

View File

@ -0,0 +1,37 @@
package com.youlai.mall.pms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youlai.common.core.base.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
@Data
public class PmsSpu extends BaseEntity {
@TableId(type = IdType.AUTO)
private Long id;
private String name;
private Long categoryId;
private Long brandId;
private BigDecimal originPrice;
private BigDecimal price;
private BigDecimal vipPrice;
private Integer sale;
private String pic;
private String album;
private String unit;
private String description;
private String detail;
private Integer status;
@TableField(exist = false)
private String categoryName;
@TableField(exist = false)
private List<PmsSku> skuList;
}

View File

@ -1,5 +1,6 @@
package com.youlai.common.web.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -20,5 +21,6 @@ public class CascaderVO {
private String label;
@ApiModelProperty(name="子节点")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<CascaderVO> children;
}