Documentation
¶
Index ¶
Constants ¶
View Source
const DownloadAPI = "/open-apis/im/v1/images/:image_key"
doc: https://open.feishu.cn/document/server-docs/im-v1/image/get
View Source
const UploadAPI = "/open-apis/im/v1/images"
doc: https://open.feishu.cn/document/server-docs/im-v1/image/create
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DownloadRequest ¶
type DownloadRequest struct { // ImageKey 图片的 Key ImageKey string `json:"image_key"` }
type Image ¶
type Image interface {
Upload(cfg *UploadRequest) (resp *UploadResponse, err error)
}
type UploadRequest ¶
type UploadResponse ¶
type UploadResponse struct { // ImageKey 图片的 Key ImageKey string `json:"image_key"` }
func Upload ¶
func Upload(client client.Client, cfg *UploadRequest) (resp *UploadResponse, err error)
Click to show internal directories.
Click to hide internal directories.