Class VoiceController

java.lang.Object
io.github.seenings.voice.controller.VoiceController

@RestController @RequestMapping("/seen/rest-v1/voice/voice") public class VoiceController extends Object
语音 前端控制器
  • Constructor Details

    • VoiceController

      public VoiceController()
  • Method Details

    • upload

      @PostMapping("upload") public io.github.seenings.common.model.R<Integer> upload(org.springframework.web.multipart.MultipartFile file, @SessionAttribute("userId") Long userId)
    • post

      @PostMapping public io.github.seenings.common.model.R<Voice> post(@RequestBody Voice entity)
    • put

      @PutMapping public io.github.seenings.common.model.R<Voice> put(@RequestBody Voice entity)
    • get

      @GetMapping("{id}") public io.github.seenings.common.model.R<Voice> get(@PathVariable Serializable id)
    • voiceIdToUrl

      @PostMapping("voice-id-to-url") public io.github.seenings.common.model.R<Map<Integer,String>> voiceIdToUrl(@RequestBody Set<Integer> voiceIds)
      根据声音ID获取相对url
      Parameters:
      voiceIds - 声音ID
      Returns:
      声音ID对应相对url
    • del

      @DeleteMapping("{id}") public io.github.seenings.common.model.R<Voice> del(@PathVariable Serializable id)