|
|
@@ -24,21 +24,30 @@ type ProjBusinessSearchReq struct {
|
|
|
}
|
|
|
|
|
|
type AddProjBusinessReq struct {
|
|
|
- NboName string `json:"nboName" v:"required#项目名称不能为空"` // 项目名称
|
|
|
- CustId int `json:"custId" v:"required#关联客户不能为空"` // 关联客户
|
|
|
- CustName string `json:"custName" v:"required#关联客户不能为空"` // 客户名称
|
|
|
- ObtainTime *gtime.Time `orm:"obtain_time" json:"obtainTime"` // 获取时间
|
|
|
- NboSource string `json:"nboSource" v:"required#项目来源不能为空"` // 项目来源
|
|
|
- ContactId int `json:"contactId" v:"required#关联联系人不能为空"` // 关联联系人
|
|
|
- ContactName string `json:"contactName" v:"required#联系人姓名不能为空"` // 联系人姓名
|
|
|
- ContactPostion string `json:"contactPostion"` // 联系人岗位
|
|
|
- ContactTelephone string `json:"contactTelephone"` // 联系人电话
|
|
|
- SaleId int `json:"saleId" v:"required#归属销售不能为空"` // 归属销售
|
|
|
- SaleName string `json:"saleName" v:"required#销售姓名不能为空"` // 销售姓名
|
|
|
- SalesModel string `json:"salesModel" v:"required|in:10,20,30#销售模式不能为空|销售模式不存在"` // 销售模式(10直销20经销30代理)
|
|
|
- DistributorId int `json:"distributorId" v:"required-unless:salesModel,10#经销商/代理商不能为空"` // 经销商/代理商ID
|
|
|
- DistributorName string `json:"distributorName" v:"required-unless:salesModel,10#经销商/代理商名称不能为空"` // 经销商/代理商名称
|
|
|
- Remark string `json:"remark"` // 备注
|
|
|
+ NboName string `json:"nboName" v:"required#项目名称不能为空"` // 项目名称
|
|
|
+ CustId int `json:"custId" v:"required#关联客户不能为空"` // 关联客户
|
|
|
+ CustName string `json:"custName" v:"required#关联客户不能为空"` // 客户名称
|
|
|
+ NboSource string `json:"nboSource" v:"required#项目来源不能为空"` // 项目来源
|
|
|
+ ContactId int `json:"contactId" v:"required#关联联系人不能为空"` // 关联联系人
|
|
|
+ ContactName string `json:"contactName" v:"required#联系人姓名不能为空"` // 联系人姓名
|
|
|
+ ContactPostion string `json:"contactPostion"` // 联系人岗位
|
|
|
+ ContactTelephone string `json:"contactTelephone"` // 联系人电话
|
|
|
+ SaleId int `json:"saleId" v:"required#归属销售不能为空"` // 归属销售
|
|
|
+ SaleName string `json:"saleName" v:"required#销售姓名不能为空"` // 销售姓名
|
|
|
+ SalesModel string `json:"salesModel" v:"required|in:10,20,30#销售模式不能为空|销售模式不存在"` // 销售模式(10直销20经销30代理)
|
|
|
+ DistributorId int `json:"distributorId" v:"required-unless:salesModel,10#经销商/代理商不能为空"` // 经销商/代理商ID
|
|
|
+ DistributorName string `json:"distributorName" v:"required-unless:salesModel,10#经销商/代理商名称不能为空"` // 经销商/代理商名称
|
|
|
+
|
|
|
+ NboBudget float64 `json:"nboBudget"` // 项目预算
|
|
|
+ ObtainTime *gtime.Time `json:"obtainTime"` // 获取时间
|
|
|
+ PlanPurchaseTime *gtime.Time `json:"planPurchaseTime"` // 计划采购时间
|
|
|
+ EstTransTime *gtime.Time `json:"estTransTime"` // 预计成交时间
|
|
|
+ EstTransPrice float64 `json:"estTransPrice"` // 预计成交价格
|
|
|
+ RiskProfile string `json:"riskProfile"` // 风险情况
|
|
|
+ Difficulty string `json:"difficulty"` // 困难点
|
|
|
+ Competitor string `json:"competitor"` // 竞争公司
|
|
|
+ Intervention string `json:"intervention"` // 介入情况
|
|
|
+ Remark string `json:"remark"` // 备注
|
|
|
|
|
|
// 跟进日程
|
|
|
FollowTime *gtime.Time `json:"followTime" v:"required#跟进时间不能为空"` // 跟进时间
|
|
|
@@ -62,8 +71,9 @@ type BusinessProduct struct {
|
|
|
ProdName string `json:"prodName" v:"required#产品名称不能为空"` // 产品名称
|
|
|
ProdCode string `json:"prodCode" v:"required#产品编码不能为空"` // 产品编码
|
|
|
ProdClass string `json:"prodClass" v:"required#产品类别不能为空"` // 产品类别
|
|
|
- ProdPrice float64 `json:"prodPrice" v:"required#产品单价不能为空"` // 产品单价
|
|
|
ProdNum int `json:"prodNum" v:"required#产品数量不能为空"` // 产品数量
|
|
|
+ ProdPrice float64 `json:"prodPrice" v:"required#产品售价不能为空"` // 产品售价
|
|
|
+ GuidPrice float64 `json:"guidPrice"` // 建议成交价
|
|
|
ProdUnit string `json:"prodUnit"` // 产品单位
|
|
|
TotalPrice int `json:"totalPrice"` // 总价
|
|
|
Remark string `json:"remark"` // 备注
|
|
|
@@ -96,6 +106,7 @@ type BusinessPrimacyContactReq struct {
|
|
|
// BusinessReq 获取项目关联信息
|
|
|
type BusinessReq struct {
|
|
|
BusId int64 `json:"busId" v:"required# 关联项目不能为空"` // 主键
|
|
|
+ CuctId int `json:"cuctId"` // 客户联系人
|
|
|
CuctName string `json:"cuctName"` // 客户联系人姓名
|
|
|
OpnType string `json:"opnType"` // 操作类型
|
|
|
request.PageReq
|