33 lines
1.3 KiB
Go
33 lines
1.3 KiB
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type CreateCompanyRequest struct {
|
|
Name string `json:"name"`
|
|
CompanyName string `json:"companyName"` // Alternative field name
|
|
Document string `json:"document"`
|
|
Contact string `json:"contact"`
|
|
AdminEmail string `json:"admin_email"`
|
|
Email string `json:"email"` // Alternative field name
|
|
Password string `json:"password"`
|
|
Phone string `json:"phone"`
|
|
Website *string `json:"website,omitempty"`
|
|
Address *string `json:"address,omitempty"`
|
|
City *string `json:"city,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
ZipCode *string `json:"zip_code,omitempty"`
|
|
EmployeeCount *string `json:"employeeCount,omitempty"`
|
|
FoundedYear *int `json:"foundedYear,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
YearsInMarket *string `json:"years_in_market,omitempty"`
|
|
BirthDate *string `json:"birth_date,omitempty"`
|
|
AdminBirthDate *string `json:"admin_birth_date,omitempty"`
|
|
}
|
|
|
|
type CompanyResponse struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
Token string `json:"token,omitempty"` // JWT token for auth
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|