@RestController @RequestMapping(value="/system/dict/type") public class SysDictTypeController extends Object
| 构造器和说明 |
|---|
SysDictTypeController() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
add(SysDictType dict)
新增字典类型
|
Result |
detail(Long id)
详情页
|
Result |
edit(SysDictType dict)
修改字典类型
|
void |
export(javax.servlet.http.HttpServletResponse response,
SysDictType sysDictType) |
Result |
list(SysDictType sysDictType,
Integer pageNo,
Integer pageSize)
分页查询
|
Result |
optionselect()
获取字典选择框列表
|
Result |
refreshCache()
刷新字典缓存
|
Result |
remove(Long[] dictIds)
删除字典类型
|
@PreAuthorize(value="@auth.hasAuthority(\'system:dict:query\')")
@RequestMapping(value="{id}")
public Result detail(@PathVariable
Long id)
@PreAuthorize(value="@auth.hasAuthority(\'system:dict:list\')") @GetMapping(value="/list") public Result list(SysDictType sysDictType, @RequestParam(name="pageNum",defaultValue="1") Integer pageNo, @RequestParam(name="pageSize",defaultValue="10") Integer pageSize)
sysDictType - 分页查询筛选条件pageNo - 页码pageSize - 每页的数量@PreAuthorize(value="@auth.hasAuthority(\'system:dict:remove\')")
@DeleteMapping(value="/{dictIds}")
public Result remove(@PathVariable
Long[] dictIds)
@PreAuthorize(value="@auth.hasAuthority(\'system:dict:add\')") @PostMapping public Result add(@Validated @RequestBody SysDictType dict)
@PreAuthorize(value="@auth.hasAuthority(\'system:dict:edit\')") @PutMapping public Result edit(@Validated @RequestBody SysDictType dict)
@PreAuthorize(value="@auth.hasAuthority(\'system:dict:remove\')") @OperateLog(title="\u5b57\u5178\u7c7b\u578b", businessType=REFRESH) @DeleteMapping(value="/refreshCache") public Result refreshCache()
@GetMapping(value="/optionselect") public Result optionselect()
@OperateLog(title="\u5b57\u5178\u7c7b\u578b", businessType=EXPORT) @PreAuthorize(value="@auth.hasAuthority(\'system:dict:export\')") @PostMapping(value="/export") public void export(javax.servlet.http.HttpServletResponse response, SysDictType sysDictType) throws Exception
ExceptionCopyright © 2023. All rights reserved.