handler

package
v0.0.0-...-aa5fa10 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPost

func AddPost(ctx *fasthttp.RequestCtx)

AddPost api add post

func AddTag

func AddTag(ctx *fasthttp.RequestCtx)

AddTag api add tag

func DeletePost

func DeletePost(ctx *fasthttp.RequestCtx)

DeletePost api get post

func DeleteTag

func DeleteTag(ctx *fasthttp.RequestCtx)

DeleteTag api get tag

func GetAllPosts

func GetAllPosts(ctx *fasthttp.RequestCtx)

GetAllPosts api get all post

func GetAllTags

func GetAllTags(ctx *fasthttp.RequestCtx)

GetAllTags api get all tag

func GetPost

func GetPost(ctx *fasthttp.RequestCtx)

GetPost api get post

func GetPosts

func GetPosts(ctx *fasthttp.RequestCtx)

GetPosts api get page post

func GetTag

func GetTag(ctx *fasthttp.RequestCtx)

GetTag api get tag

func GetTags

func GetTags(ctx *fasthttp.RequestCtx)

GetTags api get page tag

func UpdatePost

func UpdatePost(ctx *fasthttp.RequestCtx)

UpdatePost api update post

func UpdateTag

func UpdateTag(ctx *fasthttp.RequestCtx)

UpdateTag api update tag

Types

type DataResp

type DataResp struct {
	Err  int         `json:"err"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data,omitempty"`
}

DataResp is struct data response

Jump to

Keyboard shortcuts

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