employees

package
v0.0.0-...-9b8362b Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllEmployees

func GetAllEmployees(w http.ResponseWriter, r *http.Request)

func GetEmployeeByID

func GetEmployeeByID(w http.ResponseWriter, r *http.Request)

func GetEmployeesByFarmID

func GetEmployeesByFarmID(w http.ResponseWriter, r *http.Request)

Types

type Employee

type Employee struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Surname string `json:"surname"`
	Role    string `json:"role"`
	Phone   string `json:"phone"`
	Email   string `json:"email"`
}

Jump to

Keyboard shortcuts

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