refactor: 代码优化重构

This commit is contained in:
ray
2024-11-09 00:30:42 +08:00
parent 58a3ff0e5f
commit 8aa6b2e208
13 changed files with 39 additions and 197 deletions

View File

@@ -23,51 +23,47 @@ public interface DictService extends IService<Dict> {
* 字典分页列表
*
* @param queryParams 分页查询对象
* @return
* @return 字典分页列表
*/
Page<DictPageVO> getDictPage(DictPageQuery queryParams);
/**
* 获取字典表单详情
*
* @param id 字典ID
* @return
* @return 字典表单
*/
DictForm getDictForm(Long id);
/**
* 新增字典
*
* @param dictForm 字典表单
* @return
* @return 是否成功
*/
boolean saveDict(DictForm dictForm);
/**
* 修改字典
*
* @param id 字典ID
* @param dictForm 字典表单
* @return
* @return 是否成功
*/
boolean updateDict(Long id, DictForm dictForm);
/**
* 删除字典
*
* @param idsStr 字典ID,多个以英文逗号(,)分割
* @return
* @param ids 字典ID集合
*/
void deleteDictByIds(String idsStr);
void deleteDictByIds(List<String> ids);
/**
* 获取字典列表
* 获取字典列表(包含字典数据)
*
* @return
* @return 字典列表
*/
List<DictVO> getAllDictWithData();
}