From 283a54070553e81a2e73d4b8b9ea1d717c2f512e Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 15 三月 2024 10:08:59 +0800
Subject: [PATCH] 补充
---
model/request/saleChance.go | 75 ++++++++++++++++++++++---------------
1 files changed, 45 insertions(+), 30 deletions(-)
diff --git a/model/request/saleChance.go b/model/request/saleChance.go
index 7d5c4f1..05c8aa6 100644
--- a/model/request/saleChance.go
+++ b/model/request/saleChance.go
@@ -1,39 +1,45 @@
package request
+import (
+ "aps_crm/model"
+)
+
type AddSaleChance struct {
SaleChance
}
type SaleChance struct {
- Name string `json:"name"`
- ClientId int `json:"client_id"`
- Number string `json:"number"`
- ContactId int `json:"contact_id"`
- SalesSourcesId int `json:"sales_sources_id"`
- SaleTypeId int `json:"sale_type_id"`
- SaleStageId int `json:"sale_stage_id"`
- MemberId int `json:"member_id"`
- RegularCustomersId int `json:"regular_customers_id"`
- Competitors string `json:"competitors"`
- Possibilities int `json:"possibilities"`
- Budget float64 `json:"budget"`
- ProjectedAmount float64 `json:"projected_amount"`
- Currency int `json:"currency"`
- ExpectedTime string `json:"expected_time"`
- StatusId int `json:"status_id"`
- PainPoints string `json:"pain_points"`
- WhetherEstablished string `json:"whether_established"`
- CapitalBudget string `json:"capital_budget"`
- KeyMaker string `json:"key_maker"`
- KeyFactors string `json:"key_factors"`
- Process string `json:"process"`
- Solutions string `json:"solutions"`
- Advantages string `json:"advantages"`
- Disadvantages string `json:"disadvantages"`
- Opportunities string `json:"opportunities"`
- Threats string `json:"threats"`
- Remark string `json:"remark"`
- DetailAddress string `json:"detail_address"`
+ Name string `json:"name"`
+ ClientId int `json:"client_id"`
+ Number string `json:"number"`
+ ContactId int `json:"contact_id"`
+ SalesSourcesId int `json:"sales_sources_id"`
+ SaleTypeId int `json:"sale_type_id"`
+ SaleStageId int `json:"sale_stage_id"`
+ MemberId int `json:"member_id"`
+ RegularCustomersId int `json:"regular_customers_id"`
+ Competitors string `json:"competitors"`
+ Possibilities int `json:"possibilities"`
+ Budget float64 `json:"budget"`
+ ProjectedAmount float64 `json:"projected_amount"`
+ Currency int `json:"currency"`
+ ExpectedTime string `json:"expected_time"`
+ StatusId int `json:"status_id"`
+ PainPoints string `json:"pain_points"`
+ WhetherEstablished string `json:"whether_established"`
+ CapitalBudget string `json:"capital_budget"`
+ KeyMaker string `json:"key_maker"`
+ KeyFactors string `json:"key_factors"`
+ Process string `json:"process"`
+ Solutions string `json:"solutions"`
+ Advantages string `json:"advantages"`
+ Disadvantages string `json:"disadvantages"`
+ Opportunities string `json:"opportunities"`
+ Threats string `json:"threats"`
+ Remark string `json:"remark"`
+ DetailAddress string `json:"detail_address"`
+ CodeStandID string `json:"codeStandID"` //缂栫爜id
+ Products []*model.Product `json:"products" gorm:"many2many:SaleChance_Product;"`
Address
}
@@ -44,5 +50,14 @@
type GetSaleChanceList struct {
PageInfo
- Keyword string `json:"keyword"`
+ SearchMap map[string]interface{} `json:"search_map"` // 鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"}; {"name": "鏈轰細鍚嶇О", "client_name": "瀹㈡埛鍚嶇О","number":"缂栧彿", "contact_name":"鑱旂郴浜哄鍚�", "member_name": "閿�鍞礋璐d汉", "status": "鐘舵��", "sale_stage": "闃舵", "possibilities": "鍙兘鎬�", "expected_time": "棰勮鎴愪氦鏃堕棿", "budget": "璧勯噾缁濆鍊�", "projected_amount": "棰勮鍚堝悓閲戦"}
+}
+
+type PushSaleChance struct {
+ Id int `json:"id" binding:"required"`
+ Step int `json:"step" binding:"required"`
+}
+
+type DeleteSaleChance struct {
+ Ids []int `json:"ids"`
}
--
Gitblit v1.8.0