Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
a8bc6754
提交
a8bc6754
authored
5月 11, 2020
作者:
YunaiV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品品牛排和规格,代码 REVIEW
上级
b45739d1
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
6 行增加
和
1 行删除
+6
-1
ProductBrandMapper.java
...oder/mall/product/biz/dao/product/ProductBrandMapper.java
+1
-0
AdminsProductBrandController.java
.../rest/controller/admins/AdminsProductBrandController.java
+3
-1
UserFavoriteController.java
...product/rest/controller/users/UserFavoriteController.java
+1
-0
UserErrorCodeEnum.java
...ava/cn/iocoder/mall/user/biz/enums/UserErrorCodeEnum.java
+1
-0
没有找到文件。
product/product-biz/src/main/java/cn/iocoder/mall/product/biz/dao/product/ProductBrandMapper.java
浏览文件 @
a8bc6754
...
...
@@ -13,6 +13,7 @@ import org.springframework.stereotype.Repository;
@Repository
public
interface
ProductBrandMapper
extends
BaseMapper
<
ProductBrandDO
>
{
// TODO FROM 芋艿 to q2118cs:selectPageByParams
default
IPage
<
ProductBrandDO
>
selectListByParams
(
ProductBrandPageDTO
productBrandPageDTO
)
{
Page
<
ProductBrandDO
>
page
=
new
Page
<>(
productBrandPageDTO
.
getPageNo
(),
productBrandPageDTO
.
getPageSize
());
LambdaQueryWrapper
<
ProductBrandDO
>
queryWrapper
=
Wrappers
.<
ProductBrandDO
>
query
().
lambda
()
...
...
product/product-rest/src/main/java/cn/iocoder/mall/product/rest/controller/admins/AdminsProductBrandController.java
浏览文件 @
a8bc6754
...
...
@@ -24,9 +24,10 @@ import static cn.iocoder.common.framework.vo.CommonResult.success;
@RestController
@RequestMapping
(
"admins/brand"
)
@Api
(
"商品品牌"
)
@Api
(
"商品品牌"
)
// TODO FROM 芋艿 to q2118cs:管理员 - 商品品牌 API。。哈哈哈,原来没规范
public
class
AdminsProductBrandController
{
// TODO FROM 芋艿 to q2118cs:貌似没注入哈
private
ProductBrandService
productBrandService
;
@PostMapping
(
"/add"
)
...
...
@@ -49,6 +50,7 @@ public class AdminsProductBrandController {
@ApiImplicitParam
(
name
=
"picUrl"
,
value
=
"品牌图片"
,
required
=
true
,
example
=
"http://www.iocoder.cn"
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"状态 1开启 2禁用"
,
required
=
true
,
example
=
"1"
)
})
// TODO FROM 芋艿 to q2118cs:只要改成了 bean 接收,就不用在写 @ApiImplicitParam 注解啦,直接在 bean 里写就 ok 啦
public
CommonResult
<
Boolean
>
update
(
@Validated
ProductBrandUpdateRequest
updateRequest
)
{
// 创建 productBrandUpdateDTO 对象
ProductBrandUpdateDTO
productBrandUpdateDTO
=
ProductBrandConvert
.
INSTANCE
.
convertUpdate
(
updateRequest
);
...
...
product/product-rest/src/main/java/cn/iocoder/mall/product/rest/controller/users/UserFavoriteController.java
浏览文件 @
a8bc6754
...
...
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping
(
"users/favorite"
)
@Api
(
"用户收藏"
)
// TODO FROM 芋艿 to ilnhj:controller 分包的话,还是按照模块。然后通过 Admins 和 Users 前缀,区分不同的 Controlller
public
class
UserFavoriteController
{
}
user/user-biz/src/main/java/cn/iocoder/mall/user/biz/enums/UserErrorCodeEnum.java
浏览文件 @
a8bc6754
...
...
@@ -15,6 +15,7 @@ public enum UserErrorCodeEnum implements ServiceExceptionUtil.Enumerable {
USER_GET_ADDRESS_NOT_EXISTS
(
1001004002
,
"获取的地址不存在!"
),
// ========== 用户 ==========
// TODO FROM 芋艿 to linhj:是不是提示不对呀
USER_NOT_EXISTS
(
1001004003
,
"获取的地址不存在!"
),
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论