类 DynamicPageRestController
java.lang.Object
com.mbap.ct.dynamicpage.controller.DynamicPageRestController
@RestController
@RequestMapping("rest/ct/dynamicpage/{listConfigInfoId}")
public class DynamicPageRestController
extends Object
动态页面接口控制器
- 作者:
- ChengLang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.mbap.util.view.R删除voidexcel(org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse response, com.mbap.util.view.Page page) 导出选定数据为Excel文件com.mbap.util.view.Rget(ListConfigInfo listConfigInfo, com.mbap.util.view.Page page) 分页获取业务列表数据com.mbap.util.view.R获取单条业务数据com.mbap.util.view.RgetDataModel(org.springframework.ui.Model model, String entityId) 获取列表、表单配置数据parseListConfigInfoId(org.springframework.ui.Model mode, String listConfigInfoId) 通过路径参数中的列表配置信息id,获取到列表配置信息的详情信息对象,方便接口使用com.mbap.util.view.R保存单条业务数据com.mbap.util.view.R修改单条业务数据
-
构造器详细资料
-
DynamicPageRestController
public DynamicPageRestController()
-
-
方法详细资料
-
parseListConfigInfoId
@ModelAttribute("listConfigInfo") public ListConfigInfo parseListConfigInfoId(org.springframework.ui.Model mode, @PathVariable("listConfigInfoId") String listConfigInfoId) 通过路径参数中的列表配置信息id,获取到列表配置信息的详情信息对象,方便接口使用- 参数:
mode-listConfigInfoId-- 返回:
-
get
@GetMapping(name="\u52a8\u6001\u9875\u83b7\u53d6\u4e1a\u52a1\u5206\u9875\u5217\u8868\u6570\u636e\u63a5\u53e3") public com.mbap.util.view.R get(@ModelAttribute("listConfigInfo") ListConfigInfo listConfigInfo, com.mbap.util.view.Page page) 分页获取业务列表数据- 参数:
listConfigInfo- 根据路径参数中的列表配置信息id获取到的列表配置信息对象page- 分页信息- 返回:
-
get
@GetMapping(value="{id}", name="\u52a8\u6001\u9875\u83b7\u53d6\u5355\u6761\u4e1a\u52a1\u6570\u636e\u63a5\u53e3") public com.mbap.util.view.R get(org.springframework.ui.Model model, @PathVariable("id") String id) 获取单条业务数据 -
post
@PostMapping(name="\u52a8\u6001\u9875\u4fdd\u5b58\u5355\u6761\u4e1a\u52a1\u6570\u636e\u63a5\u53e3") public com.mbap.util.view.R post(org.springframework.ui.Model model, @RequestBody Object body) 保存单条业务数据 -
putpost
@PutMapping(value="{id}", name="\u52a8\u6001\u9875\u4fee\u6539\u5355\u6761\u4e1a\u52a1\u6570\u636e\u63a5\u53e3") public com.mbap.util.view.R putpost(org.springframework.ui.Model model, @PathVariable("id") String id, @RequestBody Object body) 修改单条业务数据 -
del
@DeleteMapping(name="\u52a8\u6001\u9875\u5220\u9664\u5355\u6761\u4e1a\u52a1\u6570\u636e\u63a5\u53e3") public com.mbap.util.view.R del(org.springframework.ui.Model model, @RequestParam(value="id",required=false) String[] ck_ids) 删除 -
excel
@PostMapping("export_excel") public void excel(org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse response, com.mbap.util.view.Page page) throws UnsupportedEncodingException 导出选定数据为Excel文件- 参数:
page- 分页属性封装对象- 抛出:
UnsupportedEncodingException
-
getDataModel
@GetMapping(value="getDataModel", name="\u83b7\u53d6\u5217\u8868\u3001\u8868\u5355\u914d\u7f6e\u6570\u636e") public com.mbap.util.view.R getDataModel(org.springframework.ui.Model model, @RequestParam("entityId") String entityId) 获取列表、表单配置数据- 参数:
entityId- 实体配置idlistConfigInfoId- 列表配置id- 返回:
-