|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.github.dactiv.showcase.web.foundation.variable.DictionaryCategoryController
@Controller @RequestMapping(value="/foundation/variable/dictionary-category") public class DictionaryCategoryController
字典类别管理Controller
| 构造方法摘要 | |
|---|---|
DictionaryCategoryController()
|
|
| 方法摘要 | |
|---|---|
DictionaryCategory |
bindingModel(String id)
绑定实体数据,如果存在id时获取后从数据库获取记录,进入到相对的C后在将数据库获取的记录填充到相应的参数中 |
String |
delete(List<String> ids,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
通过主键id集合删除字典类别,删除成功后重定向到:foundation/variable/dictionary-category/view |
void |
read(String id,
org.springframework.ui.Model model)
读取字典类别,返回foundation/variable/dictionary-category/read.html页面 |
String |
save(DictionaryCategory entity,
String parentId,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
保存或更新字典类别,保存成功后重定向到:foundation/variable/dictionary-category/view |
List<DictionaryCategory> |
view()
获取字典类别列表,返回foundation/variable/data-dictionary/view.html页面 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DictionaryCategoryController()
| 方法详细信息 |
|---|
@RequestMapping(value="view") public List<DictionaryCategory> view()
@RequestMapping(value="save")
public String save(@ModelAttribute(value="entity")
DictionaryCategory entity,
String parentId,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
entity - 实体信息parentId - 所对应的父类idredirectAttributes - spring mvc 重定向属性
@RequestMapping(value="read")
public void read(String id,
org.springframework.ui.Model model)
id - 主键idmodel - Spring mvc的Model接口,主要是将model的属性返回到页面中
@RequestMapping(value="delete")
public String delete(@RequestParam(value="ids")
List<String> ids,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
ids - 主键id集合redirectAttributes - spring mvc 重定向属性
@ModelAttribute(value="entity") public DictionaryCategory bindingModel(String id)
id - 主键ID
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||