v1

package
v0.0.0-...-fc9f0a5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetReferenceFilePrefix = "v1/content/GetReferenceFile?objectKey="
)

Functions

func AddContent

func AddContent(ctx iris.Context)

func GetContent

func GetContent(ctx iris.Context)

func GetReferenceFile

func GetReferenceFile(ctx iris.Context)

func UpdateContent

func UpdateContent(ctx iris.Context)

func UploadFile

func UploadFile(ctx iris.Context)

图片、视频通过对象存储

Types

type AddContentReq

type AddContentReq struct {
	CatalogType string `json:"catalogType,omitempty"`
	Theme       string `json:"theme,omitempty"`
	Keyword     string `json:"keyword"`
	Content     string `json:"content"`
}

type GetContentReq

type GetContentReq struct {
	CatalogType string `json:"catalogType,omitempty"`
	Theme       string `json:"theme,omitempty"`
	Uuid        string `json:"uuid,omitempty"`
}

type GetReferenceFileReq

type GetReferenceFileReq struct {
}

拉取引用的文件

type ResponseContent

type ResponseContent struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type UpdateContentReq

type UpdateContentReq struct {
	CatalogType string `json:"catalogType,omitempty"`
	Uuid        string `json:"uuid,omitempty"`
	Theme       string `json:"theme,omitempty"`
	Keyword     string `json:"keyword"`
	Content     string `json:content`
}

type UploadFileReq

type UploadFileReq struct {
	Name    string `json:"name"`
	Catalog string `json:"catalog"`
	Type    string `json:"type"` //类型有file/picture/short-video/long-video/audio
}

上传文件、类型、所属分类

Jump to

Keyboard shortcuts

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