|
@@ -19,8 +19,8 @@ type ContractRegister struct {
|
|
ProductIds string `gorm:"column:product_ids" json:"product_ids" description:"产品ID:1-FICC; 2-权益, 如果两者都有,则用英文逗号拼接"`
|
|
ProductIds string `gorm:"column:product_ids" json:"product_ids" description:"产品ID:1-FICC; 2-权益, 如果两者都有,则用英文逗号拼接"`
|
|
SellerId int `gorm:"column:seller_id" json:"seller_id" description:"CRM系统-销售ID"`
|
|
SellerId int `gorm:"column:seller_id" json:"seller_id" description:"CRM系统-销售ID"`
|
|
SellerName string `gorm:"column:seller_name" json:"seller_name" description:"CRM系统-销售名称"`
|
|
SellerName string `gorm:"column:seller_name" json:"seller_name" description:"CRM系统-销售名称"`
|
|
- RaiSellerId int `gorm:"column:rai_seller_id" json:"rai_seller_id" binding:"required" description:"CRM系统-权益销售ID"`
|
|
|
|
- RaiSellerName string `gorm:"column:rai_seller_name" json:"rai_seller_name" binding:"required" description:"CRM系统-权益销售名称"`
|
|
|
|
|
|
+ RaiSellerId int `gorm:"column:rai_seller_id" json:"rai_seller_id" description:"CRM系统-权益销售ID"`
|
|
|
|
+ RaiSellerName string `gorm:"column:rai_seller_name" json:"rai_seller_name" description:"CRM系统-权益销售名称"`
|
|
ContractType int `gorm:"column:contract_type" json:"contract_type" description:"合同类型: 1-新签; 2-续约; 3-代付; 4-补充协议"`
|
|
ContractType int `gorm:"column:contract_type" json:"contract_type" description:"合同类型: 1-新签; 2-续约; 3-代付; 4-补充协议"`
|
|
ContractAmount float64 `gorm:"column:contract_amount" json:"contract_amount" description:"合同金额"`
|
|
ContractAmount float64 `gorm:"column:contract_amount" json:"contract_amount" description:"合同金额"`
|
|
InvoicedAmount float64 `gorm:"column:invoiced_amount" json:"invoiced_amount" description:"开票金额"`
|
|
InvoicedAmount float64 `gorm:"column:invoiced_amount" json:"invoiced_amount" description:"开票金额"`
|
|
@@ -115,8 +115,11 @@ type ContractRegisterItem struct {
|
|
ContractSource int `json:"contract_source" description:"合同来源: 0-非系统合同导入; 1-CRM合同导入"`
|
|
ContractSource int `json:"contract_source" description:"合同来源: 0-非系统合同导入; 1-CRM合同导入"`
|
|
CompanyName string `json:"company_name" description:"客户名称"`
|
|
CompanyName string `json:"company_name" description:"客户名称"`
|
|
ActualCompanyName string `json:"actual_company_name" description:"实际使用方"`
|
|
ActualCompanyName string `json:"actual_company_name" description:"实际使用方"`
|
|
|
|
+ ProductIds string `json:"product_ids" description:"产品ID:1-FICC; 2-权益, 如果两者都有,则用英文逗号拼接"`
|
|
SellerId int `json:"seller_id" description:"CRM系统-销售ID"`
|
|
SellerId int `json:"seller_id" description:"CRM系统-销售ID"`
|
|
SellerName string `json:"seller_name" description:"CRM系统-销售名称"`
|
|
SellerName string `json:"seller_name" description:"CRM系统-销售名称"`
|
|
|
|
+ RaiSellerId int `json:"rai_seller_id" description:"CRM系统-权益销售ID"`
|
|
|
|
+ RaiSellerName string `json:"rai_seller_name" description:"CRM系统-权益销售名称"`
|
|
ContractType int `json:"contract_type" description:"合同类型: 1-新签; 2-续约"`
|
|
ContractType int `json:"contract_type" description:"合同类型: 1-新签; 2-续约"`
|
|
ContractAmount float64 `json:"contract_amount" description:"合同金额"`
|
|
ContractAmount float64 `json:"contract_amount" description:"合同金额"`
|
|
InvoicedAmount float64 `json:"invoiced_amount" description:"开票金额"`
|
|
InvoicedAmount float64 `json:"invoiced_amount" description:"开票金额"`
|
|
@@ -163,10 +166,10 @@ type ContractRegisterAddReq struct {
|
|
ContractSource int `json:"contract_source" binding:"oneof=0 1" description:"合同来源: 0-非系统合同导入; 1-CRM合同导入"`
|
|
ContractSource int `json:"contract_source" binding:"oneof=0 1" description:"合同来源: 0-非系统合同导入; 1-CRM合同导入"`
|
|
CompanyName string `json:"company_name" binding:"required" description:"客户名称"`
|
|
CompanyName string `json:"company_name" binding:"required" description:"客户名称"`
|
|
ActualCompanyName string `json:"actual_company_name" description:"实际使用方"`
|
|
ActualCompanyName string `json:"actual_company_name" description:"实际使用方"`
|
|
- SellerId int `json:"seller_id" binding:"required" description:"CRM系统-销售ID"`
|
|
|
|
- SellerName string `json:"seller_name" binding:"required" description:"CRM系统-销售名称"`
|
|
|
|
- RaiSellerId int `json:"rai_seller_id" binding:"required" description:"CRM系统-权益销售ID"`
|
|
|
|
- RaiSellerName string `json:"rai_seller_name" binding:"required" description:"CRM系统-权益销售名称"`
|
|
|
|
|
|
+ SellerId int `json:"seller_id" description:"CRM系统-销售ID"`
|
|
|
|
+ SellerName string `json:"seller_name" description:"CRM系统-销售名称"`
|
|
|
|
+ RaiSellerId int `json:"rai_seller_id" description:"CRM系统-权益销售ID"`
|
|
|
|
+ RaiSellerName string `json:"rai_seller_name" description:"CRM系统-权益销售名称"`
|
|
ContractType int `json:"contract_type" binding:"oneof=1 2 3 4" description:"合同类型: 1-新签; 2-续约; 3-代付; 4-补充协议"`
|
|
ContractType int `json:"contract_type" binding:"oneof=1 2 3 4" description:"合同类型: 1-新签; 2-续约; 3-代付; 4-补充协议"`
|
|
ContractAmount float64 `json:"contract_amount" binding:"required" description:"合同金额"`
|
|
ContractAmount float64 `json:"contract_amount" binding:"required" description:"合同金额"`
|
|
CurrencyUnit string `json:"currency_unit" binding:"required" description:"货币单位"`
|
|
CurrencyUnit string `json:"currency_unit" binding:"required" description:"货币单位"`
|
|
@@ -346,10 +349,11 @@ type ContractRegisterDetailReq struct {
|
|
// ContractRegisterDetail-合同登记详情
|
|
// ContractRegisterDetail-合同登记详情
|
|
type ContractRegisterDetail struct {
|
|
type ContractRegisterDetail struct {
|
|
*ContractRegisterItem
|
|
*ContractRegisterItem
|
|
- ServiceList []*ContractServiceAndDetail `json:"service_list" description:"合同服务及详情"`
|
|
|
|
- InvoiceList []*ContractInvoiceItem `json:"invoice_list" description:"开票信息"`
|
|
|
|
- PaymentList []*ContractInvoiceItem `json:"payment_list" description:"到款信息"`
|
|
|
|
- Logs []*ContractRegisterLogItem `json:"logs" description:"登记日志"`
|
|
|
|
|
|
+ ServiceList []*ContractServiceAndDetail `json:"service_list" description:"合同服务及详情"`
|
|
|
|
+ InvoiceList []*ContractInvoiceItem `json:"invoice_list" description:"开票信息"`
|
|
|
|
+ PaymentList []*ContractInvoiceItem `json:"payment_list" description:"到款信息"`
|
|
|
|
+ Logs []*ContractRegisterLogItem `json:"logs" description:"登记日志"`
|
|
|
|
+ ServiceAmountList []*ContractServiceAmountItem `json:"service_amount_list" description:"合同套餐金额"`
|
|
}
|
|
}
|
|
|
|
|
|
// GetContractRegisterItemById 获取合同登记信息
|
|
// GetContractRegisterItemById 获取合同登记信息
|
|
@@ -395,8 +399,11 @@ func formatContractRegister2Item(item *ContractRegister) (formatItem *ContractRe
|
|
formatItem.ContractSource = item.ContractSource
|
|
formatItem.ContractSource = item.ContractSource
|
|
formatItem.CompanyName = item.CompanyName
|
|
formatItem.CompanyName = item.CompanyName
|
|
formatItem.ActualCompanyName = item.ActualCompanyName
|
|
formatItem.ActualCompanyName = item.ActualCompanyName
|
|
|
|
+ formatItem.ProductIds = item.ProductIds
|
|
formatItem.SellerId = item.SellerId
|
|
formatItem.SellerId = item.SellerId
|
|
formatItem.SellerName = item.SellerName
|
|
formatItem.SellerName = item.SellerName
|
|
|
|
+ formatItem.RaiSellerId = item.RaiSellerId
|
|
|
|
+ formatItem.RaiSellerName = item.RaiSellerName
|
|
formatItem.ContractType = item.ContractType
|
|
formatItem.ContractType = item.ContractType
|
|
formatItem.ContractAmount = item.ContractAmount
|
|
formatItem.ContractAmount = item.ContractAmount
|
|
formatItem.InvoicedAmount = item.InvoicedAmount
|
|
formatItem.InvoicedAmount = item.InvoicedAmount
|