diff --git a/README.md b/README.md index 00a19a0..2621b40 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,7 @@ go run github.com/swaggo/swag/cmd/swag@v1.16.6 init -g main.go | DELETE | `/api/project-orders/:serialNumber` | 删除项目工单 | 是 | 管理员 | **项目工单特点**: -- 用于现场勘查、现场实施等项目任务 +- 用于项目勘察、工程实施、定期维保、商务合作等项目任务 - 工单号格式: `zjbf-xm-YYMMDDNN` - 现场图片最多 18 张 - 仅需要工程师签名,无客户签字环节 diff --git a/docs/docs.go b/docs/docs.go index 2f98681..96b111d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2352,6 +2352,7 @@ const docTemplate = `{ "survey", "implementation", "maintenance", + "business", "other" ] }, @@ -2743,6 +2744,7 @@ const docTemplate = `{ "survey", "implementation", "maintenance", + "business", "other" ] }, diff --git a/docs/swagger.json b/docs/swagger.json index cb718d6..cf31759 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2346,6 +2346,7 @@ "survey", "implementation", "maintenance", + "business", "other" ] }, @@ -2737,6 +2738,7 @@ "survey", "implementation", "maintenance", + "business", "other" ] }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index ef220c0..1841f34 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -80,6 +80,7 @@ definitions: - survey - implementation - maintenance + - business - other type: string siteDescription: @@ -348,6 +349,7 @@ definitions: - survey - implementation - maintenance + - business - other type: string siteDescription: diff --git a/models/models.go b/models/models.go index f142142..800eef0 100644 --- a/models/models.go +++ b/models/models.go @@ -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"`