Commit b4760b32 by wangli

统一增加url前缀pea-order

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