ops_delivery_project_event.go 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package opsdev
  5. import (
  6. "dashoo.cn/opms_libary/request"
  7. "dashoo.cn/opms_parent/app/model/opsdev/internal"
  8. )
  9. // OpsDeliveryProjectEvent is the golang structure for table ops_delivery_project_event.
  10. type OpsDeliveryProjectEvent internal.OpsDeliveryProjectEvent
  11. // Delivery Project Event Status Constants
  12. const (
  13. DeliveryEventStatusTodo = "10" // 待处理
  14. DeliveryEventStatusProcessing = "20" // 处理中
  15. DeliveryEventStatusClosed = "30" // 已关闭
  16. DeliveryEventStatusCancelled = "90" // 已作废
  17. )
  18. // SortField 排序字段
  19. type SortField struct {
  20. Field string `json:"field"` // 排序字段名
  21. Order string `json:"order"` // 排序方向:asc/desc
  22. }
  23. // OpsDeliveryProjectEventSearchReq 列表查询请求
  24. type OpsDeliveryProjectEventSearchReq struct {
  25. request.PageReq
  26. ProjectId int `json:"projectId"` // 交付项目ID
  27. DeliveryEventTitle string `json:"deliveryEventTitle"` // 事件标题
  28. DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
  29. DeliveryEventType []string `json:"deliveryEventType"` // 事件类型(多选)
  30. DeliveryEventStatus []string `json:"deliveryEventStatus"` // 事件状态(多选)
  31. DeliveryEventResult []string `json:"deliveryEventResult"` // 事件结果(多选)
  32. FeedbackSource string `json:"feedbackSource"` // 反馈来源
  33. FeedbackReporter string `json:"feedbackReporter"` // 反馈人
  34. OpsUserName []string `json:"opsUserName"` // 负责人(多选)
  35. FeedbackDateStart string `json:"feedbackDateStart"` // 反馈时间开始
  36. FeedbackDateEnd string `json:"feedbackDateEnd"` // 反馈时间结束
  37. CompleteTimeStart string `json:"completeTimeStart"` // 处理时间开始
  38. CompleteTimeEnd string `json:"completeTimeEnd"` // 处理时间结束
  39. SortFields []SortField `json:"sortFields"` // 排序字段数组
  40. }
  41. // OpsDeliveryProjectEventAddReq 新增请求
  42. type OpsDeliveryProjectEventAddReq struct {
  43. ProjectId int `json:"projectId" v:"required#项目ID不能为空"` // 交付项目ID
  44. DeliveryEventTitle string `json:"deliveryEventTitle" v:"required#事件标题不能为空"` // 事件标题
  45. DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
  46. DeliveryEventType string `json:"deliveryEventType" v:"required#事件类型不能为空"` // 事件类型
  47. FeedbackSource string `json:"feedbackSource" v:"required#反馈来源不能为空"` // 反馈来源
  48. FeedbackReporter string `json:"feedbackReporter" v:"required#反馈人不能为空"` // 反馈人
  49. OnSite string `json:"onSite"` // 是否现场
  50. Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
  51. }
  52. // OpsDeliveryProjectEventUpdateReq 更新请求
  53. type OpsDeliveryProjectEventUpdateReq struct {
  54. Id int `json:"id" v:"required#ID不能为空"`
  55. DeliveryEventTitle string `json:"deliveryEventTitle"`
  56. DeliveryEventDesc string `json:"deliveryEventDesc"`
  57. DeliveryEventType string `json:"deliveryEventType"`
  58. DeliveryEventStatus string `json:"deliveryEventStatus"` // 事件状态(关闭时传入)
  59. DeliveryEventResult string `json:"deliveryEventResult"` // 事件结果(关闭时传入)
  60. FeedbackSource string `json:"feedbackSource"`
  61. FeedbackReporter string `json:"feedbackReporter"`
  62. OnSite string `json:"onSite"`
  63. OpsUserId int `json:"opsUserId"` // 负责人ID(分配时传入)
  64. OpsUserName string `json:"opsUserName"` // 负责人姓名(分配时传入)
  65. CompleteDesc string `json:"completeDesc"` // 处理说明(处理/关闭时传入)
  66. CompleteTime string `json:"completeTime"` // 完成时间(处理/关闭时传入)
  67. ActualWorkHour float64 `json:"actualWorkHour"` // 实际工作量(处理/关闭时传入)
  68. }
  69. // OpsDeliveryProjectEventDeleteReq 删除请求
  70. type OpsDeliveryProjectEventDeleteReq struct {
  71. Ids []int64 `json:"ids" v:"required#ID不能为空"`
  72. }
  73. // OpsDeliveryProjectEventCancelReq 作废请求
  74. type OpsDeliveryProjectEventCancelReq struct {
  75. Id int `json:"id" v:"required#ID不能为空"`
  76. CancelReason string `json:"cancelReason" v:"required#作废原因不能为空"`
  77. Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
  78. }
  79. // OpsDeliveryProjectEventAttachmentReq 附件请求
  80. type OpsDeliveryProjectEventAttachmentReq struct {
  81. FileName string `json:"fileName"` // 文件名
  82. FileUrl string `json:"fileUrl"` // 文件URL
  83. FileType string `json:"fileType"` // 文件类型
  84. }
  85. // OpsDeliveryProjectEventRsp 响应结构体
  86. type OpsDeliveryProjectEventRsp struct {
  87. Id int `json:"id"` // 主键
  88. ProjectId int `json:"projectId"` // 交付项目ID
  89. DeliveryEventNo string `json:"deliveryEventNo"` // 事件编码
  90. DeliveryEventTitle string `json:"deliveryEventTitle"` // 事件标题
  91. DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
  92. DeliveryEventType string `json:"deliveryEventType"` // 事件类型
  93. DeliveryEventStatus string `json:"deliveryEventStatus"` // 事件状态
  94. DeliveryEventResult string `json:"deliveryEventResult"` // 事件结果
  95. FeedbackSource string `json:"feedbackSource"` // 反馈来源
  96. FeedbackReporter string `json:"feedbackReporter"` // 反馈人
  97. FeedbackDate string `json:"feedbackDate"` // 反馈时间
  98. OpsUserId int `json:"opsUserId"` // 负责人员ID
  99. OpsUserName string `json:"opsUserName"` // 负责人员姓名
  100. OnSite string `json:"onSite"` // 是否现场
  101. CompleteTime string `json:"completeTime"` // 处理完成时间
  102. CompleteDesc string `json:"completeDesc"` // 处理方案说明
  103. CreatedBy int `json:"createdBy"` // 创建者
  104. CreatedName string `json:"createdName"` // 创建人
  105. CreatedTime string `json:"createdTime"` // 创建时间
  106. // 项目信息(关联ops_delivery_project表)
  107. ProjectName string `json:"projectName"` // 项目名称
  108. ContractNo string `json:"contractNo"` // 合同编号
  109. CustName string `json:"custName"` // 客户名称
  110. ProductLine string `json:"productLine"` // 产品线
  111. SalesUserName string `json:"salesUserName"` // 销售
  112. // 项目关键节点时间
  113. InternalKickoffTime string `json:"internalKickoffTime"` // 内部启动会时间
  114. ExternalKickoffTime string `json:"externalKickoffTime"` // 外部启动会时间
  115. DeliveryPlanSubmitTime string `json:"deliveryPlanSubmitTime"` // 交付计划提交时间
  116. DeploymentTime string `json:"deploymentTime"` // 部署时间
  117. TrialRunTime string `json:"trialRunTime"` // 试运行时间
  118. GoLiveTime string `json:"goLiveTime"` // 上线时间
  119. }
  120. // OpsDeliveryProjectEventRecordAddReq 事件过程记录新增请求
  121. type OpsDeliveryProjectEventRecordAddReq struct {
  122. DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
  123. HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
  124. }
  125. // OpsDeliveryProjectEventRecordSearchReq 事件过程记录查询请求
  126. type OpsDeliveryProjectEventRecordSearchReq struct {
  127. DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
  128. }
  129. // OpsDeliveryProjectEventRecordAddReqWithAttachments 带附件的事件过程记录新增请求
  130. type OpsDeliveryProjectEventRecordAddReqWithAttachments struct {
  131. DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
  132. HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
  133. Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
  134. }
  135. // OpsDeliveryProjectEventRecordWithAttachments 带附件的事件过程记录响应
  136. type OpsDeliveryProjectEventRecordWithAttachments struct {
  137. OpsDeliveryProjectEventRecord
  138. Attachments []*OpsDeliveryProjectEventAttachment `json:"attachments"` // 附件列表
  139. }