feat(app): 添加视频上传接口并优化视频上传参数
- 在 VlogBO 中添加 vlogerId 字段,用于指定作者 ID - 优化 VlogBO 类的注释,明确其作为视频上传业务参数的用途
This commit is contained in:
parent
80b80b9578
commit
886a9cb4de
@ -109,6 +109,12 @@ public class AppVlogController {
|
||||
return R.ok(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传视频到云点播
|
||||
* @param vlogBO
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@PostMapping("publish")
|
||||
public R<Void> publish(@RequestBody VlogBO vlogBO) throws Exception {
|
||||
|
||||
|
@ -14,13 +14,17 @@ import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 视频上传业务参数
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ToString
|
||||
@ApiModel(description = "视频查询对象")
|
||||
public class VlogBO extends BaseBO {
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "作者id", hidden = true)
|
||||
private String vlogerId;
|
||||
private String url;
|
||||
private String cover;
|
||||
|
Loading…
x
Reference in New Issue
Block a user