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
Click to show internal directories.
Click to hide internal directories.