mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 20:54:26 +08:00
feat:添加商品列表接口
This commit is contained in:
parent
644d4de555
commit
ccf9efe891
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user