Documentation ¶
Index ¶
- type MaterialUploadImageSyncParam
- type MaterialUploadImageSyncRequest
- func (c *MaterialUploadImageSyncRequest) Execute(accessToken *doudian_sdk.AccessToken) (*material_uploadImageSync_response.MaterialUploadImageSyncResponse, error)
- func (c *MaterialUploadImageSyncRequest) GetParamObject() interface{}
- func (c *MaterialUploadImageSyncRequest) GetParams() *MaterialUploadImageSyncParam
- func (c *MaterialUploadImageSyncRequest) GetUrlPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaterialUploadImageSyncParam ¶
type MaterialUploadImageSyncParam struct { // 文件夹id,0为根目录 FolderId string `json:"folder_id"` // 图片url,必须是公网可访问。url和file_uri二选一,不能同时为空,如果2者都不为空取url Url string `json:"url"` // 图片名称,开发者自定义,不得超过50个字符。 MaterialName string `json:"material_name"` // 二进制文件对应的uri,获取方式请参考:https://op.jinritemai.com/docs/guide-docs/171/1719 FileUri string `json:"file_uri"` // 是否需要去重(true/false),默认为false。去重是指:存在已经审核通过切内容内容相同的图片,直接返回已存在的图片地址。 NeedDistinct bool `json:"need_distinct"` }
type MaterialUploadImageSyncRequest ¶
type MaterialUploadImageSyncRequest struct { doudian_sdk.BaseDoudianOpApiRequest Param *MaterialUploadImageSyncParam }
func New ¶
func New() *MaterialUploadImageSyncRequest
func (*MaterialUploadImageSyncRequest) Execute ¶
func (c *MaterialUploadImageSyncRequest) Execute(accessToken *doudian_sdk.AccessToken) (*material_uploadImageSync_response.MaterialUploadImageSyncResponse, error)
func (*MaterialUploadImageSyncRequest) GetParamObject ¶
func (c *MaterialUploadImageSyncRequest) GetParamObject() interface{}
func (*MaterialUploadImageSyncRequest) GetParams ¶
func (c *MaterialUploadImageSyncRequest) GetParams() *MaterialUploadImageSyncParam
func (*MaterialUploadImageSyncRequest) GetUrlPath ¶
func (c *MaterialUploadImageSyncRequest) GetUrlPath() string
Click to show internal directories.
Click to hide internal directories.