controllers

package
v0.0.0-...-e249f0d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArticle

func CreateArticle(c *gin.Context)

CreateArticle is the controller to handle the creation of an article

func CreateCustomer

func CreateCustomer(c *gin.Context)

CreateCustomer is the controller to create a new customer

func DeleteArticleById

func DeleteArticleById(c *gin.Context)

func GetArticleById

func GetArticleById(c *gin.Context)

func Login

func Login(c *gin.Context)

Login takes customer email and password a json params and returns a token or an error depending on the credentials given.

func TestController

func TestController(c *gin.Context)

func TestSearchService

func TestSearchService(c *gin.Context)

func UpdateArticle

func UpdateArticle(c *gin.Context)

UpdateArticle

Types

type ArticleResponse

type ArticleResponse struct {
	Article   interface{}
	LastIndex int
}

Jump to

Keyboard shortcuts

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