一些优化

This commit is contained in:
曹鹏飞 2026-01-21 17:45:30 +08:00
parent 63fb47a708
commit 47096ac6de
5 changed files with 5 additions and 5 deletions

View File

@ -139,7 +139,7 @@ public class DictionaryController extends ControllerBase {
@PostMapping("deleteDictionaryItem") @PostMapping("deleteDictionaryItem")
@MethodInfoMark(value = "删除字典值", menuName = "字典管理") @MethodInfoMark(value = "删除字典值", menuName = "字典管理")
@ApiMark(moduleName = "字典管理", apiName = "删除字典值") @ApiMark(moduleName = "字典管理", apiName = "删除字典值")
public ApiResult<Void> deleteDictionaryItem(@Valid @RequestBody @NotEmpty List<Integer> ids) { public ApiResult<Void> deleteDictionaryItem(@Valid @RequestBody @NotEmpty List<Long> ids) {
dictionaryItemService.removeByIds(ids); dictionaryItemService.removeByIds(ids);
return ApiResult.success(); return ApiResult.success();
} }

View File

@ -171,7 +171,7 @@ public class MenuController extends ControllerBase {
@PostMapping("deleteMenuButton") @PostMapping("deleteMenuButton")
@MethodInfoMark(value = "删除菜单按钮", menuName = "菜单管理") @MethodInfoMark(value = "删除菜单按钮", menuName = "菜单管理")
@ApiMark(moduleName = "菜单管理", apiName = "删除菜单按钮") @ApiMark(moduleName = "菜单管理", apiName = "删除菜单按钮")
public ApiResult<Void> deleteMenuButton(@Valid @RequestBody List<Integer> ids) { public ApiResult<Void> deleteMenuButton(@Valid @RequestBody List<Long> ids) {
adminMenuButtonService.removeByIds(ids); adminMenuButtonService.removeByIds(ids);
return ApiResult.success(); return ApiResult.success();
} }

View File

@ -269,7 +269,7 @@ public class MultilingualController extends ControllerBase {
*/ */
@GetMapping("/getWebComponentInfo") @GetMapping("/getWebComponentInfo")
@ApiMark(moduleName = "多语言管理", apiName = "获取网页组件详情") @ApiMark(moduleName = "多语言管理", apiName = "获取网页组件详情")
public ApiResult<WebComponentInfoVO> getWebComponentInfo(@RequestParam Integer id) { public ApiResult<WebComponentInfoVO> getWebComponentInfo(@RequestParam Long id) {
return ApiResult.success(webComponentService.getWebComponentInfo(id)); return ApiResult.success(webComponentService.getWebComponentInfo(id));
} }

View File

@ -28,7 +28,7 @@ public interface IWebComponentService extends IService<WebComponent> {
PageData<WebComponentVO> search(WebComponentSearchRequest request); PageData<WebComponentVO> search(WebComponentSearchRequest request);
WebComponentInfoVO getWebComponentInfo(Integer id); WebComponentInfoVO getWebComponentInfo(Long id);
void addWebComponent(WebComponentAddRequest request); void addWebComponent(WebComponentAddRequest request);

View File

@ -125,7 +125,7 @@ public class WebComponentServiceImpl extends ServiceImpl<WebComponentMapper, Web
} }
@Override @Override
public WebComponentInfoVO getWebComponentInfo(Integer id) { public WebComponentInfoVO getWebComponentInfo(Long id) {
WebComponent webComponent = getById(id); WebComponent webComponent = getById(id);
VUtils.trueThrowBusinessError(Objects.isNull(webComponent)).throwMessage("未找到组件"); VUtils.trueThrowBusinessError(Objects.isNull(webComponent)).throwMessage("未找到组件");
List<WebComponentTranslate> translates = webComponentTranslateService.lambdaQuery().eq(WebComponentTranslate::getComponentId, id).list(); List<WebComponentTranslate> translates = webComponentTranslateService.lambdaQuery().eq(WebComponentTranslate::getComponentId, id).list();