设置ai模块展示

This commit is contained in:
shuo.wang
2025-05-27 10:05:43 +08:00
parent 7b30396dae
commit e2a1076b44
6 changed files with 63 additions and 0 deletions

View File

@@ -190,5 +190,16 @@ public class LineInfoController {
public ResponseResult<Boolean> hasLineRegion(@RequestParam("lineId")Long lineId) {
return ResponseResult.success(lineService.hasRegionId(lineId));
}
@ApiOperation("获取ai模块是否展示true展示false不展示")
@GetMapping("/getAiModule")
public ResponseResult<Boolean> getAiModule() {
return ResponseResult.success(lineService.getAiModule());
}
@ApiOperation("设置ai模块是否展示true展示false不展示")
@GetMapping("/setAiModule")
public ResponseResult<Boolean> setAiModule(@RequestParam("flag") Boolean flag) {
return ResponseResult.success(lineService.setAiModule(flag));
}
}

View File

@@ -80,6 +80,18 @@ public class LineController {
public ResponseResult<PageInfo<UserDTO>> getAllUser(@RequestBody GetUserDTO dto) {
return ResponseResult.success(userAuthMappingService.getAllUser(dto.getKeyword(),dto.getPageNum(),dto.getPageSize()));
}
@ApiOperation("获取ai模块是否展示true展示false不展示")
@GetMapping("/getAiModule")
public ResponseResult<Boolean> getAiModule() {
return ResponseResult.success(lineService.getAiModule());
}
@ApiOperation("设置ai模块是否展示true展示false不展示")
@GetMapping("/setAiModule")
public ResponseResult<Boolean> setAiModule(@RequestParam("flag") Boolean flag) {
return ResponseResult.success(lineService.setAiModule(flag));
}
}