| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- // ==========================================================================
- // 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 ProjBusinessReq struct {
- NboName string `json:"nboName" v:"required#项目名称不能为空"` // 项目名称
- CustId int `json:"custId" v:"required#关联客户不能为空"` // 关联客户
- CustName string `json:"custName" v:"required#关联客户不能为空"` // 客户名称
- NboType string `json:"nboType" v:"required|in:A,B,C#项目类别不能为空|项目类别只能为A、B、C"` // 项目类别(A类B类C类)
- NboPhase string `json:"nboPhase"` // 项目阶段(暂不起用)
- NboSource string `json:"nboSource" v:"required#关联客户不能为空"` // 项目来源
- NboBudget float64 `json:"nboBudget"` // 项目预算
- ApproStatus string `json:"approStatus" v:"in:10,20,30,40,60#审批状态错误"` // 审批状态(10待审批20审批中30审批通过40审批退回60审批拒绝)
- ContactId int `json:"contactId" v:"required#关联联系人不能为空"` // 关联联系人
- ContactName string `json:"contactName" v:"required#关联联系人不能为空"` // 联系人姓名
- ContactPostion string `json:"contactPostion" v:"required#联系人岗位不能为空"` // 联系人岗位
- ContactTelephone string `json:"contactTelephone" v:"required#联系人岗位不能为空"` // 联系人电话
- MakerId int `json:"makerId" v:"required#关联决策人不能为空"` // 关联决策人
- MakerName string `json:"makerName" v:"required#决策人姓名不能为空"` // 决策人姓名
- MakerPost string `json:"makerPost" v:"required#决策人岗位不能为空"` // 决策人岗位
- MakerTelephone string `json:"makerTelephone" v:"required#决策人电话不能为空"` // 决策人电话
- SalesModel string `json:"salesModel" v:"required|in:10,20,30#销售模式不能为空|销售模式不存在"` // 销售模式(10直销20经销30代理)
- SaleId int `json:"saleId" v:"required#归属销售不能为空"` // 归属销售
- SaleName string `json:"saleName" v:"required#归属销售不能为空"` // 销售姓名
- DistributorId int `json:"distributorId"` // 经销商/代理商ID
- DistributorName string `json:"distributorName"` // 经销商/代理商名称
- FinalFollowTime *gtime.Time `json:"finalFollowTime"` // 最后跟进时间
- NextFollowTime *gtime.Time `json:"nextFollowTime"` // 下次跟进时间
- 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"` // 介入情况
- DeptId int `json:"deptId"` // 所属部门ID
- DeptName string `json:"deptName"` // 所属部门
- Remark string `json:"remark"` // 备注
- }
- 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#关联客户不能为空"` // 客户名称
- EstTransTime *gtime.Time `json:"estTransTime"` // 预计成交时间
- EstTransPrice float64 `json:"estTransPrice"` // 预计成交价格
- NextFollowTime *gtime.Time `json:"nextFollowTime"` // 下次跟进时间
- Remark string `json:"remark"` // 备注
- Products []BusinessProduct `json:"products"` // 产品列表
- }
- type UpdateProjBusinessReq struct {
- Id int `p:"id" v:"required# id不能为空"`
- *AddProjBusinessReq
- }
- // 项目产品
- type BusinessProduct struct {
- Id int `json:"id"` // 主键
- Name string `json:"name" v:"required#产品名称不能为空"` // 产品名称
- Category string `json:"category" v:"required#产品类别不能为空"` // 产品类别
- Unit string `json:"unit" v:"required#单位不能为空"` // 单位
- OriginalPrice int `json:"originalPrice" v:"required#原价不能为空"` // 原价
- SellingPrice int `json:"sellingPrice" v:"required#售价不能为空"` // 售价
- Quantity int `json:"quantity" v:"required#数量不能为空"` // 数量
- Discount int `json:"discount" v:"required#折扣不能为空"` // 折扣
- TotalPrice int `json:"totalPrice"` // 总价
- Remark string `json:"remark"` // 备注
- }
- // 项目调级请求
- 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类)
- }
- // 项目转移请求
- 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"` // 备注
- }
- // 获取项目关联信息
- type BusinessReq struct {
- BusId int64 `json:"busId" v:"required# 关联项目不能为空"` // 主键
- }
|