mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
feat:商品添加修改功能
This commit is contained in:
parent
f4a0e5229b
commit
f7ea87512a
@ -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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user