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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContent

func AddContent(ctx iris.Context)

@title Add Content API @version 1.0 @contact.name content operation @contact.url http://www.niwofly.com @Description 用户创作主题及对应内容 @Accept json @Produce json @Param Param body ContentController.AddContentReq true "param" @Success 20000 {object} ContentController.ResponseContent "" @Failure 50001 {object} ContentController.ResponseContent "" @Router /v1/content/theme [post] @host niwofly.com @BasePath /v1

func GetContent

func GetContent(ctx iris.Context)

@title Get Content API @version 1.0 @contact.name content operation @contact.url http://www.niwofly.com @Description 获取指定主题的具体内容 @Accept json @Produce json @Param catalog query string true "param" @Param theme query string true "param" @Param uuid query string true "param" @Success 20000 {object} ContentController.ResponseContent "" @Failure 50001 {object} ContentController.ResponseContent "" @Router /v1/content/theme [get] @host niwofly.com @BasePath /v1

func GetReferenceFile

func GetReferenceFile(ctx iris.Context)

@title Update Content API @version 1.0 @contact.name content operation @contact.url http://www.niwofly.com @Description 用户获取图片、音、视频文件 @Accept json @Produce json @Param objectKey query string true "param" @Success 20000 {object} ContentController.ResponseContent "" @Failure 50001 {object} ContentController.ResponseContent "" @Router /v1/content/getReferenceFile [get] @host niwofly.com @BasePath /v1

func UpdateContent

func UpdateContent(ctx iris.Context)

@title Update Content API @version 1.0 @contact.name content operation @contact.url http://www.niwofly.com @Description 用户编辑更新内容 @Accept json @Produce json @Param Param body ContentController.UpdateContentReq true "param" @Success 20000 {object} ContentController.ResponseContent "" @Failure 50001 {object} ContentController.ResponseContent "" @Router /v1/content/theme [put] @host niwofly.com @BasePath /v1

func UploadFile

func UploadFile(ctx iris.Context)

@title Update File API @version 1.0 @contact.name content operation @contact.url http://www.niwofly.com @Description 用户上传图片、音、视频文件 @Accept json @Produce json @Param Param body ContentController.UploadFileReq true "param" @Success 20000 {object} ContentController.ResponseContent "" @Failure 50001 {object} ContentController.ResponseContent "" @Router /v1/content/uploadFile [post] @host niwofly.com @BasePath /v1

Types

This section is empty.

Jump to

Keyboard shortcuts

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