From 34ef7217a034599217a7fdd1e28e1ae6910e1b4b Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 11 十月 2023 20:15:21 +0800
Subject: [PATCH] 菜单获取编码规则

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

diff --git a/model/request/serviceContract.go b/model/request/serviceContract.go
index dddcfd5..422983d 100644
--- a/model/request/serviceContract.go
+++ b/model/request/serviceContract.go
@@ -3,6 +3,7 @@
 import (
 	"aps_crm/constvar"
 	"aps_crm/model"
+	"aps_crm/proto/code"
 )
 
 type AddServiceContract struct {
@@ -10,24 +11,26 @@
 }
 
 type ServiceContract struct {
-	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"`
+	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
+	CodeRule                code.CodeStandard `json:"codeRule"`
 }
 
 type UpdateServiceContract struct {

--
Gitblit v1.8.0