Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
pms
Commits
bf10feea
提交
bf10feea
authored
7月 26, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改:去掉必填字段 新增:小程序商品详情接口
上级
0316b915
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
44 行增加
和
4 行删除
+44
-4
AppMallGoodsController.java
...a/com/mmc/pms/controller/mall/AppMallGoodsController.java
+36
-0
MallGoodsDO.java
src/main/java/com/mmc/pms/entity/mall/MallGoodsDO.java
+1
-1
GoodsSpecValuesVO.java
src/main/java/com/mmc/pms/model/mall/GoodsSpecValuesVO.java
+3
-3
MallGoodsVO.java
src/main/java/com/mmc/pms/model/mall/MallGoodsVO.java
+3
-0
not-check.yml
src/main/resources/not-check.yml
+1
-0
没有找到文件。
src/main/java/com/mmc/pms/controller/mall/AppMallGoodsController.java
0 → 100644
浏览文件 @
bf10feea
package
com
.
mmc
.
pms
.
controller
.
mall
;
import
com.mmc.pms.common.ResultBody
;
import
com.mmc.pms.controller.BaseController
;
import
com.mmc.pms.model.mall.MallGoodsVO
;
import
com.mmc.pms.service.mall.MallGoodsService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
* @Author LW
* @date 2023/7/26 14:26
* 概要:
*/
@RestController
@RequestMapping
(
"/app/goods"
)
@Api
(
tags
=
{
"V1.0.3-小程序商城商品-相关接口"
})
public
class
AppMallGoodsController
extends
BaseController
{
@Resource
private
MallGoodsService
mallGoodsService
;
@ApiOperation
(
value
=
"小程序商品详情"
)
@GetMapping
(
"appMallGoodsDetails"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
MallGoodsVO
.
class
)})
public
ResultBody
<
MallGoodsVO
>
appMallGoodsDetails
(
@RequestParam
Long
id
)
{
return
mallGoodsService
.
mallGoodsDetails
(
id
);
}
}
src/main/java/com/mmc/pms/entity/mall/MallGoodsDO.java
浏览文件 @
bf10feea
...
@@ -92,7 +92,7 @@ public class MallGoodsDO implements Serializable {
...
@@ -92,7 +92,7 @@ public class MallGoodsDO implements Serializable {
}
}
public
MallGoodsVO
buildMallGoodsVO
()
{
public
MallGoodsVO
buildMallGoodsVO
()
{
return
MallGoodsVO
.
builder
().
id
(
id
).
tradeName
(
tradeName
).
description
(
description
)
return
MallGoodsVO
.
builder
().
id
(
id
).
userAccountId
(
userAccountId
).
tradeName
(
tradeName
).
description
(
description
)
.
categoryPrimaryId
(
categoryPrimaryId
).
categorySubId
(
categorySubId
).
shelfStatus
(
shelfStatus
)
.
categoryPrimaryId
(
categoryPrimaryId
).
categorySubId
(
categorySubId
).
shelfStatus
(
shelfStatus
)
.
goodsLabel
(
goodsLabel
).
labelShow
(
labelShow
).
goodsDetails
(
goodsDetails
).
build
();
.
goodsLabel
(
goodsLabel
).
labelShow
(
labelShow
).
goodsDetails
(
goodsDetails
).
build
();
}
}
...
...
src/main/java/com/mmc/pms/model/mall/GoodsSpecValuesVO.java
浏览文件 @
bf10feea
...
@@ -20,7 +20,7 @@ import java.math.BigDecimal;
...
@@ -20,7 +20,7 @@ import java.math.BigDecimal;
public
class
GoodsSpecValuesVO
{
public
class
GoodsSpecValuesVO
{
@ApiModelProperty
(
value
=
"id"
)
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"规格id"
,
example
=
"1"
,
required
=
true
)
@ApiModelProperty
(
value
=
"规格id"
,
example
=
"1"
)
private
Integer
goodsSpecId
;
private
Integer
goodsSpecId
;
@ApiModelProperty
(
value
=
"选项名称"
,
example
=
"规格值名称"
,
required
=
true
)
@ApiModelProperty
(
value
=
"选项名称"
,
example
=
"规格值名称"
,
required
=
true
)
private
String
specValueName
;
private
String
specValueName
;
...
@@ -30,10 +30,10 @@ public class GoodsSpecValuesVO {
...
@@ -30,10 +30,10 @@ public class GoodsSpecValuesVO {
private
String
specValueImage
;
private
String
specValueImage
;
@ApiModelProperty
(
value
=
"是否展示销售价格 0:否 1:是"
,
example
=
"1"
,
required
=
true
)
@ApiModelProperty
(
value
=
"是否展示销售价格 0:否 1:是"
,
example
=
"1"
,
required
=
true
)
private
Integer
showPrice
;
private
Integer
showPrice
;
@ApiModelProperty
(
value
=
"库存数量"
,
example
=
"100"
,
required
=
true
)
@ApiModelProperty
(
value
=
"库存数量"
,
example
=
"100"
)
private
Integer
stock
;
private
Integer
stock
;
@ApiModelProperty
(
value
=
"销售价格"
,
example
=
"100.00"
,
required
=
true
)
@ApiModelProperty
(
value
=
"销售价格"
,
example
=
"100.00"
,
required
=
true
)
private
BigDecimal
salePrice
;
private
BigDecimal
salePrice
;
@ApiModelProperty
(
value
=
"渠道价格"
,
example
=
"50.00"
,
required
=
true
)
@ApiModelProperty
(
value
=
"渠道价格"
,
example
=
"50.00"
)
private
BigDecimal
channelPrice
;
private
BigDecimal
channelPrice
;
}
}
src/main/java/com/mmc/pms/model/mall/MallGoodsVO.java
浏览文件 @
bf10feea
...
@@ -67,4 +67,7 @@ public class MallGoodsVO {
...
@@ -67,4 +67,7 @@ public class MallGoodsVO {
@ApiModelProperty
(
value
=
"创建时间 用作列表回显"
)
@ApiModelProperty
(
value
=
"创建时间 用作列表回显"
)
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
value
=
"店铺id 小程序用"
)
private
Integer
userAccountId
;
}
}
src/main/resources/not-check.yml
浏览文件 @
bf10feea
...
@@ -18,3 +18,4 @@ data-filter:
...
@@ -18,3 +18,4 @@ data-filter:
-
/pms/webDevice/getSecondDistrictInfo
-
/pms/webDevice/getSecondDistrictInfo
-
/pms/webDevice/ad
-
/pms/webDevice/ad
-
/pms/actuator/health/readiness
-
/pms/actuator/health/readiness
-
/pms/app/goods/appMallGoodsDetails
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论