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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LinksRoutes = []models.Route{
	{Method: "GET", Pattern: "/health", MiddleWare: nil, HandlerFunc: health},
	{Method: "GET", Pattern: "/list/v1/link", MiddleWare: nil, HandlerFunc: getFriendshipLinkList},
	{Method: "GET", Pattern: "/link/v2/list", MiddleWare: nil, HandlerFunc: getFriendshipLinkMap},
	{Method: "POST", Pattern: "/link/v1/add", MiddleWare: gin.HandlersChain{authmid.AdminToken}, HandlerFunc: transaction.GormTx(saveFriendshipLink)},
	{Method: "PUT", Pattern: "/link/v1/update", MiddleWare: gin.HandlersChain{authmid.AdminToken}, HandlerFunc: transaction.GormTx(updateFriendshipLink)},
	{Method: "GET", Pattern: "/link/v1/:id", MiddleWare: nil, HandlerFunc: getFriendshipLink},
	{Method: "DELETE", Pattern: "/link/v1/:id", MiddleWare: nil, HandlerFunc: transaction.GormTx(deleteFriendshipLink)},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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