From 9a7e0a7da01a9f9625ceaca0c61a59c540c6438f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 18 八月 2023 17:32:10 +0800 Subject: [PATCH] fix --- 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 b927a21..5e179a5 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,22 +10,22 @@ } 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"` } type UpdateServiceContract struct { @@ -34,9 +35,11 @@ type GetServiceContractList struct { PageInfo - Keyword string `json:"keyword"` + QueryClass constvar.ServiceContractQueryClass `json:"queryClass"` + KeywordType constvar.ServiceContractKeywordType `json:"keywordType"` + Keyword string `json:"keyword"` } -type DeleteserviceContract struct { +type DeleteServiceContract struct { Ids []int `json:"ids"` } -- Gitblit v1.8.0