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