feat:商品添加修改功能

This commit is contained in:
haoxr 2020-12-13 16:53:16 +08:00
parent f4a0e5229b
commit f7ea87512a
4 changed files with 31 additions and 6 deletions

View File

@ -1,22 +1,25 @@
package com.youlai.mall.pms.bo;
import com.youlai.mall.pms.pojo.PmsSku;
import com.youlai.mall.pms.pojo.PmsSpu;
import com.youlai.mall.pms.pojo.PmsSpuAttribute;
import com.youlai.mall.pms.pojo.PmsSpuSpecification;
import com.youlai.mall.pms.pojo.dto.PmsSpuDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
public class SpuBO {
@AllArgsConstructor
@NoArgsConstructor
public class PmsSpuBO {
private PmsSpu spu;
private PmsSpuDTO spu;
private List<PmsSpuAttribute> attributes;
private List<PmsSpuSpecification> specifications;
private List<PmsSku> skuList;
}

View File

@ -0,0 +1,22 @@
package com.youlai.mall.pms.pojo.dto;
import lombok.Data;
import java.util.List;
@Data
public class PmsSpuDTO {
private Long id;
private String name;
private Long categoryId;
private Long brandId;
private Long originPrice;
private Long price;
private String pic;
private List<String> pics;
private String unit;
private String description;
private String detail;
private Integer status;
}

View File

@ -1,4 +1,4 @@
package com.youlai.mall.pms.vo;
package com.youlai.mall.pms.pojo.vo;
import lombok.Data;

View File

@ -19,7 +19,7 @@ public class Result<T> implements Serializable {
private String msg;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
private long total;
public static <T> Result<T> success() {