记得上下班打卡 | git大法好,push需谨慎

Commit 07da175c authored by 胡佳晨's avatar 胡佳晨

修改 接收参数文档

parent 0edadc67
...@@ -8,23 +8,23 @@ import java.math.BigDecimal; ...@@ -8,23 +8,23 @@ import java.math.BigDecimal;
@Data @Data
public class GoblinListCreateItemParam { public class GoblinListCreateItemParam {
@ApiModelProperty(value = "spuId") @ApiModelProperty(value = "spuId",required = true)
@NotNull(message = "spuId不能为空") @NotNull(message = "spuId不能为空")
private String spuId; private String spuId;
@ApiModelProperty(value = "skuId") @ApiModelProperty(value = "skuId",required = true)
@NotNull(message = "skuId不能为空") @NotNull(message = "skuId不能为空")
private String skuId; private String skuId;
@ApiModelProperty(value = "android价格") @ApiModelProperty(value = "android价格",required = true)
@NotNull(message = "price不能为空") @NotNull(message = "price不能为空")
private BigDecimal price; private BigDecimal price;
@ApiModelProperty(value = "库存") @ApiModelProperty(value = "库存",required = true)
@NotNull(message = "库存不能为空") @NotNull(message = "库存不能为空")
private Integer skuStock; private Integer skuStock;
@ApiModelProperty(value = "苹果价格") @ApiModelProperty(value = "苹果价格",required = true)
@NotNull(message = "苹果价格不能为空") @NotNull(message = "苹果价格不能为空")
private BigDecimal priceV; private BigDecimal priceV;
@ApiModelProperty(value = "苹果价格id") @ApiModelProperty(value = "苹果价格id",required = true)
@NotNull(message = "苹果价格id不能为空") @NotNull(message = "苹果价格id不能为空")
private String productId; private String productId;
} }
...@@ -8,18 +8,18 @@ import java.util.List; ...@@ -8,18 +8,18 @@ import java.util.List;
@Data @Data
public class GoblinListCreateParam { public class GoblinListCreateParam {
@ApiModelProperty(value = "优先购名称") @ApiModelProperty(value = "优先购名称",required = true)
@NotNull(message = "优先购名称不能为空") @NotNull(message = "优先购名称不能为空")
private String name; private String name;
@ApiModelProperty(value = "优先购类型[0-会员|1-指定用户]") @ApiModelProperty(value = "优先购类型[0-会员|1-指定用户]",required = true)
@NotNull(message = "优先购类型不能为空") @NotNull(message = "优先购类型不能为空")
private Integer whiteType; private Integer whiteType;
@ApiModelProperty(value = "标签[0-提前购买|1-分段购买]") @ApiModelProperty(value = "标签[0-提前购买|1-分段购买]",required = true)
@NotNull(message = "标签类型不能为空") @NotNull(message = "标签类型不能为空")
private Integer tagType; private Integer tagType;
@ApiModelProperty(value = "优先购文件地址") @ApiModelProperty(value = "优先购文件地址")
private String whiteUrl; private String whiteUrl;
@ApiModelProperty(value = "开始时间") @ApiModelProperty(value = "开始时间",required = true)
@NotNull(message = "开始时间不能为空") @NotNull(message = "开始时间不能为空")
private String timeStart; private String timeStart;
@ApiModelProperty(value = "结束时间") @ApiModelProperty(value = "结束时间")
...@@ -30,6 +30,6 @@ public class GoblinListCreateParam { ...@@ -30,6 +30,6 @@ public class GoblinListCreateParam {
private String blackName; private String blackName;
@ApiModelProperty(value = "白名单文件名称") @ApiModelProperty(value = "白名单文件名称")
private String whiteName; private String whiteName;
@ApiModelProperty(value = "商品数据") @ApiModelProperty(value = "商品数据",required = true)
private List<GoblinListCreateItemParam> itemParams; private List<GoblinListCreateItemParam> itemParams;
} }
...@@ -8,10 +8,10 @@ import java.util.List; ...@@ -8,10 +8,10 @@ import java.util.List;
@Data @Data
public class GoblinListUpdateParam { public class GoblinListUpdateParam {
@ApiModelProperty(value = "名单id") @ApiModelProperty(value = "名单id",required = true)
@NotNull(message = "名单id不能为空") @NotNull(message = "名单id不能为空")
private String listId; private String listId;
@ApiModelProperty(value = "优先购类型[0-会员|1-指定用户]") @ApiModelProperty(value = "优先购类型[0-会员|1-指定用户]",required = true)
@NotNull(message = "优先购类型不能为空") @NotNull(message = "优先购类型不能为空")
private Integer whiteType; private Integer whiteType;
@ApiModelProperty(value = "优先购文件地址") @ApiModelProperty(value = "优先购文件地址")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment