@RequestMapping(value="/api/dict")
public interface DictApi
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDict(Dict dict)
新增字典
|
void |
deleteDict(Long dictId)
删除字典
|
List<DictInfo> |
getDictList(DictInfo dictInfo,
Integer pageNo,
Integer pageSize)
获取字典列表
|
List<TreeDictInfo> |
getTreeDictList(String dictTypeCode)
获取树形字典列表
|
void |
updateDict(Dict dict)
修改字典
|
void |
updateDictStatus(Long dictId,
Integer status)
更新字典状态
|
@RequestMapping(value="/addDict",
method=POST)
void addDict(@RequestBody
Dict dict)
@RequestMapping(value="/updateDict",
method=POST)
void updateDict(@RequestBody
Dict dict)
@RequestMapping(value="/deleteDict",
method=POST)
void deleteDict(@RequestParam(value="dictId")
Long dictId)
@RequestMapping(value="/updatDictStatus",
method=POST)
void updateDictStatus(@RequestParam(value="dictId")
Long dictId,
@RequestParam(value="status")
Integer status)
@RequestMapping(value="/getDictList",
method=POST)
List<DictInfo> getDictList(@RequestBody
DictInfo dictInfo,
@RequestParam(value="pageNo")
Integer pageNo,
@RequestParam(value="pageSize")
Integer pageSize)
@RequestMapping(value="/getTreeDictList",
method=POST)
List<TreeDictInfo> getTreeDictList(@RequestParam(value="dictTypeCode")
String dictTypeCode)
Copyright © 2018. All rights reserved.