Commit 74f862e2 by 崔彦峰

refactor(car-brand): 移除车辆品牌控制器中的POST映射配置

- 删除了类级别的@RestController注解
- 移除了方法级别的@PostMapping映射配置
- 注释掉了API端点dj.api.smartcarlife.common.car.series.list的POST请求映射
- 保留了服务方法调用逻辑和响应处理
- 更新了控制器的API文档描述
- 维持了原有的业务逻辑实现不变
1 parent 64fa526d
...@@ -13,13 +13,11 @@ import io.swagger.annotations.Api; ...@@ -13,13 +13,11 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES) @ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES)
@Api("车辆品牌管理-查询") @Api("车辆品牌管理-查询")
@RestController //@RestController
public class CarBrandController { public class CarBrandController {
@Autowired @Autowired
...@@ -39,7 +37,7 @@ public class CarBrandController { ...@@ -39,7 +37,7 @@ public class CarBrandController {
@ApiOperation("查询车辆品牌对应车系") @ApiOperation("查询车辆品牌对应车系")
@ServiceMethod(method = "dj.api.smartcarlife.common.car.series.list") @ServiceMethod(method = "dj.api.smartcarlife.common.car.series.list")
@PostMapping("/dj.api.smartcarlife.common.car.series.list/1.0.0") // @PostMapping("/dj.api.smartcarlife.common.car.series.list/1.0.0")
public RopResponse<CarSeriesListResDTO> getCarSeriesList(AbstractRopRequest request){ public RopResponse<CarSeriesListResDTO> getCarSeriesList(AbstractRopRequest request){
RpcResponse<CarSeriesListResDTO> response = carBrandRemote.getCarSeriesList(); RpcResponse<CarSeriesListResDTO> response = carBrandRemote.getCarSeriesList();
if (response.isFailed() || !response.hasResult()) { if (response.isFailed() || !response.hasResult()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!