controllers

package
v0.0.0-...-96c7ced Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DST = "static/img/"

Variables

This section is empty.

Functions

func AllArticle

func AllArticle(c *gin.Context)

func CreatArticle

func CreatArticle(c *gin.Context)

func CurrentArticledMessageOtherMessage

func CurrentArticledMessageOtherMessage(c *gin.Context)

func CurrentArticledMessages

func CurrentArticledMessages(c *gin.Context)

func CurrentArticledWirteMessage

func CurrentArticledWirteMessage(c *gin.Context)

func DeleteArticle

func DeleteArticle(c *gin.Context)

func GetMostThunmbArticle

func GetMostThunmbArticle(c *gin.Context)

func GetReportForm

func GetReportForm(c *gin.Context)

func GetShouzhenSelectData

func GetShouzhenSelectData(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func LoginIn

func LoginIn(c *gin.Context)

func MyArticle

func MyArticle(c *gin.Context)

func Register

func Register(c *gin.Context)

func ThunmbToArticle

func ThunmbToArticle(c *gin.Context)

func ThunmbToCurrentArticledMessage

func ThunmbToCurrentArticledMessage(c *gin.Context)

func UpdateArticle

func UpdateArticle(c *gin.Context)

func Upload

func Upload(c *gin.Context)

Types

type ApiRes

type ApiRes struct {
	Code uint        `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type CreatArticleParams

type CreatArticleParams struct {
	Title   string `form:"title" json:"title"`     //文章主题
	Context string `form:"context" json:"context"` //文章内容
}

type LoginParams

type LoginParams struct {
	Username string `form:"nickName" json:"nickName" binding:"required"`
	Password string `form:"password" json:"password" bingding:"required"`
}

type MessageParams

type MessageParams struct {
	Id         string `form:"id" json:"id"`
	ArticleId  string `form:"articleId" json:"articleId"`
	Uid        string `form:"uid" json:"uid"`
	UserName   string `form:"name" json:"name"`
	Actor      string `form:"avatarUrl" json:"avatarUrl"`
	Context    string `form:"context" json:"context"`
	Thunmbs    string `form:"thunmbs" json:"thunmbs"`
	ThunmbsUid string `form:"thunmbsUid" json:"thunmbsUid"`
	ToMesId    string `form:"toMesId" json:"toMesId"`
	Page       string `form:"page" json:"page"`
}

type MyArticleParams

type MyArticleParams struct {
	Uid  string `form:"uid" json:"uid"`
	Page string `form:"page" json:"page"`
}

type UpdateArticleParams

type UpdateArticleParams struct {
	Id      string `form:"id" json:"id"`
	Context string `form:"text" json:"text"`
}

删除

Jump to

Keyboard shortcuts

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