material_queryMaterialDetail_response

package
v1.0.2 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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaterialInfo

type MaterialInfo struct {
	// 素材id
	MaterialId string `json:"material_id"`
	// 文件夹id
	FolderId string `json:"folder_id"`
	// 原url
	OriginUrl string `json:"origin_url"`
	// 素材中心返回的url,该字段只对图片有效;如果想获取视频播放信息,请参考video_info/vid字段介绍
	ByteUrl string `json:"byte_url"`
	// 素材名称
	MaterilName string `json:"materil_name"`
	// 素材类型,photo-图片 video-视频
	MaterialType string `json:"material_type"`
	// 状态,0-待下载 1-有效 4-在回收站中
	OperateStatus int32 `json:"operate_status"`
	// 审核状态,1-待审核 2-审核中 3-通过 4-拒绝
	AuditStatus int32 `json:"audit_status"`
	// 审核失败的原因
	AuditRejectDesc string `json:"audit_reject_desc"`
	// 大小,单位为byte
	Size int64 `json:"size"`
	// 图片信息
	PhotoInfo *PhotoInfo `json:"photo_info"`
	// 视频信息
	VideoInfo *VideoInfo `json:"video_info"`
	// 素材创建时间
	CreateTime string `json:"create_time"`
	// 素材最近一次修改时间
	UpdateTime string `json:"update_time"`
	// 素材移动到回收站的时间,只有在回收站中,该字段才有意义
	DeleteTime string `json:"delete_time"`
}

type MaterialQueryMaterialDetailData

type MaterialQueryMaterialDetailData struct {
	// 素材详情
	MaterialInfo *MaterialInfo `json:"material_info"`
}

type MaterialQueryMaterialDetailResponse

type MaterialQueryMaterialDetailResponse struct {
	doudian_sdk.BaseDoudianOpApiResponse
	Data *MaterialQueryMaterialDetailData `json:"data"`
}

type PhotoInfo

type PhotoInfo struct {
	// 图片高度
	Height int32 `json:"height"`
	// 图片宽度
	Width int32 `json:"width"`
	// 图片格式
	Format string `json:"format"`
}

type VideoInfo

type VideoInfo struct {
	// 视频格式
	Format string `json:"format"`
	// 视频时长,单位秒
	Duration float64 `json:"duration"`
	// vid,用于获取视频播放地址,接口文档见:https://op.jinritemai.com/docs/api-docs/69/2164
	Vid string `json:"vid"`
	// 视频高度
	Height int32 `json:"height"`
	// 视频宽度
	Width int32 `json:"width"`
	// 视频封面地址
	VideoCoverUrl string `json:"video_cover_url"`
}

Jump to

Keyboard shortcuts

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