| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package opsdev
- import (
- "dashoo.cn/opms_libary/request"
- "dashoo.cn/opms_parent/app/model/opsdev/internal"
- )
- // OpsDeliveryProjectEvent is the golang structure for table ops_delivery_project_event.
- type OpsDeliveryProjectEvent internal.OpsDeliveryProjectEvent
- // Delivery Project Event Status Constants
- const (
- DeliveryEventStatusTodo = "10" // 待处理
- DeliveryEventStatusProcessing = "20" // 处理中
- DeliveryEventStatusClosed = "30" // 已关闭
- DeliveryEventStatusCancelled = "90" // 已作废
- )
- // SortField 排序字段
- type SortField struct {
- Field string `json:"field"` // 排序字段名
- Order string `json:"order"` // 排序方向:asc/desc
- }
- // OpsDeliveryProjectEventSearchReq 列表查询请求
- type OpsDeliveryProjectEventSearchReq struct {
- request.PageReq
- ProjectId int `json:"projectId"` // 交付项目ID
- DeliveryEventTitle string `json:"deliveryEventTitle"` // 事件标题
- DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
- DeliveryEventType []string `json:"deliveryEventType"` // 事件类型(多选)
- DeliveryEventStatus []string `json:"deliveryEventStatus"` // 事件状态(多选)
- DeliveryEventResult []string `json:"deliveryEventResult"` // 事件结果(多选)
- FeedbackSource string `json:"feedbackSource"` // 反馈来源
- FeedbackReporter string `json:"feedbackReporter"` // 反馈人
- OpsUserName []string `json:"opsUserName"` // 负责人(多选)
- FeedbackDateStart string `json:"feedbackDateStart"` // 反馈时间开始
- FeedbackDateEnd string `json:"feedbackDateEnd"` // 反馈时间结束
- CompleteTimeStart string `json:"completeTimeStart"` // 处理时间开始
- CompleteTimeEnd string `json:"completeTimeEnd"` // 处理时间结束
- SortFields []SortField `json:"sortFields"` // 排序字段数组
- }
- // OpsDeliveryProjectEventAddReq 新增请求
- type OpsDeliveryProjectEventAddReq struct {
- ProjectId int `json:"projectId" v:"required#项目ID不能为空"` // 交付项目ID
- DeliveryEventTitle string `json:"deliveryEventTitle" v:"required#事件标题不能为空"` // 事件标题
- DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
- DeliveryEventType string `json:"deliveryEventType" v:"required#事件类型不能为空"` // 事件类型
- FeedbackSource string `json:"feedbackSource" v:"required#反馈来源不能为空"` // 反馈来源
- FeedbackReporter string `json:"feedbackReporter" v:"required#反馈人不能为空"` // 反馈人
- OnSite string `json:"onSite"` // 是否现场
- OpsUserId int `json:"opsUserId"` // 执行人ID
- OpsUserName string `json:"opsUserName"` // 执行人姓名
- Attribute1 string `json:"attribute1"` // 物流单号
- CompleteTime string `json:"completeTime"` // 执行时间
- ActualWorkHour float64 `json:"actualWorkHour"` // 实际工作量(小时)
- Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
- }
- // OpsDeliveryProjectEventUpdateReq 更新请求
- type OpsDeliveryProjectEventUpdateReq struct {
- Id int `json:"id" v:"required#ID不能为空"`
- DeliveryEventTitle string `json:"deliveryEventTitle"`
- DeliveryEventDesc string `json:"deliveryEventDesc"`
- DeliveryEventType string `json:"deliveryEventType"`
- DeliveryEventStatus string `json:"deliveryEventStatus"` // 事件状态(关闭时传入)
- DeliveryEventResult string `json:"deliveryEventResult"` // 事件结果(关闭时传入)
- FeedbackSource string `json:"feedbackSource"`
- FeedbackReporter string `json:"feedbackReporter"`
- OnSite string `json:"onSite"`
- OpsUserId int `json:"opsUserId"` // 负责人ID(分配时传入)
- OpsUserName string `json:"opsUserName"` // 负责人姓名(分配时传入)
- CompleteDesc string `json:"completeDesc"` // 处理说明(处理/关闭时传入)
- CompleteTime string `json:"completeTime"` // 完成时间(处理/关闭时传入)
- ActualWorkHour float64 `json:"actualWorkHour"` // 实际工作量(处理/关闭时传入)
- Attribute1 string `json:"attribute1"` // 物流单号
- }
- // OpsDeliveryProjectEventDeleteReq 删除请求
- type OpsDeliveryProjectEventDeleteReq struct {
- Ids []int64 `json:"ids" v:"required#ID不能为空"`
- }
- // OpsDeliveryProjectEventCancelReq 作废请求
- type OpsDeliveryProjectEventCancelReq struct {
- Id int `json:"id" v:"required#ID不能为空"`
- CancelReason string `json:"cancelReason" v:"required#作废原因不能为空"`
- Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
- }
- // OpsDeliveryProjectEventAttachmentReq 附件请求
- type OpsDeliveryProjectEventAttachmentReq struct {
- FileName string `json:"fileName"` // 文件名
- FileUrl string `json:"fileUrl"` // 文件URL
- FileType string `json:"fileType"` // 文件类型
- }
- // OpsDeliveryProjectEventRsp 响应结构体
- type OpsDeliveryProjectEventRsp struct {
- Id int `json:"id"` // 主键
- ProjectId int `json:"projectId"` // 交付项目ID
- DeliveryEventNo string `json:"deliveryEventNo"` // 事件编码
- DeliveryEventTitle string `json:"deliveryEventTitle"` // 事件标题
- DeliveryEventDesc string `json:"deliveryEventDesc"` // 事件描述
- DeliveryEventType string `json:"deliveryEventType"` // 事件类型
- DeliveryEventStatus string `json:"deliveryEventStatus"` // 事件状态
- DeliveryEventResult string `json:"deliveryEventResult"` // 事件结果
- FeedbackSource string `json:"feedbackSource"` // 反馈来源
- FeedbackReporter string `json:"feedbackReporter"` // 反馈人
- FeedbackDate string `json:"feedbackDate"` // 反馈时间
- OpsUserId int `json:"opsUserId"` // 负责人员ID
- OpsUserName string `json:"opsUserName"` // 负责人员姓名
- OnSite string `json:"onSite"` // 是否现场
- CompleteTime string `json:"completeTime"` // 处理完成时间
- CompleteDesc string `json:"completeDesc"` // 处理方案说明
- CreatedBy int `json:"createdBy"` // 创建者
- CreatedName string `json:"createdName"` // 创建人
- CreatedTime string `json:"createdTime"` // 创建时间
- // 项目信息(关联ops_delivery_project表)
- ProjectName string `json:"projectName"` // 项目名称
- ContractNo string `json:"contractNo"` // 合同编号
- CustName string `json:"custName"` // 客户名称
- ProductLine string `json:"productLine"` // 产品线
- SalesUserName string `json:"salesUserName"` // 销售
- // 项目关键节点时间
- InternalKickoffTime string `json:"internalKickoffTime"` // 内部启动会时间
- ExternalKickoffTime string `json:"externalKickoffTime"` // 外部启动会时间
- DeliveryPlanSubmitTime string `json:"deliveryPlanSubmitTime"` // 交付计划提交时间
- DeploymentTime string `json:"deploymentTime"` // 部署时间
- TrialRunTime string `json:"trialRunTime"` // 试运行时间
- GoLiveTime string `json:"goLiveTime"` // 上线时间
- }
- // OpsDeliveryProjectEventRecordAddReq 事件过程记录新增请求
- type OpsDeliveryProjectEventRecordAddReq struct {
- DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
- HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
- }
- // OpsDeliveryProjectEventRecordSearchReq 事件过程记录查询请求
- type OpsDeliveryProjectEventRecordSearchReq struct {
- DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
- }
- // OpsDeliveryProjectEventRecordAddReqWithAttachments 带附件的事件过程记录新增请求
- type OpsDeliveryProjectEventRecordAddReqWithAttachments struct {
- DeliveryEventId int `json:"deliveryEventId" v:"required#事件ID不能为空"`
- HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
- Attachments []OpsDeliveryProjectEventAttachmentReq `json:"attachments"` // 附件列表
- }
- // OpsDeliveryProjectEventRecordWithAttachments 带附件的事件过程记录响应
- type OpsDeliveryProjectEventRecordWithAttachments struct {
- OpsDeliveryProjectEventRecord
- Attachments []*OpsDeliveryProjectEventAttachment `json:"attachments"` // 附件列表
- }
|