Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
e6bd6a33
Commit
e6bd6a33
authored
Dec 23, 2022
by
macro
Browse files
前台商城品牌接口修改
parent
fed8f5b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/controller/PortalBrandController.java
→
mall-portal/src/main/java/com/macro/mall/portal/controller/
Pms
PortalBrandController.java
View file @
e6bd6a33
...
...
@@ -4,7 +4,7 @@ import com.macro.mall.common.api.CommonPage;
import
com.macro.mall.common.api.CommonResult
;
import
com.macro.mall.model.PmsBrand
;
import
com.macro.mall.model.PmsProduct
;
import
com.macro.mall.portal.service.PortalBrandService
;
import
com.macro.mall.portal.service.
Pms
PortalBrandService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
...
...
@@ -19,20 +19,20 @@ import java.util.List;
* Created by macro on 2020/5/15.
*/
@Controller
@Api
(
tags
=
"PortalBrand
Controller
"
)
@Tag
(
name
=
"PortalBrand
Controller
"
,
description
=
"前台品牌管理"
)
@Api
(
tags
=
"
Pms
PortalBrand
Service
"
)
@Tag
(
name
=
"
Pms
PortalBrand
Service
"
,
description
=
"前台品牌管理"
)
@RequestMapping
(
"/brand"
)
public
class
PortalBrandController
{
public
class
Pms
PortalBrandController
{
@Autowired
private
PortalBrandService
home
BrandService
;
private
Pms
PortalBrandService
portal
BrandService
;
@ApiOperation
(
"分页获取推荐品牌"
)
@RequestMapping
(
value
=
"/recommendList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
CommonResult
<
List
<
PmsBrand
>>
recommendList
(
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"6"
)
Integer
pageSize
,
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"1"
)
Integer
pageNum
)
{
List
<
PmsBrand
>
brandList
=
home
BrandService
.
recommendList
(
pageNum
,
pageSize
);
List
<
PmsBrand
>
brandList
=
portal
BrandService
.
recommendList
(
pageNum
,
pageSize
);
return
CommonResult
.
success
(
brandList
);
}
...
...
@@ -40,7 +40,7 @@ public class PortalBrandController {
@RequestMapping
(
value
=
"/detail/{brandId}"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
CommonResult
<
PmsBrand
>
detail
(
@PathVariable
Long
brandId
)
{
PmsBrand
brand
=
home
BrandService
.
detail
(
brandId
);
PmsBrand
brand
=
portal
BrandService
.
detail
(
brandId
);
return
CommonResult
.
success
(
brand
);
}
...
...
@@ -50,7 +50,7 @@ public class PortalBrandController {
public
CommonResult
<
CommonPage
<
PmsProduct
>>
productList
(
@RequestParam
Long
brandId
,
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"6"
)
Integer
pageSize
)
{
CommonPage
<
PmsProduct
>
result
=
home
BrandService
.
productList
(
brandId
,
pageNum
,
pageSize
);
CommonPage
<
PmsProduct
>
result
=
portal
BrandService
.
productList
(
brandId
,
pageNum
,
pageSize
);
return
CommonResult
.
success
(
result
);
}
}
mall-portal/src/main/java/com/macro/mall/portal/service/PortalBrandService.java
→
mall-portal/src/main/java/com/macro/mall/portal/service/
Pms
PortalBrandService.java
View file @
e6bd6a33
...
...
@@ -10,7 +10,7 @@ import java.util.List;
* 前台品牌管理Service
* Created by macro on 2020/5/15.
*/
public
interface
PortalBrandService
{
public
interface
Pms
PortalBrandService
{
/**
* 分页获取推荐品牌
*/
...
...
mall-portal/src/main/java/com/macro/mall/portal/service/impl/PortalBrandServiceImpl.java
→
mall-portal/src/main/java/com/macro/mall/portal/service/impl/
Pms
PortalBrandServiceImpl.java
View file @
e6bd6a33
...
...
@@ -8,7 +8,7 @@ import com.macro.mall.model.PmsBrand;
import
com.macro.mall.model.PmsProduct
;
import
com.macro.mall.model.PmsProductExample
;
import
com.macro.mall.portal.dao.HomeDao
;
import
com.macro.mall.portal.service.PortalBrandService
;
import
com.macro.mall.portal.service.
Pms
PortalBrandService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -19,7 +19,7 @@ import java.util.List;
* Created by macro on 2020/5/15.
*/
@Service
public
class
PortalBrandServiceImpl
implements
PortalBrandService
{
public
class
Pms
PortalBrandServiceImpl
implements
Pms
PortalBrandService
{
@Autowired
private
HomeDao
homeDao
;
@Autowired
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment