routers

package
v0.0.0-...-a70d403 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Article

func Article(r *gin.Engine)

func GetLoginCookie

func GetLoginCookie(c *gin.Context) account.Account

func GetTagList

func GetTagList(r *gin.Engine)

func Init

func Init(r *gin.Engine)

func InitArticle

func InitArticle(r *gin.Engine)

func InitAuth

func InitAuth(r *gin.Engine)

func InitProject

func InitProject(r *gin.Engine)

func InitTopic

func InitTopic(r *gin.Engine)

func InitUtils

func InitUtils(r *gin.Engine)

func Login

func Login(r *gin.Engine)

func LoginStatus

func LoginStatus(c *gin.Context) bool

func Project

func Project(r *gin.Engine)

func Ret

func Ret(c *gin.Context, ret bool, res interface{})

func SetLoginCookie

func SetLoginCookie(c *gin.Context, account account.Account)

func Topic

func Topic(r *gin.Engine)

func UpdateComment

func UpdateComment(r *gin.Engine)

func Utils

func Utils(r *gin.Engine)

Types

type InsertArticleType

type InsertArticleType struct {
	Author   string   `json:"Author"`
	Content  string   `json:"Content"`
	IsPublic bool     `json:"isPublic"`
	LogoUrl  string   `json:"logoUrl"`
	Url      string   `json:"Url"`
	Site     string   `json:"site"`
	Summary  string   `json:"Summary"`
	Html     string   `json:"Html"`
	Tags     []string `json:"Tags"`
	Title    string   `json:"Title"`
	Toc      []string `json:"Toc"`
}

type InsertProjectType

type InsertProjectType struct {
	Name        string `json:"Name"`
	Frame       string `json:"Frame"`
	IsPublic    bool   `json:"isPublic"`
	LogoUrl     string `json:"logoUrl"`
	Url         string `json:"Url"`
	Description string `json:"description"`
}

type InsertTopicType

type InsertTopicType struct {
	Name        string   `json:"Name"`
	Articles    []string `json:"articles"`
	IsPublic    bool     `json:"isPublic"`
	LogoUrl     string   `json:"logoUrl"`
	Url         string   `json:"Url"`
	Description string   `json:"description"`
}

type LoginCheckType

type LoginCheckType struct {
	LoginId    int    `json:"loginId"`
	LoginUser  string `json:"loginUser"`
	LoginToken string `json:"loginToken"`
}

type LoginType

type LoginType struct {
	UserName string `json:"userName"`
	PassWord string `json:"password"`
}

type UpdateCommentType

type UpdateCommentType struct {
	Comments []string `json:"Comment"`
}

Jump to

Keyboard shortcuts

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