提交 3c788a4c authored 作者: huyufan's avatar huyufan

修改代码

上级 4fcd5af0
...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/feign/order") @RequestMapping("/feign/order")
@Validated @Validated
@AllArgsConstructor @AllArgsConstructor
@Api(tags = "PC-订单取消") @Api(tags = "Feign-订单取消")
public class OrderCancelFeignController { public class OrderCancelFeignController {
......
...@@ -9,10 +9,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -9,10 +9,7 @@ import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
@RestController @RestController
...@@ -26,14 +23,14 @@ public class OrderCancelController { ...@@ -26,14 +23,14 @@ public class OrderCancelController {
@ApiOperation(value = "承运端取消订单", notes = "<br>By:胡宇帆") @ApiOperation(value = "承运端取消订单", notes = "<br>By:胡宇帆")
@PostMapping("/platformCancelOrderPre") @PostMapping("/platformCancelOrderPre")
public Result<Object> platformCancelOrderPre(@RequestParam OrderCancelParam param) { public Result<Object> platformCancelOrderPre(@RequestBody OrderCancelParam param) {
orderCancelService.platformCancelOrderPrePC(param); orderCancelService.platformCancelOrderPrePC(param);
return Result.ok(); return Result.ok();
} }
@ApiOperation(value = "货主端取消订单", notes = "<br>By:胡宇帆") @ApiOperation(value = "货主端取消订单", notes = "<br>By:胡宇帆")
@PostMapping("/ownCancelOrderPre") @PostMapping("/ownCancelOrderPre")
public Result<Object> ownCancelOrderPre(@RequestParam OrderCancelParam param) { public Result<Object> ownCancelOrderPre(@RequestBody OrderCancelParam param) {
orderCancelService.ownerCancelOrderPrePC(param); orderCancelService.ownerCancelOrderPrePC(param);
return Result.ok(); return Result.ok();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论