mediahandlers

package
v0.0.0-...-851e7b8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 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 MediaHandlers

type MediaHandlers struct {
	*basichandlers.Basic
}

MediaHandlers controls media apis

func (*MediaHandlers) Create

func (m *MediaHandlers) Create() gin.HandlerFunc

Create media @Tags 媒体 @Description 创建媒体 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /medias/create [get]

func (*MediaHandlers) Remove

func (m *MediaHandlers) Remove() gin.HandlerFunc

Remove media @Tags 媒体 @Description 删除媒体 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param RemoveMediaRequest body mediahandlers.RemoveMediaRequest true "删除媒体" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /medias/remove [post]

type RemoveMediaRequest

type RemoveMediaRequest struct {
	// 媒体ID
	//
	// required: true
	// min: 1
	MediaID int `json:"mediaID"`
}

RemoveMediaRequest model swagger:model RemoveMediaRequest

Jump to

Keyboard shortcuts

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