feat(app): 添加视频上传接口并优化视频上传参数

- 在 VlogBO 中添加 vlogerId 字段,用于指定作者 ID
- 优化 VlogBO 类的注释,明确其作为视频上传业务参数的用途
This commit is contained in:
huk 2025-09-03 12:35:49 +08:00
parent 80b80b9578
commit 886a9cb4de
2 changed files with 11 additions and 1 deletions

View File

@ -109,6 +109,12 @@ public class AppVlogController {
return R.ok(pages); return R.ok(pages);
} }
/**
* 上传视频到云点播
* @param vlogBO
* @return
* @throws Exception
*/
@PostMapping("publish") @PostMapping("publish")
public R<Void> publish(@RequestBody VlogBO vlogBO) throws Exception { public R<Void> publish(@RequestBody VlogBO vlogBO) throws Exception {

View File

@ -14,13 +14,17 @@ import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.util.List; import java.util.List;
/**
* 视频上传业务参数
*/
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@ToString @ToString
@ApiModel(description = "视频查询对象")
public class VlogBO extends BaseBO { public class VlogBO extends BaseBO {
private String id; private String id;
@ApiModelProperty(value = "作者id", hidden = true)
private String vlogerId; private String vlogerId;
private String url; private String url;
private String cover; private String cover;