mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
feat:商品添加修改功能
This commit is contained in:
parent
f4a0e5229b
commit
f7ea87512a
@ -1,22 +1,25 @@
|
|||||||
package com.youlai.mall.pms.bo;
|
package com.youlai.mall.pms.bo;
|
||||||
|
|
||||||
import com.youlai.mall.pms.pojo.PmsSku;
|
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.PmsSpuAttribute;
|
||||||
import com.youlai.mall.pms.pojo.PmsSpuSpecification;
|
import com.youlai.mall.pms.pojo.PmsSpuSpecification;
|
||||||
|
import com.youlai.mall.pms.pojo.dto.PmsSpuDTO;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class SpuBO {
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class PmsSpuBO {
|
||||||
|
|
||||||
private PmsSpu spu;
|
private PmsSpuDTO spu;
|
||||||
|
|
||||||
private List<PmsSpuAttribute> attributes;
|
private List<PmsSpuAttribute> attributes;
|
||||||
|
|
||||||
private List<PmsSpuSpecification> specifications;
|
private List<PmsSpuSpecification> specifications;
|
||||||
|
|
||||||
private List<PmsSku> skuList;
|
private List<PmsSku> skuList;
|
||||||
|
|
||||||
}
|
}
|
@ -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;
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package com.youlai.mall.pms.vo;
|
package com.youlai.mall.pms.pojo.vo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -19,7 +19,7 @@ public class Result<T> implements Serializable {
|
|||||||
|
|
||||||
private String msg;
|
private String msg;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
|
||||||
private long total;
|
private long total;
|
||||||
|
|
||||||
public static <T> Result<T> success() {
|
public static <T> Result<T> success() {
|
||||||
|
Loading…
Reference in New Issue
Block a user