fix:upload设置
This commit is contained in:
parent
7cc39dfd3b
commit
094423042e
|
@ -20,7 +20,7 @@ type UploadFileBaseReq struct {
|
||||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||||
UserId int64 `form:"user_id,optional"` // 上传文件额外信息
|
UserId int64 `form:"user_id,optional"` // 上传文件额外信息
|
||||||
GuestId int64 `form:"guest_id,optional"` // 上传文件额外信息
|
GuestId int64 `form:"guest_id,optional"` // 上传文件额外信息
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
Source string `form:"source"` // 上传来源
|
Source string `form:"source"` // 上传来源
|
||||||
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
||||||
ResourceId string `form:"resource_id,optional"` // 资源ID
|
ResourceId string `form:"resource_id,optional"` // 资源ID
|
||||||
|
@ -35,7 +35,7 @@ type UploadLogoReq struct {
|
||||||
|
|
||||||
type UploadFileBackendReq struct {
|
type UploadFileBackendReq struct {
|
||||||
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
FileKey string `form:"file_key"` // 上传唯一标识信息
|
FileKey string `form:"file_key"` // 上传唯一标识信息
|
||||||
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
||||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||||
|
@ -46,7 +46,7 @@ type UploadFileBackendReq struct {
|
||||||
|
|
||||||
type UploadFilesReq struct {
|
type UploadFilesReq struct {
|
||||||
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
UploadInfo string `form:"upload_info"` // 上传信息 json
|
UploadInfo string `form:"upload_info"` // 上传信息 json
|
||||||
Source string `form:"source"` // 上传来源
|
Source string `form:"source"` // 上传来源
|
||||||
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
||||||
|
@ -54,7 +54,7 @@ type UploadFilesReq struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadCallbackReq struct {
|
type UploadCallbackReq struct {
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
ResourceId string `form:"resource_id"` // 资源ID
|
ResourceId string `form:"resource_id"` // 资源ID
|
||||||
ResourceType string `form:"resource_type"` // 资源类型
|
ResourceType string `form:"resource_type"` // 资源类型
|
||||||
ResourceUrl string `form:"resource_url"` // 资源URL
|
ResourceUrl string `form:"resource_url"` // 资源URL
|
||||||
|
@ -114,10 +114,10 @@ type File struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Meta struct {
|
type Meta struct {
|
||||||
TotalCount int64 `json:"totalCount"`
|
TotalCount int64 `json:"total_count"`
|
||||||
PageCount int64 `json:"pageCount"`
|
PageCount int64 `json:"page_count"`
|
||||||
CurrentPage int `json:"currentPage"`
|
CurrentPage int `json:"current_page"`
|
||||||
PerPage int `json:"perPage"`
|
PerPage int `json:"per_page"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set 设置Response的Code和Message值
|
// Set 设置Response的Code和Message值
|
||||||
|
|
|
@ -65,7 +65,7 @@ type (
|
||||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||||
UserId int64 `form:"user_id,optional"` // 上传文件额外信息
|
UserId int64 `form:"user_id,optional"` // 上传文件额外信息
|
||||||
GuestId int64 `form:"guest_id,optional"` // 上传文件额外信息
|
GuestId int64 `form:"guest_id,optional"` // 上传文件额外信息
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
Source string `form:"source"` // 上传来源
|
Source string `form:"source"` // 上传来源
|
||||||
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
||||||
ResourceId string `form:"resource_id,optional"` // 资源ID
|
ResourceId string `form:"resource_id,optional"` // 资源ID
|
||||||
|
@ -84,7 +84,7 @@ type (
|
||||||
type (
|
type (
|
||||||
UploadFileBackendReq {
|
UploadFileBackendReq {
|
||||||
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
FileKey string `form:"file_key"` // 上传唯一标识信息
|
FileKey string `form:"file_key"` // 上传唯一标识信息
|
||||||
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
||||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||||
|
@ -95,14 +95,14 @@ type (
|
||||||
|
|
||||||
UploadFilesReq {
|
UploadFilesReq {
|
||||||
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
UploadInfo string `form:"upload_info"` // 上传信息 json
|
UploadInfo string `form:"upload_info"` // 上传信息 json
|
||||||
Source string `form:"source"` // 上传来源
|
Source string `form:"source"` // 上传来源
|
||||||
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
Refresh int64 `form:"refresh,optional"` // 强制更新 10
|
||||||
ResourceId string `form:"resource_id,optional"` // 资源ID
|
ResourceId string `form:"resource_id,optional"` // 资源ID
|
||||||
}
|
}
|
||||||
UploadCallbackReq {
|
UploadCallbackReq {
|
||||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
UploadBucket int64 `form:"upload_bucket,options=[1,2,3],default=1"` // 上传桶名:1=缓存,2=持久
|
||||||
ResourceId string `form:"resource_id"` // 资源ID
|
ResourceId string `form:"resource_id"` // 资源ID
|
||||||
ResourceType string `form:"resource_type"` // 资源类型
|
ResourceType string `form:"resource_type"` // 资源类型
|
||||||
ResourceUrl string `form:"resource_url"` // 资源URL
|
ResourceUrl string `form:"resource_url"` // 资源URL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user