controllers

package
v0.0.0-...-924408c Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BankForm

func BankForm(c *gin.Context)

func BoatForm

func BoatForm(c *gin.Context)

func ConvertStrSliceToIntSlice

func ConvertStrSliceToIntSlice(slc []string) []int

func CreateBank

func CreateBank(c *gin.Context)

нужно добавить валидацию

func CreateBoat

func CreateBoat(c *gin.Context)

func CreateEmployee

func CreateEmployee(c *gin.Context)

func CreateFish

func CreateFish(c *gin.Context)

func CreateTrip

func CreateTrip(c *gin.Context)

func DeleteBank

func DeleteBank(c *gin.Context)

func DeleteBoat

func DeleteBoat(c *gin.Context)

func DeleteEmployee

func DeleteEmployee(c *gin.Context)

func DeleteFish

func DeleteFish(c *gin.Context)

func EmployeeForm

func EmployeeForm(c *gin.Context)

func EndTrip

func EndTrip(c *gin.Context)

func EndTripForm

func EndTripForm(c *gin.Context)

func FishForm

func FishForm(c *gin.Context)

func GetBank

func GetBank(c *gin.Context)

func GetBanks

func GetBanks(c *gin.Context)

func GetBoat

func GetBoat(c *gin.Context)

func GetBoats

func GetBoats(c *gin.Context)

func GetEmployee

func GetEmployee(c *gin.Context)

func GetEmployees

func GetEmployees(c *gin.Context)

func GetEmployeesForTrip

func GetEmployeesForTrip(c *gin.Context, trip *models.Trip, empIntIDs []int)

func GetFishTypes

func GetFishTypes(c *gin.Context, trip *models.Trip, ids []int)

func GetFishes

func GetFishes(c *gin.Context)

func GetFormFishTypes

func GetFormFishTypes(c *gin.Context) []models.FishType

func GetFormSeaBanks

func GetFormSeaBanks(c *gin.Context) []models.SeaBank

func GetFreeBoats

func GetFreeBoats(c *gin.Context) []models.Boat

func GetFreeEmployees

func GetFreeEmployees(c *gin.Context) []models.Employee

func GetSeaBanks

func GetSeaBanks(c *gin.Context, trip *models.Trip, ids []int)

func GetTrip

func GetTrip(c *gin.Context)

func GetTrips

func GetTrips(c *gin.Context)

func Index

func Index(c *gin.Context)

func Login

func Login(c *gin.Context)

func LoginForm

func LoginForm(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func Register

func Register(c *gin.Context)

func RegisterForm

func RegisterForm(c *gin.Context)

func TripForm

func TripForm(c *gin.Context)

func UpdateBoat

func UpdateBoat(c *gin.Context)

func UpdateBoatForm

func UpdateBoatForm(c *gin.Context)

func UpdateEmployee

func UpdateEmployee(c *gin.Context)

func UpdateEmployeeForm

func UpdateEmployeeForm(c *gin.Context)

Types

type Credentials

type Credentials struct {
	Username string `form:"username"`
	Password string `form:"password"`
}

type RegisterCred

type RegisterCred struct {
	Username     string `form:"username"`
	Password     string `form:"password"`
	ConfPassword string `form:"conf-password"`
	Role         int    `form:"role"`
}

Jump to

Keyboard shortcuts

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