Back to / controllers

Package controllers

Latest Go to latest

The highest tagged major version is .

Published: Dec 30, 2018 | License: MIT | Module:



const DST = "static/img/"

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)

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"`


Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier