From c5a0eb549cba2cd358a2d0496c44f3a289f15d9c Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 28 八月 2023 14:22:06 +0800
Subject: [PATCH] fix

---
 model/request/serviceContract.go |   34 ++++++++++++++++++----------------
 1 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/model/request/serviceContract.go b/model/request/serviceContract.go
index 1ab30c4..dddcfd5 100644
--- a/model/request/serviceContract.go
+++ b/model/request/serviceContract.go
@@ -10,22 +10,24 @@
 }
 
 type ServiceContract struct {
-	ClientId       int             `json:"clientId"`
-	Number         string          `json:"number"`
-	MemberId       int             `json:"memberId"`
-	ContactId      int             `json:"contactId"`
-	SaleChanceId   int             `json:"saleChanceId"`
-	SalesDetailsId int             `json:"salesDetailsId"`
-	QuotationId    int             `json:"quotationId"`
-	TypeId         int             `json:"typeId"`
-	SignTime       string          `json:"signTime" binding:"datetime=2006-01-02"`
-	StartTime      string          `json:"startTime" binding:"datetime=2006-01-02"`
-	EndTime        string          `json:"endTime" binding:"datetime=2006-01-02"`
-	StatusId       int             `json:"statusId"`
-	ServiceTimes   int             `json:"serviceTimes"`
-	Terms          string          `json:"terms"`
-	Remark         string          `json:"remark"`
-	Products       []model.Product `json:"products"`
+	ClientId                int              `json:"clientId"`
+	Number                  string           `json:"number"`
+	MemberId                int              `json:"memberId" binding:"required"`
+	ContactId               int              `json:"contactId"`
+	SaleChanceId            int              `json:"saleChanceId"`
+	SalesDetailsId          int              `json:"salesDetailsId"`
+	QuotationId             int              `json:"quotationId"`
+	TypeId                  int              `json:"typeId"`
+	SignTime                string           `json:"signTime" binding:"datetime=2006-01-02"`
+	StartTime               string           `json:"startTime"`
+	EndTime                 string           `json:"endTime"`
+	StatusId                int              `json:"statusId"`
+	ServiceTimes            int              `json:"serviceTimes"`
+	Terms                   string           `json:"terms"`
+	Remark                  string           `json:"remark"`
+	Products                []*model.Product `json:"products"`
+	ServiceContractTypeId   int              `json:"serviceContractTypeId"`
+	ServiceContractStatusId int              `json:"serviceContractStatusId"`
 }
 
 type UpdateServiceContract struct {

--
Gitblit v1.8.0