Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeInvalidNovelID apperr.Code = "attachment.invalid_novel_id" // CodeFileTooLarge 原图或处理后的图片超过文件体积限制。 CodeFileTooLarge apperr.Code = "attachment.file_too_large" // CodeTooManyPixels 原图像素数超过解码限制。 CodeTooManyPixels apperr.Code = "attachment.too_many_pixels" // CodeInvalidImage 图片格式不受支持、数据损坏或编码无效。 CodeInvalidImage apperr.Code = "attachment.invalid_image" )
View Source
const ( MaxFileSize = 20 << 20 MaxPixels = 40_000_000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
type Image struct {
ID string `json:"id"`
Name string `json:"name"`
Original ImageInfo `json:"original"`
Standard ImageInfo `json:"standard"`
}
Image 同时是导入结果和本地 manifest,两个版本在导入后不再修改。
Click to show internal directories.
Click to hide internal directories.