| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package model
- import (
- "dashoo.cn/micro/app/model/proj/internal"
- "dashoo.cn/opms_libary/request"
- "github.com/gogf/gf/os/gtime"
- )
- // ProjBusiness is the golang structure for table proj_business.
- type ProjBusiness internal.ProjBusiness
- // Fill with you ideas below.
- type ProjBusinessSearchReq struct {
- NboName string `json:"nboName"` // 项目名称
- CustName string `json:"custName"` // 客户名称
- SaleName string `json:"saleName"` // 销售姓名
- NboType string `json:"nboType"` // 项目类别(A类B类C类)
- request.PageReq
- }
- type AddProjBusinessReq struct {
- 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#跟进时间不能为空"` // 跟进时间
- FollowUserId int `json:"followUserId"` // 关联跟进负责人
- FollowUserName string `json:"followUserName"` // 跟进负责人姓名
- FollowContent string `json:"followContent" v:"required#跟进内容不能为空"` // 跟进内容
- Products []BusinessProduct `json:"products" v:"required#产品列表不能为空"` // 产品列表
- }
- type UpdateProjBusinessReq struct {
- Id int `p:"id" v:"required# id不能为空"`
- *AddProjBusinessReq
- }
- // BusinessProduct 项目产品
- type BusinessProduct struct {
- Id int `json:"id"` // 主键
- BusId int `json:"busId"` // 关联项目
- ProdId int `json:"prodId" v:"required#关联产品不能为空"` // 关联产品
- ProdName string `json:"prodName" v:"required#产品名称不能为空"` // 产品名称
- ProdCode string `json:"prodCode" v:"required#产品编码不能为空"` // 产品编码
- ProdClass string `json:"prodClass" 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"` // 备注
- }
- // BusinessGradationReq 项目调级请求
- type BusinessGradationReq struct {
- Id int `json:"id" v:"required# id不能为空"` // 主键
- NboType string `json:"nboType" v:"required|in:A,B,C#项目类别不能为空|项目类别只能为A、B、C"` // 项目类别(A类B类C类)
- Remark string `json:"remark"` // 备注
- }
- // BusinessTransferReq 项目转移请求
- type BusinessTransferReq struct {
- Id int `json:"id" v:"required# id不能为空"` // 主键
- UserId int `json:"userId" v:"required# 负责人不能为空"` // 负责人
- UserName string `json:"userName" v:"required# 负责人不能为空"` // 负责人
- Remark string `json:"remark"` // 备注
- }
- // BusinessPrimacyContactReq 设置首要联系人请求
- type BusinessPrimacyContactReq struct {
- Id int `json:"id" v:"required# id不能为空"` // 主键
- ContactId int `json:"contactId" v:"required#关联联系人不能为空"` // 关联联系人
- ContactName string `json:"contactName" v:"required#联系人姓名不能为空"` // 联系人姓名
- ContactPostion string `json:"contactPostion"` // 联系人岗位
- ContactTelephone string `json:"contactTelephone"` // 联系人电话
- Remark string `json:"remark"` // 备注
- }
- // BusinessReq 获取项目关联信息
- type BusinessReq struct {
- BusId int64 `json:"busId" v:"required# 关联项目不能为空"` // 主键
- CuctId int `json:"cuctId"` // 客户联系人
- CuctName string `json:"cuctName"` // 客户联系人姓名
- OpnType string `json:"opnType"` // 操作类型
- request.PageReq
- }
|