类 SysFileController

java.lang.Object
com.budwk.app.sys.controller.SysFileController

@IocBean @At("/platform/sys/file") @Ok("json:full") public class SysFileController extends Object
  • 构造器详细资料

    • SysFileController

      public SysFileController()
  • 方法详细资料

    • index

      @At("") @Ok("beetl:/platform/sys/file/index.html") public void index()
    • uploadDynamicReturnUrl

      @At @SLog(tag="\u6587\u4ef6\u7ba1\u7406", msg="\u52a8\u6001\u4e0a\u4f20\u6587\u4ef6\u8fd4\u56deurl") @POST @AdaptBy(type=org.nutz.mvc.upload.UploadAdaptor.class, args="ioc:fileUpload") public Result uploadDynamicReturnUrl(org.nutz.mvc.upload.TempFile file)
      动态上传文件返回url
    • pageData

      @At public Result pageData(PageForm pageForm, String name)
      获取文件分页列表
    • list

      @At @SLog(tag="\u6587\u4ef6\u7ba1\u7406", msg="\u83b7\u53d6\u6587\u4ef6\u5217\u8868") public Result list(Sys_file file)
      获取文件列表
    • download

      @At @Ok("void") public void download(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      下载文件
      抛出:
      IOException
    • convertPDF

      @At @Ok("void") public void convertPDF(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      抛出:
      IOException
    • convertHtml

      @At @AdaptBy(type=org.nutz.mvc.upload.UploadAdaptor.class, args="ioc:fileUpload") public Result convertHtml(org.nutz.mvc.upload.TempFile file)
    • delete

      @At @SLog(tag="\u6587\u4ef6\u7ba1\u7406", msg="\u5220\u9664\u6587\u4ef6") public Result delete(@Param("ids") String[] ids)
    • detail

      @At @SLog(tag="\u6587\u4ef6\u7ba1\u7406", msg="\u83b7\u53d6\u6587\u4ef6\u8be6\u60c5") public Result detail(String id)
    • previewFileData

      @At public Result previewFileData(@Param("ids") String[] ids)
    • videoPlay

      @At @Ok("void") public void videoPlay(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • isPdfContainsJavaScript

      public boolean isPdfContainsJavaScript(byte[] pdfBytes) throws IOException
      抛出:
      IOException