🎇 指定路径与深度rebuild
This commit is contained in:
@@ -69,7 +69,7 @@ type OfficePreviewUrlReq struct {
|
||||
|
||||
// video preview url request bean
|
||||
type VideoPreviewUrlReq struct {
|
||||
DriveId string `json:"drive_id"`
|
||||
FileId string `json:"file_id"`
|
||||
DriveId string `json:"drive_id"`
|
||||
FileId string `json:"file_id"`
|
||||
ExpireSec int `json:"expire_sec"`
|
||||
}
|
||||
|
@@ -112,8 +112,8 @@ func GetOfficePreviewUrl(fileId string, drive *conf.Drive) (*OfficePreviewUrlRes
|
||||
func GetVideoPreviewUrl(fileId string, drive *conf.Drive) (*VideoPreviewUrlResp, error) {
|
||||
url := conf.Conf.AliDrive.ApiUrl + "/databox/get_video_play_info"
|
||||
req := VideoPreviewUrlReq{
|
||||
DriveId: drive.DefaultDriveId,
|
||||
FileId: fileId,
|
||||
DriveId: drive.DefaultDriveId,
|
||||
FileId: fileId,
|
||||
ExpireSec: 14400,
|
||||
}
|
||||
var resp VideoPreviewUrlResp
|
||||
|
@@ -68,6 +68,14 @@ type Path struct {
|
||||
FileId string `json:"file_id"`
|
||||
}
|
||||
|
||||
/** 秒传
|
||||
{
|
||||
"name":"mikuclub.mp4",
|
||||
"content_hash":"C733AC50D1F964C0398D0E403F3A30C37EFC2ADD",
|
||||
"size":1141068377,
|
||||
"content_type":"video/mp4"
|
||||
}
|
||||
*/
|
||||
// file response bean
|
||||
type File struct {
|
||||
RespError
|
||||
|
Reference in New Issue
Block a user