handler

package
v0.0.0-...-6f82975 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 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(c *fiber.Ctx) error

AddPost api add post

func AddTag

func AddTag(ctx *fiber.Ctx) error

AddTag api add tag

func DeletePost

func DeletePost(c *fiber.Ctx) error

DeletePost api get post

func DeleteTag

func DeleteTag(ctx *fiber.Ctx) error

DeleteTag api get tag

func GetAllPosts

func GetAllPosts(c *fiber.Ctx) error

GetAllPosts api get all post

func GetAllTags

func GetAllTags(ctx *fiber.Ctx) error

GetAllTags api get all tag

func GetPost

func GetPost(c *fiber.Ctx) error

GetPost api get post

func GetPosts

func GetPosts(c *fiber.Ctx) error

GetPosts api get page post

func GetTag

func GetTag(ctx *fiber.Ctx) error

GetTag api get tag

func GetTags

func GetTags(ctx *fiber.Ctx) error

GetTags api get page tag

func UpdatePost

func UpdatePost(c *fiber.Ctx) error

UpdatePost api update post

func UpdateTag

func UpdateTag(ctx *fiber.Ctx) error

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