plat_workflow.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package workflow
  5. import (
  6. "dashoo.cn/micro/app/model/workflow/internal"
  7. "dashoo.cn/opms_libary/request"
  8. )
  9. // BizType 业务类型(10客户20项目创建30合同创建)
  10. const (
  11. CustomerReceive = "11" // 领取公海客户
  12. CustomerPublic = "12" // 客户移回公海
  13. CustomerTrans = "13" // 转移客户
  14. ProjectCreate = "20" // 项目创建
  15. ProjectUpGrade = "21" // 项目升级审批
  16. ProjectDownGrade = "22" // 项目降级审批
  17. ProjectTransfer = "23" // 项目转移项目审批
  18. ProjectToReserve = "24" // 项目转为储备项目审批
  19. ProjectPersonnel = "25" // 项目协同人员审批
  20. ContractCreate = "30" // 合同创建
  21. ContractInvoice = "31" // 申请发票
  22. PlatTaskApproval = "40" // 督办任务审批
  23. DistProxyCreate = "51" // 创建代理商
  24. DistToProxy = "52" // 经销商转代理商
  25. DistProxyRenew = "53" // 代理商续签
  26. DistToDist = "54" // 代理商转经销商
  27. WorkOrderCreate = "61" // 支持工单创建
  28. DeliverOrderCreate = "62" // 交付工单创建
  29. BidCloseLoop = "63" // 招标信息闭环
  30. )
  31. var BusCodeConst = map[string]string{
  32. CustomerReceive: "CustomerReceive", // 领取公海客户
  33. CustomerPublic: "CustomerPublic", // 客户移回公海
  34. CustomerTrans: "CustomerTrans", // 转移客户
  35. ProjectCreate: "ProjectCreate", // 项目创建
  36. ProjectUpGrade: "ProjectUpGrade", // 项目升级审批
  37. ProjectDownGrade: "ProjectDownGrade", // 项目降级审批
  38. ProjectTransfer: "ProjectTransfer", // 项目转移项目审
  39. ProjectToReserve: "ProjectToReserve", // 项目转为储备项
  40. ProjectPersonnel: "ProjectPersonnel", // 项目协同人员审
  41. ContractCreate: "ContractCreate", // 合同创建
  42. ContractInvoice: "ContractInvoice", // 申请发票
  43. PlatTaskApproval: "PlatTaskApproval", // 督办任务审批
  44. DistProxyCreate: "DistProxyCreate", // 创建代理商
  45. DistToProxy: "DistToProxy", // 经销商转代理商
  46. DistProxyRenew: "DistProxyRenew", // 代理商续签
  47. DistToDist: "DistToDist", // 代理商转经销商
  48. WorkOrderCreate: "WorkOrderCreate", // 支持工单创建
  49. DeliverOrderCreate: "DeliverOrderCreate", // 交付工单创建
  50. BidCloseLoop: "BidCloseLoop", // 招标信息闭环
  51. }
  52. // PlatWorkflow is the golang structure for table plat_workflow.
  53. type PlatWorkflow internal.PlatWorkflow
  54. // Fill with you ideas below.
  55. // SearchWorkflowReq 查询
  56. type SearchWorkflowReq struct {
  57. BizCode string `json:"bizCode"`
  58. BizType string `son:"bizType"`
  59. MySelf string `json:"mySelf"` // 不为0时,查询自己的数据;为0时,查询全部数据
  60. request.PageReq
  61. }