Package 

Class PoetResource

  • All Implemented Interfaces:

    @RequestMapping(value = {"${poet.webUrlPrefix:/poet}"})@RestController() 
    public final class PoetResource
    
                        

    附件的下载、预览、上传等相关操作的资源层 /bs开头的路径为附件相关的业务操作 (增删改查)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      PoetResource()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit fileView(@PathVariable() String name)
      final Unit mediaFileView(@PathVariable() String name)
      final Unit download(@PathVariable() String name)
      final PoetAnnex upload(@RequestParam(value = "file") MultipartFile file, @RequestParam(value = "module", required = false) String module)
      final PoetAnnex findAnnex(@PathVariable() String name)
      final Unit deleteAnnex(@PathVariable() String name)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoetResource

        PoetResource()
    • Method Detail

      • fileView

        @GetMapping(value = {"/view/{name}"}) final Unit fileView(@PathVariable() String name)
      • mediaFileView

        @GetMapping(value = {"/view-media/{name}"}) final Unit mediaFileView(@PathVariable() String name)
      • download

        @GetMapping(value = {"/download/{name}"}) final Unit download(@PathVariable() String name)
      • upload

        @RequestMapping(value = {"/up"}) final PoetAnnex upload(@RequestParam(value = "file") MultipartFile file, @RequestParam(value = "module", required = false) String module)
      • findAnnex

        @GetMapping(value = {"/bs/{name}"}) final PoetAnnex findAnnex(@PathVariable() String name)
      • deleteAnnex

        @DeleteMapping(value = {"/bs/{name}"}) final Unit deleteAnnex(@PathVariable() String name)