services

package
v0.0.0-...-7550142 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTrips

func GetTrips(c *gin.Context, id string)

GetTrips get all trips or trip by user id

func LoginService

func LoginService(c *gin.Context, payload models.LoginPayload)

LoginService log the user and return token and user payload

func NewTrip

func NewTrip(c *gin.Context, payload models.Trip)

NewTrip create a new trip

func RegisterService

func RegisterService(c *gin.Context, payload models.RegisterPayload)

RegisterService register a user

func RemoveUser

func RemoveUser(c *gin.Context, user models.BindingUser)

RemoveUser remove a user

Types

This section is empty.

Jump to

Keyboard shortcuts

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