音乐批量上传先注释header中的token

main
JH 10 months ago
parent cd10c6d8e9
commit cded611ecc

@ -95,8 +95,7 @@ public class CMSSongController {
@ApiOperation(value = "批量上传歌曲", notes = "上传的歌曲会新增到曲库") @ApiOperation(value = "批量上传歌曲", notes = "上传的歌曲会新增到曲库")
@RequestMapping(value = "/batch", method = RequestMethod.POST) @RequestMapping(value = "/batch", method = RequestMethod.POST)
public Result<List<SongBaseRespDto>> batchUpload(@ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token, public Result<List<SongBaseRespDto>> batchUpload(@ApiParam(value = "多歌曲文件", required = true) @RequestParam("files") List<MultipartFile> files) {
@ApiParam(value = "多歌曲文件", required = true) @RequestParam("files") List<MultipartFile> files) { return songService.batchUpload(null, files);
return songService.batchUpload(token, files);
} }
} }

@ -25,7 +25,7 @@ public class JournalJumpRespDto {
@ApiModelProperty(value = "期刊标题") @ApiModelProperty(value = "期刊标题")
private String title; private String title;
@ApiModelProperty(value = "号标题拼接") @ApiModelProperty(value = "号标题拼接")
private String joint; private String joint;
public static JournalJumpRespDto convertPojo(Journal journal) { public static JournalJumpRespDto convertPojo(Journal journal) {

Loading…
Cancel
Save