Documentation ¶
Index ¶
- func CreateArticle(c *gin.Context)
- func CreateCustomer(c *gin.Context)
- func DeleteArticleById(c *gin.Context)
- func GetArticleById(c *gin.Context)
- func Login(c *gin.Context)
- func TestController(c *gin.Context)
- func TestSearchService(c *gin.Context)
- func UpdateArticle(c *gin.Context)
- type ArticleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArticle ¶
CreateArticle is the controller to handle the creation of an article
func CreateCustomer ¶
CreateCustomer is the controller to create a new customer
func DeleteArticleById ¶
func GetArticleById ¶
func Login ¶
Login takes customer email and password a json params and returns a token or an error depending on the credentials given.
func TestController ¶
func TestSearchService ¶
Types ¶
type ArticleResponse ¶
type ArticleResponse struct { Article interface{} LastIndex int }
Click to show internal directories.
Click to hide internal directories.