From 7438f17c0b3a9f79ee5890c554bedc64c362859b Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 13 十月 2023 14:04:59 +0800 Subject: [PATCH] 销售计划简单数据权限 --- model/request/serviceContract.go | 41 +++++++++++++++++++++++------------------ 1 files changed, 23 insertions(+), 18 deletions(-) diff --git a/model/request/serviceContract.go b/model/request/serviceContract.go index b927a21..dddcfd5 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,24 @@ } 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"` } type UpdateServiceContract struct { @@ -34,9 +37,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