model

package
v0.0.0-...-0d2555d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEmployeeParams

type CreateEmployeeParams struct {
	FirstName    string `json:"FirstName"`
	LastName     string `json:"LastName"`
	Username     string `json:"Username"`
	Email        string `json:"Email"`
	Password     string `json:"Password"`
	Dob          string `json:"DOB"`
	DepartmentID string `json:"DepartmentID"`
	Position     string `json:"Position"`
}

type Department

type Department struct {
	DepartmentID string `json:"DepartmentID"`
	Name         string `json:"Name"`
}

type Employee

type Employee struct {
	EmployeeID   string `json:"EmployeeID"`
	FirstName    string `json:"FirstName"`
	LastName     string `json:"LastName"`
	Username     string `json:"Username"`
	Email        string `json:"Email"`
	Dob          string `json:"DOB"`
	DepartmentID string `json:"DepartmentID"`
	Position     string `json:"Position"`
}

type Response

type Response struct {
	Status int    `json:"Status"`
	Msg    string `json:"Msg"`
}

type UpdateEmployeeParams

type UpdateEmployeeParams struct {
	EmployeeID   string  `json:"EmployeeID"`
	FirstName    *string `json:"FirstName,omitempty"`
	LastName     *string `json:"LastName,omitempty"`
	Username     *string `json:"Username,omitempty"`
	Dob          *string `json:"DOB,omitempty"`
	DepartmentID *string `json:"DepartmentID,omitempty"`
	Position     *string `json:"Position,omitempty"`
}

Jump to

Keyboard shortcuts

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