handler

package
v0.0.0-...-17d8290 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Route *gin.Engine

Functions

func AddRoleForUser

func AddRoleForUser(ctx *gin.Context)

func DeleteRoleForUser

func DeleteRoleForUser(ctx *gin.Context)

func GetInfo

func GetInfo(ctx *gin.Context)

func GetPost

func GetPost(ctx *gin.Context)

获取单条

func GetPostList

func GetPostList(ctx *gin.Context)

获取列表

func GetRole

func GetRole(ctx *gin.Context)

func IndexHandler

func IndexHandler(ctx *gin.Context)

func InitRoute

func InitRoute(route *gin.Engine)

func ListRole

func ListRole(ctx *gin.Context)

func Login

func Login(ctx *gin.Context)

func PushPoetry

func PushPoetry(ctx *gin.Context)

推送

func PushPost

func PushPost(ctx *gin.Context)

单个推送

func PushPostList

func PushPostList(ctx *gin.Context)

批量推送

func PushRoute

func PushRoute(ctx *gin.Context)

func SearchPoetry

func SearchPoetry(ctx *gin.Context)

搜索

func SearchPost

func SearchPost(ctx *gin.Context)

搜索

func SetJurisdiction

func SetJurisdiction(ctx *gin.Context)

授权

Types

type PoetryItem

type PoetryItem struct {
	Author   string `json:"author"`
	Contents string `json:"contents"`
	ID       int64  `json:"id"`
	Title    string `json:"title"`
	Type     string `json:"type"`
}

type PoetryList

type PoetryList []struct {
	PoetryItem
}

Jump to

Keyboard shortcuts

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