ops_delivery_project_event.go 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. OpsUserId int `json:"opsUserId"` // 执行人ID
  51. OpsUserName string `json:"opsUserName"` // 执行人姓名
  52. Attribute1 string `json:"attribute1"` // 物流单号
  53. CompleteTime string `json:"completeTime"` // 执行时间
  54. ActualWorkHour float64 `json:"actualWorkHour"` // 实际工作量(小时)
  55. Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
  56. }
  57. // OpsDeliveryProjectEventUpdateReq 更新请求
  58. type OpsDeliveryProjectEventUpdateReq struct {
  59. Id int `json:"id" v:"required#ID不能为空"`
  60. DeliveryEventTitle string `json:"deliveryEventTitle"`
  61. DeliveryEventDesc string `json:"deliveryEventDesc"`
  62. DeliveryEventType string `json:"deliveryEventType"`
  63. DeliveryEventStatus string `json:"deliveryEventStatus"` // 事件状态(关闭时传入)
  64. DeliveryEventResult string `json:"deliveryEventResult"` // 事件结果(关闭时传入)
  65. FeedbackSource string `json:"feedbackSource"`
  66. FeedbackReporter string `json:"feedbackReporter"`
  67. OnSite string `json:"onSite"`
  68. OpsUserId int `json:"opsUserId"` // 负责人ID(分配时传入)
  69. OpsUserName string `json:"opsUserName"` // 负责人姓名(分配时传入)
  70. CompleteDesc string `json:"completeDesc"` // 处理说明(处理/关闭时传入)
  71. CompleteTime string `json:"completeTime"` // 完成时间(处理/关闭时传入)
  72. ActualWorkHour float64 `json:"actualWorkHour"` // 实际工作量(处理/关闭时传入)
  73. Attribute1 string `json:"attribute1"` // 物流单号
  74. }
  75. // OpsDeliveryProjectEventDeleteReq 删除请求
  76. type OpsDeliveryProjectEventDeleteReq struct {
  77. Ids []int64 `json:"ids" v:"required#ID不能为空"`
  78. }
  79. // OpsDeliveryProjectEventCancelReq 作废请求
  80. type OpsDeliveryProjectEventCancelReq struct {
  81. Id int `json:"id" v:"required#ID不能为空"`
  82. CancelReason string `json:"cancelReason" v:"required#作废原因不能为空"`
  83. Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
  84. }
  85. // OpsDeliveryProjectEventAttachmentReq 附件请求
  86. type OpsDeliveryProjectEventAttachmentReq struct {
  87. FileName string `json:"fileName"` // 文件名
  88. FileUrl string `json:"fileUrl"` // 文件URL
  89. FileType string `json:"fileType"` // 文件类型
  90. }
  91. // OpsDeliveryProjectEventRsp 响应结构体
  92. type OpsDeliveryProjectEventRsp struct {
  93. Id int `json:"id"` // 主键
  94. ProjectId int `json:"projectId"` // 交付项目ID
  95. DeliveryEventNo string `json:"deliveryEventNo"` // 事件编码
  96. DeliveryEventTitle string `json:"deliveryEventTitle"` // 事件标题
  97. DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
  98. DeliveryEventType string `json:"deliveryEventType"` // 事件类型
  99. DeliveryEventStatus string `json:"deliveryEventStatus"` // 事件状态
  100. DeliveryEventResult string `json:"deliveryEventResult"` // 事件结果
  101. FeedbackSource string `json:"feedbackSource"` // 反馈来源
  102. FeedbackReporter string `json:"feedbackReporter"` // 反馈人
  103. FeedbackDate string `json:"feedbackDate"` // 反馈时间
  104. OpsUserId int `json:"opsUserId"` // 负责人员ID
  105. OpsUserName string `json:"opsUserName"` // 负责人员姓名
  106. OnSite string `json:"onSite"` // 是否现场
  107. CompleteTime string `json:"completeTime"` // 处理完成时间
  108. CompleteDesc string `json:"completeDesc"` // 处理方案说明
  109. CreatedBy int `json:"createdBy"` // 创建者
  110. CreatedName string `json:"createdName"` // 创建人
  111. CreatedTime string `json:"createdTime"` // 创建时间
  112. // 项目信息(关联ops_delivery_project表)
  113. ProjectName string `json:"projectName"` // 项目名称
  114. ContractNo string `json:"contractNo"` // 合同编号
  115. CustName string `json:"custName"` // 客户名称
  116. ProductLine string `json:"productLine"` // 产品线
  117. SalesUserName string `json:"salesUserName"` // 销售
  118. // 项目关键节点时间
  119. InternalKickoffTime string `json:"internalKickoffTime"` // 内部启动会时间
  120. ExternalKickoffTime string `json:"externalKickoffTime"` // 外部启动会时间
  121. DeliveryPlanSubmitTime string `json:"deliveryPlanSubmitTime"` // 交付计划提交时间
  122. DeploymentTime string `json:"deploymentTime"` // 部署时间
  123. TrialRunTime string `json:"trialRunTime"` // 试运行时间
  124. GoLiveTime string `json:"goLiveTime"` // 上线时间
  125. }
  126. // OpsDeliveryProjectEventRecordAddReq 事件过程记录新增请求
  127. type OpsDeliveryProjectEventRecordAddReq struct {
  128. DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
  129. HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
  130. }
  131. // OpsDeliveryProjectEventRecordSearchReq 事件过程记录查询请求
  132. type OpsDeliveryProjectEventRecordSearchReq struct {
  133. DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
  134. }
  135. // OpsDeliveryProjectEventRecordAddReqWithAttachments 带附件的事件过程记录新增请求
  136. type OpsDeliveryProjectEventRecordAddReqWithAttachments struct {
  137. DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
  138. HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
  139. Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
  140. }
  141. // OpsDeliveryProjectEventRecordWithAttachments 带附件的事件过程记录响应
  142. type OpsDeliveryProjectEventRecordWithAttachments struct {
  143. OpsDeliveryProjectEventRecord
  144. Attachments []*OpsDeliveryProjectEventAttachment `json:"attachments"` // 附件列表
  145. }