service

package
v0.0.0-...-5b4efa0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoryRoutes = []models.Route{
	{Method: "GET", Pattern: "/health", MiddleWare: nil, HandlerFunc: health},
	{Method: "POST", Pattern: "/category/v1/add", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(saveCategory)},
	{Method: "GET", Pattern: "/statistics/v1/list", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: statisticsList},
	{Method: "PUT", Pattern: "/category/v1/update", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(updateCategory)},
	{Method: "GET", Pattern: "/category-tags/v1/:id", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: getCategoryTags},
	{Method: "GET", Pattern: "/list/v1/category-tags", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: getCategoryTagsList},
	{Method: "GET", Pattern: "/category/v1/:id", MiddleWare: nil, HandlerFunc: getCategoryTags},
	{Method: "GET", Pattern: "/list/v1/category", MiddleWare: nil, HandlerFunc: getCategoryList},
	{Method: "DELETE", Pattern: "/category/v1/:id", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(deleteCategory)},
}
View Source
var TagsRoutes = []models.Route{
	{Method: "GET", Pattern: "/list/v1/tags", MiddleWare: nil, HandlerFunc: getTagsList},
	{Method: "GET", Pattern: "/tags-article-quantity/v1/list", MiddleWare: nil, HandlerFunc: getTagsAndArticleQuantityList},
	{Method: "GET", Pattern: "/tags/v1/:id", MiddleWare: nil, HandlerFunc: getTags},
	{Method: "POST", Pattern: "/tags/v1/add", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(saveTags)},
	{Method: "PUT", Pattern: "/tags/v1/update", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(updateTags)},
	{Method: "DELETE", Pattern: "/tags/v1/:id", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(deleteTags)},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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