feat: update aftersales service types and serial format

This commit is contained in:
Frudrax Cheng
2026-05-28 09:12:01 +08:00
parent 6a48b0624f
commit da02be0a4f
3 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -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"`