material_uploadImageSync_request

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (*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 (*MaterialUploadImageSyncRequest) GetUrlPath

func (c *MaterialUploadImageSyncRequest) GetUrlPath() string

Jump to

Keyboard shortcuts

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