记得上下班打卡 | 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
daa1fcc1
Commit
daa1fcc1
authored
May 13, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口提交
parent
39c933b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
KylinRoadShowsAdminController.java
...kylin/controller/admin/KylinRoadShowsAdminController.java
+7
-2
PerformancePartnerController.java
...ylin/controller/partner/PerformancePartnerController.java
+12
-5
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/admin/KylinRoadShowsAdminController.java
View file @
daa1fcc1
...
@@ -17,6 +17,9 @@ import io.swagger.annotations.ApiResponse;
...
@@ -17,6 +17,9 @@ import io.swagger.annotations.ApiResponse;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* <p>
* <p>
* 巡演 前端控制器
* 巡演 前端控制器
...
@@ -51,10 +54,12 @@ public class KylinRoadShowsAdminController {
...
@@ -51,10 +54,12 @@ public class KylinRoadShowsAdminController {
@PostMapping
(
value
=
""
)
@PostMapping
(
value
=
""
)
@ApiOperation
(
value
=
"创建"
)
@ApiOperation
(
value
=
"创建"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
createRoadShow
(
@RequestBody
CreateRoadShowParam
createRoadShowParam
)
{
public
ResponseDto
<
Map
<
String
,
String
>
>
createRoadShow
(
@RequestBody
CreateRoadShowParam
createRoadShowParam
)
{
String
result
=
roadShowsService
.
createRoadShow
(
createRoadShowParam
);
String
result
=
roadShowsService
.
createRoadShow
(
createRoadShowParam
);
if
(!
result
.
isEmpty
())
{
if
(!
result
.
isEmpty
())
{
return
ResponseDto
.
success
(
result
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"roadShowId"
,
result
);
return
ResponseDto
.
success
(
map
);
}
else
{
}
else
{
return
ResponseDto
.
failure
(
"创建失败"
);
return
ResponseDto
.
failure
(
"创建失败"
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/PerformancePartnerController.java
View file @
daa1fcc1
...
@@ -12,6 +12,9 @@ import io.swagger.annotations.ApiResponse;
...
@@ -12,6 +12,9 @@ import io.swagger.annotations.ApiResponse;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.Map
;
@Api
(
tags
=
"第三方-演出"
)
@Api
(
tags
=
"第三方-演出"
)
@RestController
@RestController
@RequestMapping
(
"partner/performance"
)
@RequestMapping
(
"partner/performance"
)
...
@@ -34,14 +37,16 @@ public class PerformancePartnerController {
...
@@ -34,14 +37,16 @@ public class PerformancePartnerController {
}
}
@PostMapping
(
value
=
"copy"
)
@PostMapping
(
value
=
"copy"
)
@ApiOperation
(
value
=
"
演出列表
"
)
@ApiOperation
(
value
=
"
复制演出
"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
copyPerformance
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
Map
<
String
,
String
>
>
copyPerformance
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
String
result
=
performancesPartnerService
.
copyPerformance
(
performancesId
);
String
result
=
performancesPartnerService
.
copyPerformance
(
performancesId
);
if
(
null
==
result
)
{
if
(
null
==
result
)
{
return
ResponseDto
.
failure
(
"复制失败"
);
return
ResponseDto
.
failure
(
"复制失败"
);
}
else
{
}
else
{
return
ResponseDto
.
success
(
result
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"performancesId"
,
result
);
return
ResponseDto
.
success
(
map
);
}
}
}
}
...
@@ -61,12 +66,14 @@ public class PerformancePartnerController {
...
@@ -61,12 +66,14 @@ public class PerformancePartnerController {
@PostMapping
(
value
=
"step1"
)
@PostMapping
(
value
=
"step1"
)
@ApiOperation
(
value
=
"操作演出第一步"
)
@ApiOperation
(
value
=
"操作演出第一步"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
Step1
(
@RequestBody
PerformanceStep1Param
performanceStep1Param
)
{
public
ResponseDto
<
Map
<
String
,
String
>
>
Step1
(
@RequestBody
PerformanceStep1Param
performanceStep1Param
)
{
String
result
=
performancesPartnerService
.
step1
(
performanceStep1Param
);
String
result
=
performancesPartnerService
.
step1
(
performanceStep1Param
);
if
(
result
.
isEmpty
())
{
if
(
result
.
isEmpty
())
{
return
ResponseDto
.
failure
(
"操作失败"
);
return
ResponseDto
.
failure
(
"操作失败"
);
}
else
{
}
else
{
return
ResponseDto
.
success
(
result
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"performancesId"
,
result
);
return
ResponseDto
.
success
(
map
);
}
}
}
}
...
...
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