requests

package
v0.0.0-...-1de268a Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompanyPayload

type CompanyPayload struct {
	Name    string `json:"name" shema:"name" validate:"required,gt=0,max=255"`
	Code    string `json:"code" shema:"code" validate:"required,gt=0,max=255"`
	Country string `json:"country" shema:"country" validate:"required,iso3166_1_alpha2"`
	Website string `json:"website" shema:"website" validate:"required,fqdn"`
	Phone   string `json:"phone" shema:"phone" validate:"required,e164"`
}

CompanyPayload is a data structure used to decode incoming company data.

func (*CompanyPayload) ToCompany

func (c *CompanyPayload) ToCompany() models.Company

ToCompany creates a new Company from the CompanyPayload.

Jump to

Keyboard shortcuts

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