From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

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

diff --git a/model/request/serviceContract.go b/model/request/serviceContract.go
index 2334df5..f3cb2fe 100644
--- a/model/request/serviceContract.go
+++ b/model/request/serviceContract.go
@@ -1,6 +1,7 @@
 package request
 
 import (
+	"aps_crm/constvar"
 	"aps_crm/model"
 )
 
@@ -9,25 +10,43 @@
 }
 
 type ServiceContract struct {
-	ClientId     int             `json:"clientId"`
-	Number       string          `json:"number"`
-	MemberId     int             `json:"memberId"`
-	ContactId    int             `json:"contactId"`
-	SaleChanceId int             `json:"saleChanceId"`
-	ContractId   int             `json:"contractId"`
-	QuotationId  int             `json:"quotationId"`
-	TypeId       int             `json:"typeId"`
-	SignTime     string          `json:"signTime"`
-	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"`
+	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"`
+	CodeStandID             string           `json:"codeStandID"` //缂栫爜id
 }
 
 type UpdateServiceContract struct {
 	Id int `json:"id"`
 	ServiceContract
 }
+
+type GetServiceContractList struct {
+	PageInfo
+	QueryClass     constvar.ServiceContractQueryClass  `json:"queryClass"`
+	KeywordType    constvar.ServiceContractKeywordType `json:"keywordType"`
+	Keyword        string                              `json:"keyword"`
+	SalesDetailsId int                                 `json:"salesDetailsId"` //鍚堝悓璁㈠崟id
+	QuotationId    int                                 `json:"quotationId"`    //鎶ヤ环鍗昳d
+	SaleChanceId   int                                 `json:"saleChanceId"`   //閿�鍞満浼歩d
+	ContactId      int                                 `json:"contactId"`      //鑱旂郴浜篿d
+}
+
+type DeleteServiceContract struct {
+	Ids []int `json:"ids"`
+}

--
Gitblit v1.8.0