类 StaticPageController

java.lang.Object
com.mbap.ct.staticpage.controller.StaticPageController

@RestController @RequestMapping("/rest/static") public class StaticPageController extends Object
生成静态类、页面文件控制器
作者:
Amanda.Z
  • 构造器详细资料

    • StaticPageController

      public StaticPageController()
  • 方法详细资料

    • createEntityFile

      @PostMapping("createfile/{entityId}/{id}") public com.mbap.util.view.R createEntityFile(@PathVariable("entityId") String entityId, @PathVariable("id") String id, @RequestBody Conf conf)
      生成控制器、服务类文件
      参数:
      entityId - 实体配置id
      id - 列表配置id
      conf - 路径配置
      返回:
    • getConf

      @GetMapping("getConf") public com.mbap.util.view.R getConf(@RequestParam("id") String id)
      根据构建实体id生成默认路径配置
      参数:
      id - 构建实体id
      返回:
    • download

      @RequestMapping(method=POST, value="/download/{entityId}/{id}", name="\u751f\u6210\u914d\u7f6e\u6587\u4ef6\u4e0b\u8f7d") public void download(@PathVariable("entityId") String entityId, @PathVariable("id") String id, @RequestBody Conf conf, javax.servlet.http.HttpServletResponse response) throws Exception
      功能描述: 下载
      参数:
      entityId - 实体配置id
      id - 列表配置id
      response -
      抛出:
      Exception