feat: update project order types
This commit is contained in:
+2
-2
@@ -401,7 +401,7 @@ type CreateProjectOrderDTO struct {
|
||||
CompanyAddress string `json:"companyAddress" validate:"required"`
|
||||
ContactName string `json:"contactName" validate:"required"`
|
||||
ContactPhone string `json:"contactPhone" validate:"required,len=11"`
|
||||
ProjectType string `json:"projectType" validate:"required,oneof=survey implementation maintenance other"`
|
||||
ProjectType string `json:"projectType" validate:"required,oneof=survey implementation maintenance business other"`
|
||||
SiteDescription string `json:"siteDescription" validate:"required"`
|
||||
TechnicianID *uint `json:"technicianId,omitempty"`
|
||||
}
|
||||
@@ -411,7 +411,7 @@ type UpdateProjectOrderDTO struct {
|
||||
CompanyAddress string `json:"companyAddress,omitempty"`
|
||||
ContactName string `json:"contactName,omitempty"`
|
||||
ContactPhone string `json:"contactPhone,omitempty" validate:"omitempty,len=11"`
|
||||
ProjectType string `json:"projectType,omitempty" validate:"omitempty,oneof=survey implementation maintenance other"`
|
||||
ProjectType string `json:"projectType,omitempty" validate:"omitempty,oneof=survey implementation maintenance business other"`
|
||||
SiteDescription string `json:"siteDescription,omitempty"`
|
||||
CompletionNote string `json:"completionNote,omitempty"`
|
||||
TechnicianID *uint `json:"technicianId,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user