// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package base import ( "dashoo.cn/opms_libary/request" "github.com/gogf/gf/os/gtime" "dashoo.cn/micro/app/model/base/internal" ) // BaseDistributor is the golang structure for table base_distributor. type BaseDistributor internal.BaseDistributor // Fill with you ideas below. type BaseDistributorSearchReq struct { DistCode string `json:"distCode"` // 经销商code DistName string `json:"distName"` // 经销商名称 BelongSale string `json:"belongSale"` // 所属经销商 ProvinceId []string `json:"provinceId"` // 省份ID DistType string `json:"distType"` // 经销商类型 WithStatistic bool `json:"withStatistic"` // 经销商统计 request.PageReq } type BaseDistributorStatistic struct { ProjectNum int `json:"projectNum"` // ABC项目总数量 AllProductAmount float64 `json:"allProductAmount"` // ABC项目出货总金额(项目出货金额字段) SaledProjectNum int `json:"saledProjectNum"` // 成交项目数量 SaledAmount float64 `json:"saledAmount"` // 成交总金额 UnpaidAmount float64 `json:"unpaidAmount"` // 未回款总金额 InvoicedAmount float64 `json:"invoicedAmount"` // 开票总金额 } type BaseDistributorListRsp struct { BaseDistributor BaseDistributorStatistic YearTarget float64 `json:"yearTarget"` // 年度代理指标 } // 创建经销商字段 type AddDistributor struct { DistType string `json:"distType" v:"required#经销商类型不能为空"` // 经销商类型 10 经销商 20 代理商 DistName string `json:"distName" v:"required#经销商名称不能为空"` // 经销商名称 ProvinceId int `json:"provinceId" v:"required|min:1#所属省份Id不能为空|所属省份Id不能为空"` // 所属省份ID ProvinceDesc string `json:"provinceDesc" v:"required#所属省份不能为空"` // 所属省份 Capital float64 `json:"capital" v:"required#注册资金不能为空" ` // 注册资金 BusinessScope string `json:"businessScope" v:"required#业务范围不能为空"` // 业务范围 CustomerType string `json:"customerType" v:"required#授权客户类型不能为空"` // 授权客户类型 ExistedProduct string `json:"existedProduct" v:"required#已有代理品牌和产品不能为空"` // 已有代理品牌和产品 AbbrName string `json:"abbrName"` // 助记名称 BelongSaleId int `json:"belongSaleId" v:"required|min:1#|归属销售ID不能为空"` // 归属销售ID BelongSale string `json:"belongSale" v:"required#归属销售不能为空"` // 归属销售 AssistantSaleId string `json:"assistantSaleId"` // 助理人员Id AssistantSale string `json:"assistantSale"` // 助理人员 RegisterDistrict string `json:"registerDistrict"` // 注册地 SaleNum int `json:"saleNum"` // 现有销售人数 HistoryCustomer string `json:"historyCustomer"` // 历史合作的终端客户名称 ProxyStartTime *gtime.Time `json:"proxyStartTime"` // 代理签约有效期开始(代理商) ProxyEndTime *gtime.Time `json:"proxyEndTime"` // 代理签约有效期结束(代理商) ProxyDistrict string `json:"proxyDistrict"` // 授权代理区域(代理商) ContractUrl string `json:"contractUrl"` // 代理合同(代理商) ContractFileName string `json:"contracFileName"` // 代理合同(代理商) } type DistributorToProxyReq struct { Id int `p:"id" json:"id" v:"required# id不能为空"` CustomerType string `json:"customerType" v:"required#授权客户类型不能为空"` // 授权客户类型 ProxyStartTime *gtime.Time `json:"proxyStartTime" v:"required#代理签约有效期不能为空"` // 代理签约有效期开始(代理商) ProxyEndTime *gtime.Time `json:"proxyEndTime" v:"required#代理签约有效期不能为空"` // 代理签约有效期结束(代理商) ProxyDistrict string `json:"proxyDistrict" v:"required#授权代理区域不能为空"` // 授权代理区域(代理商) ContractUrl string `json:"contractUrl"` // 代理合同(代理商) ContractFileName string `json:"contracFileName"` // 代理合同(代理商) } type ToProxyApproveData struct { CustomerType string `json:"customerType"` ProxyStartTime *gtime.Time `json:"proxyStartTime"` ProxyEndTime *gtime.Time `json:"proxyEndTime"` ProxyDistrict string `json:"proxyDistrict"` ContractUrl string `json:"contractUrl"` OperatedId int `json:"operatedId"` OperatedName string `json:"operatedName"` } type ToDistApproveData struct { ToDistReason string `json:"customerType"` // 转移经销商原因 OperatedId int `json:"operatedId"` OperatedName string `json:"operatedName"` } type DistributorRenewReq DistributorToProxyReq type RenewApproveData ToProxyApproveData type DistributorToDistReq struct { Id int `p:"id" json:"id" v:"required# id不能为空"` ToDistReason string `json:"customerType" v:"required#转移原因不能为空"` // 转移经销商原因 } type DistributorTransRecordReq struct { request.PageReq DistId int `json:"distId"` // ID } // 编辑参数 type UpdateDistributorReq struct { *AddDistributor Id int `p:"id" json:"id" v:"required# id不能为空"` } type DistributorDynamicsListReq struct { request.PageReq SearchText string `json:"searchText"` // 操作人,操作内容 DistId int `json:"distId"` // ID OpnPeopleId int `json:"opnPeopleId"` // 操作人ID OpnPeople string `json:"opnPeople"` // 操作人 OpnType string `json:"opnType"` // 操作类型 } type DistributorProjectListReq struct { request.PageReq DistId int `json:"distId"` // 经销商/代理商ID SearchText string `json:"searchText"` // 项目名称,项目名称 NboName string `json:"nboName"` // 项目名称 CustName string `json:"custName"` // 项目名称 CreatedTimeStart *gtime.Time `json:"createdTimeStart"` // 创建时间 CreatedTimeEnd *gtime.Time `json:"createdTimeEnd"` // 创建时间 } type DistributorContractListReq struct { request.PageReq DistId int `json:"distId"` // 经销商/代理商ID SearchText string `json:"searchText"` // 合同编号,合同名称,客户名称,项目名称 ContractCode string `json:"contractCode"` // 合同编号 ContractName string `json:"contractName"` // 合同名称 CustId int `json:"custId"` // 关联客户 CustName string `json:"custName"` // 客户名称 NboId int `json:"nboId"` // 关联项目 NboName string `json:"nboName"` // 项目名称 ApproStatus string `json:"approStatus"` // 审批状态 ContractType string `json:"contractType"` // 合同类型 InchargeId int `json:"inchargeId"` // 负责人ID InchargeName string `json:"inchargeName"` // 负责人 SignatoryId int `json:"signatoryId"` // 公司签约人ID SignatoryName string `json:"signatoryName"` // 公司签约人 DistributorName string `json:"distributorName"` // 经销商 } // 删除 type DeleteDistributorReq struct { Ids []int64 `p:"id" json:"ids" v:"required# id不能为空"` }