upload

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	UploadImage(token, filePath string) (*UploadResp, error)
	UploadVoice(token, filePath string) (*UploadResp, error)
	UploadVideo(token, filePath string) (*UploadResp, error)
	UploadFile(token, filePath string) (*UploadResp, error)
}

func NewService

func NewService() Service

type UploadResp

type UploadResp struct {
	ErrCode   int    `json:"errcode"`
	ErrMsg    string `json:"errmsg"`
	MediaId   string `json:"media_id"`
	CreatedAt string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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