修改:去掉字典权限限制
This commit is contained in:
@@ -39,14 +39,12 @@ public class DictDataController extends BaseController {
|
||||
return success(dictDataService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:dict:list')")
|
||||
@ApiOperation("查询全部字典数据")
|
||||
@GetMapping()
|
||||
public ApiResult<List<DictData>> list(DictDataParam param) {
|
||||
return success(dictDataService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:dict:list')")
|
||||
@ApiOperation("根据id查询字典数据")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<DictData> get(@PathVariable("id") Integer id) {
|
||||
|
||||
@@ -33,6 +33,18 @@ public class DictData implements Serializable {
|
||||
@ApiModelProperty(value = "字典数据名称")
|
||||
private String dictDataName;
|
||||
|
||||
@ApiModelProperty(value = "字段名称")
|
||||
@TableField(exist = false)
|
||||
private String text;
|
||||
|
||||
@ApiModelProperty(value = "字段名称")
|
||||
@TableField(exist = false)
|
||||
private String label;
|
||||
|
||||
@ApiModelProperty(value = "字段值")
|
||||
@TableField(exist = false)
|
||||
private String value;
|
||||
|
||||
@ApiModelProperty(value = "预设字段:路由地址")
|
||||
private String path;
|
||||
|
||||
@@ -66,4 +78,13 @@ public class DictData implements Serializable {
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
public String getText() {
|
||||
return this.dictDataName;
|
||||
}
|
||||
public String getLabel() {
|
||||
return this.dictDataName;
|
||||
}
|
||||
public String getValue() {
|
||||
return this.dictDataCode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user