image

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateImageReq

type CreateImageReq struct {
	ImageID       string   `json:"image_id"`
	PoiID         string   `json:"poi_id"`
	PoiName       string   `json:"poi_name"`
	Text          string   `json:"text"`
	AtUsers       []string `json:"at_users"`
	MicroAppURL   string   `json:"micro_app_url"`
	MicroAppID    string   `json:"micro_app_id"`
	MicroAppTitle string   `json:"micro_app_title"`
}

CreateImageReq .

type CreateInfo

type CreateInfo struct {
	util.CommonError

	ItemID string `json:"item_id"`
}

CreateInfo .

type Image

type Image struct {
	*context.Context
}

Image 图片

func NewImage added in v1.0.2

func NewImage(context *context.Context) *Image

NewImage .

func (*Image) Create

func (image *Image) Create(openid string, imageInfo *CreateImageReq) (info CreateInfo, err error)

Create 图片发布.

func (*Image) Upload

func (image *Image) Upload(openid string, filename string) (imageInfo Info, err error)

Upload 图片上传

type Info

type Info struct {
	util.CommonError

	Image struct {
		ImageID string `json:"image_id"`
		Height  int64  `json:"height"`
		Width   int64  `json:"width"`
	} `json:"image"`
}

Info 视频信息.

Jump to

Keyboard shortcuts

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