Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetImageRequest ¶
type GetImageRequest struct {
// Resolution 图片规格,选填,二维数组,支持多个分辨率,分别表示为:[[宽,高],…,[宽,高]]
Resolution [][]int `json:"resolution,omitempty"`
// Size 图片大小区间,选填,数组长度为2,表示获取大小在[size[0],size[1]]这个区间的图片
Size []int `json:"size,omitempty"`
// Format 图片格式,选填,可选范围为上传图片时限定的范围。["jpg","png"]
Format []string `json:"format,omitempty"`
// Date 时间区间, 选填,数组长度为2,表示获取上传日期在[date[0], date[1]]这个区间的图片,时间格式为yyyy-MM-ddTHH:mm:ss
Date []string `json:"date,omitempty"`
// Page 当前页
Page int `json:"page"`
// PageSize 当前页大小
PageSize int `json:"pageSize"`
// IsCollectec 图片收藏
IsCollected int `json:"isCollected,omitempty"`
}
GetImageRequest 获取图片素材API Request
func (GetImageRequest) Url ¶
func (r GetImageRequest) Url() string
type GetImageResponse ¶
type GetImageResponse struct {
Data []Image `json:"data,omitempty"`
}
GetImageResponse 获取图片素材 API Response
type Image ¶
type Image struct {
// ImageId 图片标识id
ImageId string `json:"imageId,omitempty"`
// Url 图片上传成功后生成的链接
Url string `json:"url,omitempty"`
// Width 宽, 要求(宽_高)
Width int `json:"width,omitempty"`
// Height 高, 规格同上
Height int `json:"height,omitempty"`
// Size 图片大小, 1M以内
Size int `json:"size,omitempty"`
// Format 图片格式, jpg/jpeg/png
Format string `json:"format,omitempty"`
// Date 图片上传时间
Date string `json:"date,omitempty"`
// Desc 图片描述, 不超过200个字符;注:英文字母占1个字符,1个汉字占2个字符
Desc string `json:"desc,omitempty"`
// Signature 图片MD5值
Signature string `json:"signature,omitempty"`
// Source 图片来源
Source int `json:"source,omitempty"`
// IsCollected 图片收藏
IsCollected *int `json:"isCollected,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.