Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
b6498b44
提交
b6498b44
authored
5月 08, 2020
作者:
jiangweifan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整请求参数校验
上级
0c328605
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
0 行删除
+11
-0
AdminsProductCategoryAddRequest.java
...est/request/category/AdminsProductCategoryAddRequest.java
+4
-0
AdminsProductCategoryUpdateRequest.java
.../request/category/AdminsProductCategoryUpdateRequest.java
+5
-0
AdminsProductCategoryUpdateStatusRequest.java
...st/category/AdminsProductCategoryUpdateStatusRequest.java
+2
-0
没有找到文件。
product/product-rest/src/main/java/cn/iocoder/mall/product/rest/request/category/AdminsProductCategoryAddRequest.java
浏览文件 @
b6498b44
...
...
@@ -19,17 +19,21 @@ public class AdminsProductCategoryAddRequest {
// TODO FROM 芋艿 to 伟帆:写了 swagger 注解,我们可以少写一份 Java 注释。[DONE]
@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
;
}
product/product-rest/src/main/java/cn/iocoder/mall/product/rest/request/category/AdminsProductCategoryUpdateRequest.java
浏览文件 @
b6498b44
...
...
@@ -18,20 +18,25 @@ import javax.validation.constraints.NotNull;
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
;
}
product/product-rest/src/main/java/cn/iocoder/mall/product/rest/request/category/AdminsProductCategoryUpdateStatusRequest.java
浏览文件 @
b6498b44
...
...
@@ -18,8 +18,10 @@ import javax.validation.constraints.NotNull;
public
class
AdminsProductCategoryUpdateStatusRequest
{
@ApiModelProperty
(
name
=
"id"
,
value
=
"分类编号"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"编号不能为空"
)
private
Integer
id
;
@ApiModelProperty
(
name
=
"status"
,
value
=
"状态。1 - 开启;2 - 禁用"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"状态不能为空"
)
private
Integer
status
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论