types

package
v1.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

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 | 基础带数据信息

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信息

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 | 基础带数据信息

type BaseMsgResp

type BaseMsgResp struct {
	// Error code | 错误代码
	Code int `json:"code"`
	// Message | 提示信息
	Msg string `json:"msg"`
}

The basic response without data | 基础不带数据信息

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信息

type CloudFileDeleteReq added in v1.6.11

type CloudFileDeleteReq struct {
	// Url | 文件网址
	Url string `json:"url"`
}

Delete cloud file by url request | 通过网址删除云文件请求

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 | 云文件信息

type CloudFileInfoResp added in v1.1.3

type CloudFileInfoResp struct {
	BaseDataInfo
	// CloudFile information | 云文件数据
	Data CloudFileInfo `json:"data"`
}

CloudFile information response | 云文件信息返回体

type CloudFileListInfo added in v1.1.3

type CloudFileListInfo struct {
	BaseListInfo
	// The API list data | 云文件列表数据
	Data []CloudFileInfo `json:"data"`
}

CloudFile list data | 云文件列表数据

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 | 云文件列表请求参数

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 | 云文件列表数据

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 | 云文件标签信息

type CloudFileTagInfoResp added in v1.1.3

type CloudFileTagInfoResp struct {
	BaseDataInfo
	// Cloud file tag information | 云文件标签数据
	Data CloudFileTagInfo `json:"data"`
}

Cloud file tag information response | 云文件标签信息返回体

type CloudFileTagListInfo added in v1.1.3

type CloudFileTagListInfo struct {
	BaseListInfo
	// The API list data | 云文件标签列表数据
	Data []CloudFileTagInfo `json:"data"`
}

CloudFileTag list data | 云文件标签列表数据

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 | 云文件标签列表请求参数

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 | 云文件标签列表数据

type FileDeleteReq added in v1.6.11

type FileDeleteReq struct {
	// Url | 文件网址
	Url string `json:"url"`
}

Delete file by url request | 通过网址删除文件请求

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 | 文件公开状态
	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 | 文件信息数据

type FileListInfo

type FileListInfo struct {
	BaseListInfo
	// The file list data | 文件信息列表数据
	Data []FileInfo `json:"data"`
}

type FileListReq

type FileListReq struct {
	PageInfo
	// File type | 文件类型
	FileType *uint8 `json:"fileType,optional" validate:"omitempty,max=10"`
	// File name | 文件名
	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 | 获取文件列表参数

type FileListResp

type FileListResp struct {
	BaseDataInfo
	// The file list data | 文件信息列表数据
	Data FileListInfo `json:"data"`
}

The response data of file information list | 文件信息列表数据

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 | 文件标签信息

type FileTagInfoResp added in v1.1.3

type FileTagInfoResp struct {
	BaseDataInfo
	// FileTag information | 文件标签数据
	Data FileTagInfo `json:"data"`
}

FileTag information response | 文件标签信息返回体

type FileTagListInfo added in v1.1.3

type FileTagListInfo struct {
	BaseListInfo
	// The API list data | 文件标签列表数据
	Data []FileTagInfo `json:"data"`
}

FileTag list data | 文件标签列表数据

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 | 文件标签列表请求参数

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 | 文件标签列表数据

type IDPathReq

type IDPathReq struct {
	// ID
	Id uint64 `path:"id"`
}

Basic ID request | 基础ID地址参数请求

type IDReq

type IDReq struct {
	// ID
	Id uint64 `json:"id" validate:"number"`
}

Basic ID request | 基础ID参数请求

type IDsReq added in v1.0.10

type IDsReq struct {
	// IDs
	Ids []uint64 `json:"ids"`
}

Basic IDs request | 基础ID数组参数请求

type PageInfo

type PageInfo struct {
	// Page number | 第几页
	Page uint64 `json:"page" validate:"required,number,gt=0"`
	// Page size | 单页数据行数
	PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"`
}

The page request parameters | 列表请求参数

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 | 设置状态参数

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 | 服务提供商信息

type StorageProviderInfoResp added in v1.1.3

type StorageProviderInfoResp struct {
	BaseDataInfo
	// StorageProvider information | 服务提供商数据
	Data StorageProviderInfo `json:"data"`
}

StorageProvider information response | 服务提供商信息返回体

type StorageProviderListInfo added in v1.1.3

type StorageProviderListInfo struct {
	BaseListInfo
	// The API list data | 服务提供商列表数据
	Data []StorageProviderInfo `json:"data"`
}

StorageProvider list data | 服务提供商列表数据

type StorageProviderListReq added in v1.1.3

type StorageProviderListReq struct {
	PageInfo
	// Name | 名称
	Name *string `json:"name,optional"`
}

Get storage provider list request params | 服务提供商列表请求参数

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 | 服务提供商列表数据

type UUIDPathReq added in v1.0.11

type UUIDPathReq struct {
	// ID
	Id string `path:"id"`
}

Basic path UUID request | 基础UUID地址参数请求

type UUIDReq

type UUIDReq struct {
	// ID
	Id string `json:"id" validate:"len=36"`
}

Basic UUID request | 基础UUID参数请求

type UUIDsReq added in v1.0.10

type UUIDsReq struct {
	// Ids
	Ids []string `json:"ids"`
}

Basic UUID array request | 基础UUID数组参数请求

type UpdateFileReq

type UpdateFileReq struct {
	// ID
	ID string `json:"id"`
	// File name | 文件名
	Name *string `json:"name,optional" validate:"max=50"`
	// File tag | 文件标签
	FileTagIds []uint64 `json:"tagIds,optional"`
}

Update file information params | 更新文件信息参数

type UploadInfo

type UploadInfo struct {
	// File name | 文件名称
	Name string `json:"name"`
	// File path | 文件路径
	Url string `json:"url"`
}

The data when upload finished | 上传完成数据

type UploadResp

type UploadResp struct {
	BaseDataInfo
	// The  data when upload finished | 上传完成数据
	Data UploadInfo `json:"data"`
}

The response data when upload finished | 上传完成返回的数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL