parent
20f2ad7416
commit
016600ab2e
@ -0,0 +1,24 @@
|
|||||||
|
package cn.iocoder.mall.product.biz.dto.category;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: jiangweifan
|
||||||
|
* @Date: 2020/5/6
|
||||||
|
* @Description: 商品分类 - 删除商品分类DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class ProductCategoryDeleteDTO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理员id
|
||||||
|
*/
|
||||||
|
private Integer adminId;
|
||||||
|
/**
|
||||||
|
* 商品分类编号
|
||||||
|
*/
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,46 +1,44 @@
|
|||||||
package cn.iocoder.mall.product.biz.dto.product;
|
package cn.iocoder.mall.product.biz.dto.category;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品分类更新 DTO
|
* @Author: jiangweifan
|
||||||
|
* @Date: 2020/5/6
|
||||||
|
* @Description: 商品分类 - 更新商品分类DTO
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class ProductCategoryUpdateDTO {
|
public class ProductCategoryUpdateDTO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理员id
|
||||||
|
*/
|
||||||
|
private Integer adminId;
|
||||||
/**
|
/**
|
||||||
* 编号
|
* 编号
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "编号不能为空")
|
|
||||||
private Integer id;
|
private Integer id;
|
||||||
/**
|
/**
|
||||||
* 父分类编号
|
* 父分类编号
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "父分类编号不能为空")
|
|
||||||
private Integer pid;
|
private Integer pid;
|
||||||
/**
|
/**
|
||||||
* 名称
|
* 名称
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "名称不能为空")
|
|
||||||
private String name;
|
private String name;
|
||||||
/**
|
/**
|
||||||
* 描述
|
* 描述
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "描述不能为空")
|
|
||||||
private String description;
|
private String description;
|
||||||
/**
|
/**
|
||||||
* 分类图片
|
* 分类图片
|
||||||
*/
|
*/
|
||||||
// @NotNull(message = "分类图片不能为空")
|
|
||||||
private String picUrl;
|
private String picUrl;
|
||||||
/**
|
/**
|
||||||
* 排序值
|
* 排序值
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "排序值不能为空")
|
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package cn.iocoder.mall.product.biz.dto.category;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: jiangweifan
|
||||||
|
* @Date: 2020/5/6
|
||||||
|
* @Description: 商品分类 - 更新商品分类状态DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class ProductCategoryUpdateStatusDTO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理员id
|
||||||
|
*/
|
||||||
|
private Integer adminId;
|
||||||
|
/**
|
||||||
|
* 商品分类编号
|
||||||
|
*/
|
||||||
|
private Integer id;
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,54 @@
|
|||||||
|
package cn.iocoder.mall.product.rest.request.category;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: jiangweifan
|
||||||
|
* @Date: 2020/5/6
|
||||||
|
* @Description: 商品分类 - 更新商品分类Request
|
||||||
|
*/
|
||||||
|
@ApiModel("更新商品分类Request")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AdminsProductCategoryUpdateRequest {
|
||||||
|
/**
|
||||||
|
* 编号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(name = "id", value = "分类编号", required = true, example = "1")
|
||||||
|
@NotNull(message = "编号不能为空")
|
||||||
|
private Integer id;
|
||||||
|
/**
|
||||||
|
* 父分类编号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(name = "pid", value = "父级分类编号", required = true, example = "1")
|
||||||
|
@NotNull(message = "父分类编号不能为空")
|
||||||
|
private Integer pid;
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(name = "name", value = "分类名字(标识)", required = true, example = "admin/info")
|
||||||
|
@NotNull(message = "名称不能为空")
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(name = "description", value = "描述", required = true, example = "1")
|
||||||
|
@NotNull(message = "描述不能为空")
|
||||||
|
private String description;
|
||||||
|
/**
|
||||||
|
* 分类图片
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(name = "picUrl", value = "分类图片", example = "http://www.iocoder.cn/images/common/wechat_mp_2017_07_31_bak.jpg/")
|
||||||
|
private String picUrl;
|
||||||
|
/**
|
||||||
|
* 排序值
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(name = "sort", value = "排序", required = true, example = "1")
|
||||||
|
@NotNull(message = "排序值不能为空")
|
||||||
|
private Integer sort;
|
||||||
|
}
|
||||||
Loading…
Reference in new issue