feat: update project order types
This commit is contained in:
@@ -309,7 +309,7 @@ go run github.com/swaggo/swag/cmd/swag@v1.16.6 init -g main.go
|
|||||||
| DELETE | `/api/project-orders/:serialNumber` | 删除项目工单 | 是 | 管理员 |
|
| DELETE | `/api/project-orders/:serialNumber` | 删除项目工单 | 是 | 管理员 |
|
||||||
|
|
||||||
**项目工单特点**:
|
**项目工单特点**:
|
||||||
- 用于现场勘查、现场实施等项目任务
|
- 用于项目勘察、工程实施、定期维保、商务合作等项目任务
|
||||||
- 工单号格式: `zjbf-xm-YYMMDDNN`
|
- 工单号格式: `zjbf-xm-YYMMDDNN`
|
||||||
- 现场图片最多 18 张
|
- 现场图片最多 18 张
|
||||||
- 仅需要工程师签名,无客户签字环节
|
- 仅需要工程师签名,无客户签字环节
|
||||||
|
|||||||
@@ -2352,6 +2352,7 @@ const docTemplate = `{
|
|||||||
"survey",
|
"survey",
|
||||||
"implementation",
|
"implementation",
|
||||||
"maintenance",
|
"maintenance",
|
||||||
|
"business",
|
||||||
"other"
|
"other"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -2743,6 +2744,7 @@ const docTemplate = `{
|
|||||||
"survey",
|
"survey",
|
||||||
"implementation",
|
"implementation",
|
||||||
"maintenance",
|
"maintenance",
|
||||||
|
"business",
|
||||||
"other"
|
"other"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2346,6 +2346,7 @@
|
|||||||
"survey",
|
"survey",
|
||||||
"implementation",
|
"implementation",
|
||||||
"maintenance",
|
"maintenance",
|
||||||
|
"business",
|
||||||
"other"
|
"other"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -2737,6 +2738,7 @@
|
|||||||
"survey",
|
"survey",
|
||||||
"implementation",
|
"implementation",
|
||||||
"maintenance",
|
"maintenance",
|
||||||
|
"business",
|
||||||
"other"
|
"other"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ definitions:
|
|||||||
- survey
|
- survey
|
||||||
- implementation
|
- implementation
|
||||||
- maintenance
|
- maintenance
|
||||||
|
- business
|
||||||
- other
|
- other
|
||||||
type: string
|
type: string
|
||||||
siteDescription:
|
siteDescription:
|
||||||
@@ -348,6 +349,7 @@ definitions:
|
|||||||
- survey
|
- survey
|
||||||
- implementation
|
- implementation
|
||||||
- maintenance
|
- maintenance
|
||||||
|
- business
|
||||||
- other
|
- other
|
||||||
type: string
|
type: string
|
||||||
siteDescription:
|
siteDescription:
|
||||||
|
|||||||
+2
-2
@@ -401,7 +401,7 @@ type CreateProjectOrderDTO struct {
|
|||||||
CompanyAddress string `json:"companyAddress" validate:"required"`
|
CompanyAddress string `json:"companyAddress" validate:"required"`
|
||||||
ContactName string `json:"contactName" validate:"required"`
|
ContactName string `json:"contactName" validate:"required"`
|
||||||
ContactPhone string `json:"contactPhone" validate:"required,len=11"`
|
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"`
|
SiteDescription string `json:"siteDescription" validate:"required"`
|
||||||
TechnicianID *uint `json:"technicianId,omitempty"`
|
TechnicianID *uint `json:"technicianId,omitempty"`
|
||||||
}
|
}
|
||||||
@@ -411,7 +411,7 @@ type UpdateProjectOrderDTO struct {
|
|||||||
CompanyAddress string `json:"companyAddress,omitempty"`
|
CompanyAddress string `json:"companyAddress,omitempty"`
|
||||||
ContactName string `json:"contactName,omitempty"`
|
ContactName string `json:"contactName,omitempty"`
|
||||||
ContactPhone string `json:"contactPhone,omitempty" validate:"omitempty,len=11"`
|
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"`
|
SiteDescription string `json:"siteDescription,omitempty"`
|
||||||
CompletionNote string `json:"completionNote,omitempty"`
|
CompletionNote string `json:"completionNote,omitempty"`
|
||||||
TechnicianID *uint `json:"technicianId,omitempty"`
|
TechnicianID *uint `json:"technicianId,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user