@ -55,14 +55,20 @@ public class DictDataController {
@@ -55,14 +55,20 @@ public class DictDataController {
}
@Inner ( false )
@GetMapping ( "/dictType" )
@Cacheable ( value = CacheConstants . DICT_DETAILS , keyGenerator = "universalCacheKeyGeneratorUtil" )
public R dictType ( String type , String tenantId ) {
@GetMapping ( "/anonymousGetDictType" )
public R anonymousGetDictType ( String type , String tenantId ) {
return R . ok ( dictDataService . list ( Wrappers . < DictData > query ( ) . lambda ( )
. eq ( DictData : : getDictType , type )
. eq ( StrUtil . isNotBlank ( tenantId ) , DictData : : getTenantId , tenantId ) ) ) ;
}
@GetMapping ( "/dictType" )
@Cacheable ( value = CacheConstants . DICT_DETAILS , keyGenerator = "universalCacheKeyGeneratorUtil" )
public R dictType ( String type ) {
return R . ok ( dictDataService . list ( Wrappers . < DictData > query ( ) . lambda ( )
. eq ( DictData : : getDictType , type ) ) ) ;
}
@SysLog ( "字典数据新增" )
@PostMapping ( "/save" )
@PreAuthorize ( "@pms.hasPermission('dictData_add')" )