reporthandlers

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 CreateReportRequest

type CreateReportRequest struct {
	// 评论的ID
	// 当举报为评论时,则传入评论ID作为查询关联
	// required: false
	// min: 0
	CommentID int `json:"commentID"`
	// 资讯的ID
	// 当举报为资讯时,则传入资讯的ID作为查询关联
	// required: false
	// min: 0
	NewsID int `json:"newsID"`
	// 资讯评论的ID
	// 当举报为资讯的评论时,传入动态的ID作为查询关联
	//
	// required: false
	// min: 0
	NewsCommentID int `json:"newsCommentID"`
	// 举报动态的ID
	// 当举报为动态时,传入动态的ID作为查询关联
	//
	// required: false
	// min: 0
	MomentID int `json:"momentID"`
	// 原因 最少6个字符
	// 举报的原因
	//
	// required: true
	// min: 6
	Reason string `json:"reason"`
}

CreateReportRequest is request data for creating a news category swagger:model CreateNewsCateRequest

type ReportHandlers

type ReportHandlers struct {
	*basichandlers.Basic
}

ReportHandlers APIs

func (*ReportHandlers) Create

func (r *ReportHandlers) Create() gin.HandlerFunc

Create defined to create a new report @Tags 举报 @Description 创建举报信息 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param CreateReportRequest body reporthandlers.CreateReportRequest true "新增举报" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /reports/create [post]

Jump to

Keyboard shortcuts

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