gohorsejobs/backend/internal/core/dto/company.go
Tiago Yamamoto 249081554d feat: add company profile fields
Backend:
- Created migration 031 for employee_count and founded_year
- Updated Company model with EmployeeCount and FoundedYear
- Updated core DTO with website, employeeCount, foundedYear, description

Frontend:
- Added website input field to company form
- Added employee count dropdown (1-10, 11-50, etc.)
- Added founded year input
- Added 'About Company' rich text editor
- Updated API payload to send new fields
2025-12-26 15:48:13 -03:00

26 lines
901 B
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"`
EmployeeCount *string `json:"employeeCount,omitempty"`
FoundedYear *int `json:"foundedYear,omitempty"`
Description *string `json:"description,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"`
}