feat: update aftersales service types and serial format
This commit is contained in:
+2
-2
@@ -272,7 +272,7 @@ type CreateAftersalesOrderDTO struct {
|
||||
CompanyAddress string `json:"companyAddress" validate:"required"`
|
||||
ContactName string `json:"contactName" validate:"required"`
|
||||
ContactPhone string `json:"contactPhone" validate:"required,len=11"`
|
||||
ServiceType string `json:"serviceType" validate:"required,oneof=software hardware other"`
|
||||
ServiceType string `json:"serviceType" validate:"required,oneof=software hardware maintenance"`
|
||||
IssueDescription string `json:"issueDescription" validate:"required"`
|
||||
TechnicianID *uint `json:"technicianId,omitempty"`
|
||||
}
|
||||
@@ -282,7 +282,7 @@ type UpdateAftersalesOrderDTO struct {
|
||||
CompanyAddress string `json:"companyAddress,omitempty"`
|
||||
ContactName string `json:"contactName,omitempty"`
|
||||
ContactPhone string `json:"contactPhone,omitempty" validate:"omitempty,len=11"`
|
||||
ServiceType string `json:"serviceType,omitempty" validate:"omitempty,oneof=software hardware other"`
|
||||
ServiceType string `json:"serviceType,omitempty" validate:"omitempty,oneof=software hardware maintenance"`
|
||||
IssueDescription string `json:"issueDescription,omitempty"`
|
||||
ResolutionNote string `json:"resolutionNote,omitempty"`
|
||||
TechnicianID *uint `json:"technicianId,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user