Commit b4760b32 by wangli

统一增加url前缀pea-order

1 parent afade85c
...@@ -3,10 +3,12 @@ package com.alibaba.cloud.integration.order.controller; ...@@ -3,10 +3,12 @@ package com.alibaba.cloud.integration.order.controller;
import com.alibaba.cloud.integration.common.BusinessException; import com.alibaba.cloud.integration.common.BusinessException;
import com.alibaba.cloud.integration.common.Result; import com.alibaba.cloud.integration.common.Result;
import com.alibaba.cloud.integration.order.service.EngineerService; import com.alibaba.cloud.integration.order.service.EngineerService;
import org.apache.ibatis.annotations.Mapper;
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.*;
@RestController @RestController
@RequestMapping("/pea-order")
public class EngineerController { public class EngineerController {
@Autowired @Autowired
......
...@@ -5,11 +5,13 @@ import com.alibaba.cloud.integration.order.dto.EnginnerTimelineReq; ...@@ -5,11 +5,13 @@ import com.alibaba.cloud.integration.order.dto.EnginnerTimelineReq;
import com.alibaba.cloud.integration.order.service.EnginnerTimelineService; import com.alibaba.cloud.integration.order.service.EnginnerTimelineService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping("/pea-order")
public class EnginnerTimelineController { public class EnginnerTimelineController {
@Autowired @Autowired
......
...@@ -8,6 +8,7 @@ import org.springframework.stereotype.Controller; ...@@ -8,6 +8,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("/pea-order")
public class OrderAssignController { public class OrderAssignController {
@Autowired @Autowired
......
...@@ -30,13 +30,13 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -30,13 +30,13 @@ import org.springframework.web.bind.annotation.RestController;
* @author TrevorLink * @author TrevorLink
*/ */
@RestController @RestController
@RequestMapping("/order") @RequestMapping("/pea-order")
public class OrderController { public class OrderController {
@Autowired @Autowired
private OrderService orderService; private OrderService orderService;
@PostMapping("/create") @PostMapping("/order/create")
public Result<?> createOrder(@RequestParam("userId") String userId, public Result<?> createOrder(@RequestParam("userId") String userId,
@RequestParam("commodityCode") String commodityCode, @RequestParam("commodityCode") String commodityCode,
@RequestParam("count") Integer count) { @RequestParam("count") Integer count) {
......
...@@ -5,10 +5,12 @@ import com.alibaba.cloud.integration.common.Result; ...@@ -5,10 +5,12 @@ import com.alibaba.cloud.integration.common.Result;
import com.alibaba.cloud.integration.order.service.OrderServiceDetail; import com.alibaba.cloud.integration.order.service.OrderServiceDetail;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping("/pea-order")
public class OrderServiceDetailController { public class OrderServiceDetailController {
@Autowired @Autowired
......
...@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.*;
* @author wangl@zjhuixinyun.com * @author wangl@zjhuixinyun.com
*/ */
@RestController @RestController
@RequestMapping("/pea-order")
public class OrderServiceListController { public class OrderServiceListController {
@Autowired @Autowired
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!