Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 60862447
authored
May 17, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-dingwf' into develop
2 parents
5326e11c
ded29626
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderController.java → project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderCreateController.java
project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderController.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderC
reateC
ontroller.java
View file @
6086244
...
@@ -33,8 +33,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -33,8 +33,7 @@ import org.springframework.web.bind.annotation.*;
* @author TrevorLink
* @author TrevorLink
*/
*/
@RestController
@RestController
@RequestMapping
(
"/order"
)
public
class
OrderCreateController
{
public
class
OrderController
{
@Autowired
@Autowired
private
OrderService
orderService
;
private
OrderService
orderService
;
...
@@ -45,7 +44,7 @@ public class OrderController {
...
@@ -45,7 +44,7 @@ public class OrderController {
@Autowired
@Autowired
private
TimeRangeService
timeRangeService
;
private
TimeRangeService
timeRangeService
;
@PostMapping
(
"/service/create"
)
@PostMapping
(
"/
order/
service/create"
)
public
Result
<?>
createOrder
(
@Validated
@RequestBody
OrderCreateReqDTO
orderCreateReqDTO
)
{
public
Result
<?>
createOrder
(
@Validated
@RequestBody
OrderCreateReqDTO
orderCreateReqDTO
)
{
Result
<?>
res
=
null
;
Result
<?>
res
=
null
;
try
{
try
{
...
@@ -56,7 +55,7 @@ public class OrderController {
...
@@ -56,7 +55,7 @@ public class OrderController {
return
res
;
return
res
;
}
}
@GetMapping
(
"/service/parameter"
)
@GetMapping
(
"/
order/
service/parameter"
)
public
Result
<?>
getParameter
()
{
public
Result
<?>
getParameter
()
{
Result
<?>
res
=
null
;
Result
<?>
res
=
null
;
try
{
try
{
...
@@ -67,7 +66,7 @@ public class OrderController {
...
@@ -67,7 +66,7 @@ public class OrderController {
return
res
;
return
res
;
}
}
@PostMapping
(
"/service/timerange"
)
@PostMapping
(
"/
order/
service/timerange"
)
public
Result
<?>
getTimerange
(
@Validated
@RequestBody
TimeRangeReqDTO
timeRangeReqDTO
)
{
public
Result
<?>
getTimerange
(
@Validated
@RequestBody
TimeRangeReqDTO
timeRangeReqDTO
)
{
Result
<?>
res
=
null
;
Result
<?>
res
=
null
;
try
{
try
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment