Commit 9383a492 by 崔彦峰

refactor(controller): 修改控制器方法的会话配置

- 为车辆品牌列表接口添加无需登录配置
- 为车辆系列列表接口添加无需登录配置
- 为标签维度枚举查询接口添加无需登录配置
- 统一设置needInSession为NO以支持无会话访问
1 parent 4803fd7c
......@@ -24,7 +24,7 @@ public class CarBrandController {
private CarBrandRemote carBrandRemote;
@ApiOperation("查询车辆品牌")
@ServiceMethod(method = "dj.api.smartcarlife.common.car.brand.list")
@ServiceMethod(method = "dj.api.smartcarlife.common.car.brand.list", needInSession = NeedInSessionType.NO)
// @PostMapping("/dj.api.smartcarlife.common.car.brand.list/1.0.0")
public RopResponse<CarBrandListResDTO> getCarBrandList(AbstractRopRequest request){
RpcResponse<CarBrandListResDTO> response = carBrandRemote.getCarBrandList();
......@@ -36,7 +36,7 @@ public class CarBrandController {
}
@ApiOperation("查询车辆品牌对应车系")
@ServiceMethod(method = "dj.api.smartcarlife.common.car.series.list")
@ServiceMethod(method = "dj.api.smartcarlife.common.car.series.list", needInSession = NeedInSessionType.NO)
// @PostMapping("/dj.api.smartcarlife.common.car.series.list/1.0.0")
public RopResponse<CarSeriesListResDTO> getCarSeriesList(AbstractRopRequest request){
RpcResponse<CarSeriesListResDTO> response = carBrandRemote.getCarSeriesList();
......
......@@ -122,7 +122,7 @@ public class TagEnumController {
}
@ApiOperation("根据维度代码查询枚举列表")
@ServiceMethod(method = "dj.api.strategy.dimension.tag.enum")
@ServiceMethod(method = "dj.api.strategy.dimension.tag.enum", needInSession = NeedInSessionType.NO)
// @PostMapping("/dj.api.strategy.dimension.tag.enum/1.0.0")
public RopResponse<QueryTagDimensionEnumRespDTO> queryDimensionTagEnum(TagDimensionEnumQueryRequest request) {
try {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!