记得上下班打卡 | 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
b20da288
Commit
b20da288
authored
Sep 10, 2021
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交chime社交相关
parent
83d1b1ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
18 deletions
+49
-18
PerformanceDto.java
.../java/com/liquidnet/service/chime/dto/PerformanceDto.java
+11
-1
ChimePerformanceController.java
.../service/chime/controller/ChimePerformanceController.java
+38
-17
No files found.
liquidnet-bus-api/liquidnet-service-chime-api/src/main/java/com/liquidnet/service/chime/dto/PerformanceDto.java
View file @
b20da288
...
...
@@ -19,7 +19,7 @@ public class PerformanceDto {
@ApiModelProperty
(
value
=
"演出名称"
)
private
String
title
;
@ApiModelProperty
(
value
=
"演出海报"
)
private
String
img
_p
oster
;
private
String
img
P
oster
;
@ApiModelProperty
(
value
=
"演出开始时间"
)
private
String
timeStart
;
@ApiModelProperty
(
value
=
"演出结束时间"
)
...
...
@@ -28,4 +28,14 @@ public class PerformanceDto {
private
String
cityName
;
@ApiModelProperty
(
value
=
"在场人数"
)
private
Integer
joinUserCount
;
private
static
final
PerformanceDto
obj
=
new
PerformanceDto
();
public
static
PerformanceDto
getNew
()
{
try
{
return
(
PerformanceDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
PerformanceDto
();
}
}
}
liquidnet-bus-service/liquidnet-service-chime/liquidnet-service-chime-impl/src/main/java/com/liquidnet/service/chime/controller/ChimePerformanceController.java
View file @
b20da288
package
com
.
liquidnet
.
service
.
chime
.
controller
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.PagedResult
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.chime.dto.ChimeUserInfoDto
;
...
...
@@ -17,6 +18,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
...
...
@@ -38,37 +42,48 @@ public class ChimePerformanceController {
@ApiOperation
(
"已购票的演出"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"userId"
,
value
=
"用户id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"page"
,
value
=
"页码"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"page"
,
value
=
"页码"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"size"
,
value
=
"每页数量"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"orderBy"
,
value
=
"排序字段 时间timeStart"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"sort"
,
value
=
"排序方式[DESC ASC]"
),
})
public
ResponseDto
<
PerformanceDto
>
myPerformanceList
(
public
ResponseDto
<
List
<
PerformanceDto
>
>
myPerformanceList
(
@RequestParam
(
defaultValue
=
""
)
String
userId
,
@RequestParam
(
defaultValue
=
"1"
)
int
page
,
@RequestParam
(
defaultValue
=
"10"
)
int
size
,
@RequestParam
(
defaultValue
=
""
)
String
orderBy
,
@RequestParam
(
defaultValue
=
""
)
String
sort
)
{
List
<
PerformanceDto
>
performanceDtoList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
10
;
i
++){
PerformanceDto
dto
=
PerformanceDto
.
getNew
();
dto
.
setPerformancesId
(
IDGenerator
.
get32UUID
());
dto
.
setTitle
(
"已购票演出00"
+(
i
+
1
));
dto
.
setImgPoster
(
"https://img.zhengzai.tv/other/2021/08/04/865b8c442e7c4fb6a9f3d9b17a8e5b80.jpg"
);
dto
.
setTimeStart
(
"2021-09-08 12:00:00"
);
dto
.
setTimeEnd
(
"2021-10-08 12:00:00"
);
dto
.
setCityName
(
"北京"
);
dto
.
setJoinUserCount
(
123
+(
i
*
2
));
performanceDtoList
.
add
(
dto
);
}
// HashMap<String, Object> result = kylinPerformancesService.localList(
// days, cityName, type,
// isDiscount, isAdvance, isExclusive,
// orderBy, sort
// );
// return ResponseDto.success(result);
return
null
;
return
ResponseDto
.
success
(
performanceDtoList
);
}
@GetMapping
(
"localPerformanceList"
)
@ApiOperation
(
"本地最近演出列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"page"
,
value
=
"页码"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"page"
,
value
=
"页码"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"size"
,
value
=
"每页数量"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"orderBy"
,
value
=
"排序字段 时间timeStart"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"sort"
,
value
=
"排序方式[DESC ASC]"
),
})
public
ResponseDto
<
PerformanceDto
>
localPerformanceList
(
public
ResponseDto
<
List
<
PerformanceDto
>
>
localPerformanceList
(
@RequestParam
(
defaultValue
=
""
)
String
cityName
,
@RequestParam
(
defaultValue
=
""
)
String
userId
,
@RequestParam
(
defaultValue
=
"1"
)
int
page
,
...
...
@@ -76,23 +91,29 @@ public class ChimePerformanceController {
@RequestParam
(
defaultValue
=
""
)
String
orderBy
,
@RequestParam
(
defaultValue
=
""
)
String
sort
)
{
// HashMap<String, Object> result = kylinPerformancesService.localList(
// days, cityName, type,
// isDiscount, isAdvance, isExclusive,
// orderBy, sort
// );
// return ResponseDto.success(result);
return
null
;
List
<
PerformanceDto
>
performanceDtoList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
10
;
i
++){
PerformanceDto
dto
=
PerformanceDto
.
getNew
();
dto
.
setPerformancesId
(
IDGenerator
.
get32UUID
());
dto
.
setTitle
(
"本地最近演出00"
+(
i
+
1
));
dto
.
setImgPoster
(
"https://img.zhengzai.tv/files/2021/03/09/604705d6b1147.jpeg"
);
dto
.
setTimeStart
(
"2021-09-08 12:00:00"
);
dto
.
setTimeEnd
(
"2021-10-08 12:00:00"
);
dto
.
setCityName
(
"北京"
);
dto
.
setJoinUserCount
(
123
+(
i
*
2
));
performanceDtoList
.
add
(
dto
);
}
return
ResponseDto
.
success
(
performanceDtoList
);
}
@GetMapping
(
"getUserListByCon"
)
@ApiOperation
(
"查询用户列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"performanceId"
,
value
=
"演出id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"sex"
,
value
=
"性别"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"pageNum"
,
value
=
"页码"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"pageSize"
,
value
=
"每页数量"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"tags"
,
value
=
"兴趣标签"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"sex"
,
value
=
"性别"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"pageNum"
,
value
=
"页码"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"pageSize"
,
value
=
"每页数量"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"tags"
,
value
=
"兴趣标签"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"orderBy"
,
value
=
"排序字段 时间timeStart"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"sort"
,
value
=
"排序方式[DESC ASC]"
),
})
...
...
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