一些优化
This commit is contained in:
parent
63fb47a708
commit
47096ac6de
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue