记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
ad63c01b
Commit
ad63c01b
authored
Jan 17, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改金刚位
parent
c716615d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
8 deletions
+43
-8
GoblinFrontNavigationVoo.java
...idnet/service/goblin/dto/vo/GoblinFrontNavigationVoo.java
+35
-0
GoblinFrontService.java
.../liquidnet/service/goblin/service/GoblinFrontService.java
+2
-4
GoblinFrontController.java
...dnet/service/goblin/controller/GoblinFrontController.java
+1
-2
GoblinFrontServiceImpl.java
...t/service/goblin/service/impl/GoblinFrontServiceImpl.java
+5
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinFrontNavigationVoo.java
0 → 100644
View file @
ad63c01b
package
com
.
liquidnet
.
service
.
goblin
.
dto
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* <p>
* 首页导航栏
* </p>
*
* @author liquidnet
* @since 2021-12-28
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
GoblinFrontNavigationVoo
implements
Serializable
{
@ApiModelProperty
(
value
=
"展示形式:1、一行2、二行"
)
private
Integer
displayType
;
@ApiModelProperty
(
value
=
"金刚位"
)
private
List
<
GoblinFrontNavigationVo
>
list
;
private
static
final
GoblinFrontNavigationVoo
obj
=
new
GoblinFrontNavigationVoo
();
public
static
GoblinFrontNavigationVoo
getNew
()
{
try
{
return
(
GoblinFrontNavigationVoo
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GoblinFrontNavigationVoo
();
}
}
}
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/GoblinFrontService.java
View file @
ad63c01b
package
com
.
liquidnet
.
service
.
goblin
.
service
;
import
com.liquidnet.service.goblin.dto.vo.GoblinFrontBannerVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinFrontNavigationVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinFrontNavigationVo
o
;
import
com.liquidnet.service.goblin.dto.vo.GoblinFrontSeckillVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinFrontSelectGoodVo
;
import
com.liquidnet.service.goblin.entity.GoblinFrontHotWord
;
import
com.liquidnet.service.goblin.entity.GoblinFrontNavigation
;
import
java.text.ParseException
;
import
java.util.ArrayList
;
import
java.util.List
;
public
interface
GoblinFrontService
{
...
...
@@ -31,7 +29,7 @@ public interface GoblinFrontService {
* @Description:获得金刚位
* @date 2022/1/5 下午2:51
*/
List
<
GoblinFrontNavigationVo
>
getNavigation
();
GoblinFrontNavigationVoo
getNavigation
();
/**
* 获得秒杀首页要用的
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinFrontController.java
View file @
ad63c01b
...
...
@@ -16,7 +16,6 @@ import org.springframework.web.bind.annotation.RestController;
import
java.text.ParseException
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author zhangfuxin
...
...
@@ -52,7 +51,7 @@ public class GoblinFrontController {
}
@GetMapping
(
"getNavigation"
)
@ApiOperation
(
"获得金刚栏"
)
public
ResponseDto
<
List
<
GoblinFrontNavigationVo
>
>
getNavigation
()
{
public
ResponseDto
<
GoblinFrontNavigationVoo
>
getNavigation
()
{
return
ResponseDto
.
success
(
goblinFrontService
.
getNavigation
()
);
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinFrontServiceImpl.java
View file @
ad63c01b
...
...
@@ -108,15 +108,18 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
}
@Override
public
List
<
GoblinFrontNavigationVo
>
getNavigation
()
{
public
GoblinFrontNavigationVoo
getNavigation
()
{
GoblinFrontNavigationVoo
goblinFrontNavigationVoo
=
GoblinFrontNavigationVoo
.
getNew
();
List
<
GoblinFrontNavigation
>
list
=
(
List
<
GoblinFrontNavigation
>)
redisUtil
.
get
(
GoblinRedisConst
.
FRONT_NAVIGATION
);
ArrayList
<
GoblinFrontNavigationVo
>
list1
=
ObjectUtil
.
getgoblinFrontNavigationVoArrayList
();
for
(
GoblinFrontNavigation
navigation:
list
){
goblinFrontNavigationVoo
.
setDisplayType
(
navigation
.
getDisplayType
());
GoblinFrontNavigationVo
goblinFrontNavigationVo
=
GoblinFrontNavigationVo
.
getNew
();
BeanUtils
.
copyProperties
(
navigation
,
goblinFrontNavigationVo
);
list1
.
add
(
goblinFrontNavigationVo
);
}
return
list1
;
goblinFrontNavigationVoo
.
setList
(
list1
);
return
goblinFrontNavigationVoo
;
}
@Override
...
...
Write
Preview
Markdown
is supported
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