dto

package
v0.0.0-...-37a348f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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 Company

type Company struct {
	Id            string `json:"id" binding:"id"`
	Name          string `json:"name" binding:"required"`
	Description   string `json:"description" binding:"description"`
	EmployeeCount int    `json:"employeeCount" binding:"required,employee_count"`
	Registered    bool   `json:"registered" binding:"required,registered"`
	Type          string `json:"type" binding:"required,type"`
}

type CreateCompanyRequest

type CreateCompanyRequest struct {
	Name          string `json:"name" binding:"required,min=3,max=15"`
	Description   string `json:"description" binding:"max=3000"`
	EmployeeCount int    `json:"employeeCount" binding:"required,gte=1"`
	Registered    bool   `json:"registered" binding:"required"`
	Type          string `json:"type" binding:"required,oneof=Corporations NonProfit Cooperative Sole\\ Proprietorship"`
}

type UpdateCompanyRequest

type UpdateCompanyRequest struct {
	Name          string `json:"name" binding:"min=3,max=15"`
	Description   string `json:"description" binding:"max=3000"`
	EmployeeCount int    `json:"employeeCount" binding:"gte=1"`
	Registered    bool   `json:"registered"`
	Type          string `json:"type" binding:"oneof=Corporations NonProfit Cooperative Sole\\ Proprietorship"`
}

Jump to

Keyboard shortcuts

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