mirror of https://gitee.com/stylefeng/roses
【DictController】增加获取多语言字典列表
parent
8c97e90ead
commit
a40843fb8b
|
@ -21,6 +21,7 @@ import javax.annotation.Resource;
|
|||
import java.util.List;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.dict.api.constants.DictConstants.CONFIG_GROUP_DICT_TYPE_CODE;
|
||||
import static cn.stylefeng.roses.kernel.dict.api.constants.DictConstants.LANGUAGES_DICT_TYPE_CODE;
|
||||
|
||||
/**
|
||||
* 字典详情管理,具体管理某个字典类型下的条目
|
||||
|
@ -146,6 +147,19 @@ public class DictController {
|
|||
return new SuccessResponseData(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取多语言字典列表(分页)
|
||||
*
|
||||
* @author chenjinlong
|
||||
* @date 2021/1/25 11:47
|
||||
*/
|
||||
@GetResource(name = "获取多语言字典列表", path = "/dict/getLanguagesPage", requiredPermission = false)
|
||||
public ResponseData getLanguagesPage(DictRequest dictRequest) {
|
||||
dictRequest.setDictTypeCode(LANGUAGES_DICT_TYPE_CODE);
|
||||
PageResult<SysDict> page = this.dictService.findPageList(dictRequest);
|
||||
return new SuccessResponseData(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取树形字典列表
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue