Documentation
¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type BaseDataInfo
- type BaseIDInfo
- type BaseListInfo
- type BaseMsgResp
- type BaseUUIDInfo
- type CloudFileDeleteReq
- type CloudFileInfo
- type CloudFileInfoResp
- type CloudFileListInfo
- type CloudFileListReq
- type CloudFileListResp
- type CloudFileTagInfo
- type CloudFileTagInfoResp
- type CloudFileTagListInfo
- type CloudFileTagListReq
- type CloudFileTagListResp
- type FileDeleteReq
- type FileInfo
- type FileListInfo
- type FileListReq
- type FileListResp
- type FileTagInfo
- type FileTagInfoResp
- type FileTagListInfo
- type FileTagListReq
- type FileTagListResp
- type IDPathReq
- type IDReq
- type IDsReq
- type PageInfo
- type StatusCodeReq
- type StorageProviderInfo
- type StorageProviderInfoResp
- type StorageProviderListInfo
- type StorageProviderListReq
- type StorageProviderListResp
- type UUIDPathReq
- type UUIDReq
- type UUIDsReq
- type UpdateFileReq
- type UploadInfo
- type UploadResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDataInfo ¶
type BaseDataInfo struct {
// Error code | 错误代码
Code int `json:"code"`
// Message | 提示信息
Msg string `json:"msg"`
// Data | 数据
Data string `json:"data,omitempty"`
}
The basic response with data | 基础带数据信息 swagger:model BaseDataInfo
type BaseIDInfo ¶ added in v1.0.10
type BaseIDInfo struct {
// ID
Id *uint64 `json:"id,optional"`
// Create date | 创建日期
CreatedAt *int64 `json:"createdAt,optional"`
// Update date | 更新日期
UpdatedAt *int64 `json:"updatedAt,optional"`
}
The base ID response data | 基础ID信息 swagger:model BaseIDInfo
type BaseListInfo ¶
type BaseListInfo struct {
// The total number of data | 数据总数
Total uint64 `json:"total"`
// Data | 数据
Data string `json:"data,omitempty"`
}
The basic response with data | 基础带数据信息 swagger:model BaseListInfo
type BaseMsgResp ¶
type BaseMsgResp struct {
// Error code | 错误代码
Code int `json:"code"`
// Message | 提示信息
Msg string `json:"msg"`
}
The basic response without data | 基础不带数据信息 swagger:model BaseMsgResp
type BaseUUIDInfo ¶ added in v1.0.10
type BaseUUIDInfo struct {
// ID
Id *string `json:"id,optional"`
// Create date | 创建日期
CreatedAt *int64 `json:"createdAt,optional"`
// Update date | 更新日期
UpdatedAt *int64 `json:"updatedAt,optional"`
}
The base UUID response data | 基础UUID信息 swagger:model BaseUUIDInfo
type CloudFileDeleteReq ¶ added in v1.6.11
type CloudFileDeleteReq struct {
// Url | 文件网址
Url string `json:"url"`
}
Delete cloud file by url request | 通过网址删除云文件请求 swagger:model CloudFileDeleteReq
type CloudFileInfo ¶ added in v1.1.3
type CloudFileInfo struct {
BaseUUIDInfo
// State | 状态
State *bool `json:"state,optional"`
// Name | 名称
Name *string `json:"name,optional"`
// Url | 网络地址
Url *string `json:"url,optional"`
// RelativeSrc | 相对路径
RelativeSrc *string `json:"relativeSrc,optional"`
// Size | 文件大小
Size *uint64 `json:"size,optional"`
// File type | 文件类型
FileType *uint8 `json:"fileType,optional"`
// User ID | 上传用户的 ID
UserId *string `json:"userId,optional"`
// Provider ID | 提供商的 ID
ProviderId *uint64 `json:"providerId,optional"`
// Tag ID | 标签 ID
TagIds []uint64 `json:"tagIds,optional,omitempty"`
}
The response data of cloud file information | 云文件信息 swagger:model CloudFileInfo
type CloudFileInfoResp ¶ added in v1.1.3
type CloudFileInfoResp struct {
BaseDataInfo
// CloudFile information | 云文件数据
Data CloudFileInfo `json:"data"`
}
CloudFile information response | 云文件信息返回体 swagger:model CloudFileInfoResp
type CloudFileListInfo ¶ added in v1.1.3
type CloudFileListInfo struct {
BaseListInfo
// The API list data | 云文件列表数据
Data []CloudFileInfo `json:"data"`
}
CloudFile list data | 云文件列表数据 swagger:model CloudFileListInfo
type CloudFileListReq ¶ added in v1.1.3
type CloudFileListReq struct {
PageInfo
// Name | 文件名
Name *string `json:"name,optional"`
// Provider ID | 提供商 ID
ProviderId *uint64 `json:"providerId,optional"`
// Tag ID | 标签 ID
TagIds []uint64 `json:"tagIds,optional"`
// File type | 文件类型
FileType *uint8 `json:"fileType,optional"`
// Provider name | 提供商名称
ProviderName *string `json:"providerName,optional"`
}
Get cloud file list request params | 云文件列表请求参数 swagger:model CloudFileListReq
type CloudFileListResp ¶ added in v1.1.3
type CloudFileListResp struct {
BaseDataInfo
// CloudFile list data | 云文件列表数据
Data CloudFileListInfo `json:"data"`
}
The response data of cloud file list | 云文件列表数据 swagger:model CloudFileListResp
type CloudFileTagInfo ¶ added in v1.1.3
type CloudFileTagInfo struct {
BaseIDInfo
// Status
Status *uint8 `json:"status,optional"`
// Name
Name *string `json:"name,optional"`
// Remark
Remark *string `json:"remark,optional"`
}
The response data of cloud file tag information | 云文件标签信息 swagger:model CloudFileTagInfo
type CloudFileTagInfoResp ¶ added in v1.1.3
type CloudFileTagInfoResp struct {
BaseDataInfo
// Cloud file tag information | 云文件标签数据
Data CloudFileTagInfo `json:"data"`
}
Cloud file tag information response | 云文件标签信息返回体 swagger:model CloudFileTagInfoResp
type CloudFileTagListInfo ¶ added in v1.1.3
type CloudFileTagListInfo struct {
BaseListInfo
// The API list data | 云文件标签列表数据
Data []CloudFileTagInfo `json:"data"`
}
CloudFileTag list data | 云文件标签列表数据 swagger:model CloudFileTagListInfo
type CloudFileTagListReq ¶ added in v1.1.3
type CloudFileTagListReq struct {
PageInfo
// Name
Name *string `json:"name,optional"`
// Remark
Remark *string `json:"remark,optional"`
}
Get cloud file tag list request params | 云文件标签列表请求参数 swagger:model CloudFileTagListReq
type CloudFileTagListResp ¶ added in v1.1.3
type CloudFileTagListResp struct {
BaseDataInfo
// CloudFileTag list data | 云文件标签列表数据
Data CloudFileTagListInfo `json:"data"`
}
The response data of cloud file tag list | 云文件标签列表数据 swagger:model CloudFileTagListResp
type FileDeleteReq ¶ added in v1.6.11
type FileDeleteReq struct {
// Url | 文件网址
Url string `json:"url"`
}
Delete file by url request | 通过网址删除文件请求 swagger:model FileDeleteReq
type FileInfo ¶
type FileInfo struct {
BaseUUIDInfo
// User's UUID | 用户的UUID
UserUUID *string `json:"userUUID"`
// File name | 文件名
Name *string `json:"name"`
// File type | 文件类型
FileType *uint8 `json:"fileType"`
// File size | 文件大小
Size *uint64 `json:"size"`
// File path | 文件路径
Path *string `json:"path"`
// File public status | 文件公开状态
// false private true public | false 私人, true公开
Status *uint8 `json:"status"`
// The public URL | 公开访问的链接
PublicPath *string `json:"publicPath"`
// FileTags' Id | 标签 ID
FileTagIds []uint64 `json:"tagIds,optional,omitempty"`
}
The response data of file information | 文件信息数据 swagger:model FileInfo
type FileListInfo ¶
type FileListInfo struct {
BaseListInfo
// The file list data | 文件信息列表数据
Data []FileInfo `json:"data"`
}
swagger:model FileListInfo
type FileListReq ¶
type FileListReq struct {
PageInfo
// File type | 文件类型
// max length : 10
FileType *uint8 `json:"fileType,optional" validate:"omitempty,max=10"`
// File name | 文件名
// max length : 50
FileName *string `json:"fileName,optional" validate:"omitempty,max=50"`
// Create date period | 创建日期时间段
Period []string `json:"period,optional"`
// FileTags' Id | 标签 ID
FileTagIds []uint64 `json:"tagIds,optional"`
// Status | 状态
Status *uint8 `json:"status,optional"`
}
Get file list params | 获取文件列表参数 swagger:model FileListReq
type FileListResp ¶
type FileListResp struct {
BaseDataInfo
// The file list data | 文件信息列表数据
Data FileListInfo `json:"data"`
}
The response data of file information list | 文件信息列表数据 swagger:model FileListResp
type FileTagInfo ¶ added in v1.1.3
type FileTagInfo struct {
BaseIDInfo
// Status
Status *uint8 `json:"status,optional"`
// Name
Name *string `json:"name,optional"`
// Remark
Remark *string `json:"remark,optional"`
}
The response data of file tag information | 文件标签信息 swagger:model FileTagInfo
type FileTagInfoResp ¶ added in v1.1.3
type FileTagInfoResp struct {
BaseDataInfo
// FileTag information | 文件标签数据
Data FileTagInfo `json:"data"`
}
FileTag information response | 文件标签信息返回体 swagger:model FileTagInfoResp
type FileTagListInfo ¶ added in v1.1.3
type FileTagListInfo struct {
BaseListInfo
// The API list data | 文件标签列表数据
Data []FileTagInfo `json:"data"`
}
FileTag list data | 文件标签列表数据 swagger:model FileTagListInfo
type FileTagListReq ¶ added in v1.1.3
type FileTagListReq struct {
PageInfo
// Name
Name *string `json:"name,optional"`
// Remark
Remark *string `json:"remark,optional"`
}
Get file tag list request params | 文件标签列表请求参数 swagger:model FileTagListReq
type FileTagListResp ¶ added in v1.1.3
type FileTagListResp struct {
BaseDataInfo
// FileTag list data | 文件标签列表数据
Data FileTagListInfo `json:"data"`
}
The response data of file tag list | 文件标签列表数据 swagger:model FileTagListResp
type IDPathReq ¶
type IDPathReq struct {
// ID
// Required: true
Id uint64 `path:"id"`
}
Basic ID request | 基础ID地址参数请求 swagger:model IDPathReq
type IDReq ¶
type IDReq struct {
// ID
// Required: true
Id uint64 `json:"id" validate:"number"`
}
Basic ID request | 基础ID参数请求 swagger:model IDReq
type IDsReq ¶ added in v1.0.10
type IDsReq struct {
// IDs
// Required: true
Ids []uint64 `json:"ids"`
}
Basic IDs request | 基础ID数组参数请求 swagger:model IDsReq
type PageInfo ¶
type PageInfo struct {
// Page number | 第几页
// required : true
// min : 0
Page uint64 `json:"page" validate:"required,number,gt=0"`
// Page size | 单页数据行数
// required : true
// max : 100000
PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"`
}
The page request parameters | 列表请求参数 swagger:model PageInfo
type StatusCodeReq ¶
type StatusCodeReq struct {
// ID
Id string `json:"id"`
// Status code | 状态码
Status uint64 `json:"status" validate:"number"`
}
The request params of setting boolean status | 设置状态参数 swagger:model StatusCodeReq
type StorageProviderInfo ¶ added in v1.1.3
type StorageProviderInfo struct {
BaseIDInfo
// State | 状态
State *bool `json:"state,optional"`
// Name | 云服务提供商名称
Name *string `json:"name,optional"`
// Bucket | 存储桶
Bucket *string `json:"bucket,optional"`
// Secret Id
SecretId *string `json:"secretId,optional"`
// Secret Key
SecretKey *string `json:"secretKey,optional"`
// Secret Key
Endpoint *string `json:"endpoint,optional"`
// folder | folder
Folder *string `json:"folder,optional"`
// Region | 地区
Region *string `json:"region,optional"`
// Whether is Default | 是否为默认
IsDefault *bool `json:"isDefault,optional"`
// Does it use CDN | 是否使用 CDN
UseCdn *bool `json:"useCdn,optional"`
// CDN URL | CDN 地址
CdnUrl *string `json:"cdnUrl,optional"`
}
The response data of storage provider information | 服务提供商信息 swagger:model StorageProviderInfo
type StorageProviderInfoResp ¶ added in v1.1.3
type StorageProviderInfoResp struct {
BaseDataInfo
// StorageProvider information | 服务提供商数据
Data StorageProviderInfo `json:"data"`
}
StorageProvider information response | 服务提供商信息返回体 swagger:model StorageProviderInfoResp
type StorageProviderListInfo ¶ added in v1.1.3
type StorageProviderListInfo struct {
BaseListInfo
// The API list data | 服务提供商列表数据
Data []StorageProviderInfo `json:"data"`
}
StorageProvider list data | 服务提供商列表数据 swagger:model StorageProviderListInfo
type StorageProviderListReq ¶ added in v1.1.3
Get storage provider list request params | 服务提供商列表请求参数 swagger:model StorageProviderListReq
type StorageProviderListResp ¶ added in v1.1.3
type StorageProviderListResp struct {
BaseDataInfo
// StorageProvider list data | 服务提供商列表数据
Data StorageProviderListInfo `json:"data"`
}
The response data of storage provider list | 服务提供商列表数据 swagger:model StorageProviderListResp
type UUIDPathReq ¶ added in v1.0.11
type UUIDPathReq struct {
// ID
// Required: true
Id string `path:"id"`
}
Basic path UUID request | 基础UUID地址参数请求 swagger:model UUIDPathReq
type UUIDReq ¶
type UUIDReq struct {
// ID
// Required: true
// Max length: 36
Id string `json:"id" validate:"len=36"`
}
Basic UUID request | 基础UUID参数请求 swagger:model UUIDReq
type UUIDsReq ¶ added in v1.0.10
type UUIDsReq struct {
// Ids
// Required: true
Ids []string `json:"ids"`
}
Basic UUID array request | 基础UUID数组参数请求 swagger:model UUIDsReq
type UpdateFileReq ¶
type UpdateFileReq struct {
// ID
// Required : true
ID string `json:"id"`
// File name | 文件名
// Required : true
Name *string `json:"name,optional" validate:"max=50"`
// File tag | 文件标签
FileTagIds []uint64 `json:"tagIds,optional"`
}
Update file information params | 更新文件信息参数 swagger:model UpdateFileReq
type UploadInfo ¶
type UploadInfo struct {
// File name | 文件名称
Name string `json:"name"`
// File path | 文件路径
Url string `json:"url"`
}
The data when upload finished | 上传完成数据 swagger:model UploadInfo
type UploadResp ¶
type UploadResp struct {
BaseDataInfo
// The data when upload finished | 上传完成数据
Data UploadInfo `json:"data"`
}
The response data when upload finished | 上传完成返回的数据 swagger:model UploadResp