| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- package opsdev
- import (
- "dashoo.cn/opms_libary/request"
- )
- // OpsOperationEventSearchReq 运维事件搜索请求
- type OpsOperationEventSearchReq struct {
- EventNo string `json:"eventNo"` // 事件编号
- EventTitle string `json:"eventTitle"` // 事件标题(模糊搜索)
- EventStatus string `json:"eventStatus"` // 事件状态
- EventType string `json:"eventType"` // 事件类型
- PriorityLevel string `json:"priorityLevel"` // 优先级
- IsBig string `json:"isBig"` // 是否重大事件
- IsOps string `json:"isOps"` // 是否运维事件
- CustName string `json:"custName"` // 客户名称(模糊搜索)
- OpsUserName string `json:"opsUserName"` // 运维人员名称
- ContractName string `json:"contractName"` // 合同名称
- ProductLine string `json:"productLine"` // 产品线
- request.PageReq
- }
- // OpsOperationEventReq 运维事件创建/更新请求
- type OpsOperationEventReq struct {
- EventTitle string `json:"eventTitle" v:"required#事件标题不能为空"` // 事件标题
- EventDesc string `json:"eventDesc"` // 事件描述
- EventType string `json:"eventType"` // 事件类型
- EventStatus string `json:"eventStatus"` // 事件状态
- ContractId int `json:"contractId"` // 合同ID
- ContractName string `json:"contractName"` // 合同名称
- CustId int `json:"custId"` // 客户ID
- CustName string `json:"custName"` // 客户名称
- ProductLine string `json:"productLine"` // 产品线
- IsBig string `json:"isBig"` // 是否重大事件
- IsOps string `json:"isOps"` // 是否运维事件
- PriorityLevel string `json:"priorityLevel"` // 优先级
- FeedbackSource string `json:"feedbackSource"` // 反馈来源
- FeedbackReporter string `json:"feedbackReporter"` // 反馈报告人
- FeedbackDate string `json:"feedbackDate"` // 反馈日期
- OpsUserId int `json:"opsUserId"` // 运维人员ID
- OpsUserName string `json:"opsUserName"` // 运维人员名称
- Remark string `json:"remark"` // 备注
- }
- // UpdateOpsOperationEventReq 运维事件更新请求
- type UpdateOpsOperationEventReq struct {
- Id int `json:"id" v:"min:1#ID不能为空"` // 主键
- OpsOperationEventReq
- }
- // OpsOperationEventProcessReq 运维事件处理请求
- type OpsOperationEventProcessReq struct {
- Id int64 `json:"id" v:"min:1#任务ID不能为空"`
- HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
- HandleResult string `json:"handleResult"`
- OperateType string `json:"operateType" v:"required#操作类型不能为空"`
- }
- // OpsOperationEventRecordSearchReq 运维事件处理记录搜索请求
- type OpsOperationEventRecordSearchReq struct {
- EventId int `json:"eventId" v:"min:1#事件ID不能为空"` // 事件ID
- request.PageReq
- }
- // OpsOperationEventAttachmentReq 附件上传请求
- type OpsOperationEventAttachmentReq struct {
- EventId int `json:"eventId" v:"min:1#事件ID不能为空"` // 事件ID
- EventRecordId int `json:"eventRecordId"` // 事件记录ID
- FileName string `json:"fileName" v:"required#文件名不能为空"` // 文件名
- FileUrl string `json:"fileUrl" v:"required#文件地址不能为空"` // 文件地址
- FileType string `json:"fileType"` // 文件类型
- Remark string `json:"remark"` // 备注
- }
- const (
- EventStatusPending = "10" // 待处理
- EventStatusProcessing = "20" // 处理中(重点)
- EventStatusProcessingNormal = "30" // 处理中(普通)
- EventStatusTransfer = "40" // 转研发
- EventStatusSuspended = "70" // 挂起
- EventStatusClosed = "80" // 已关闭
- )
- const (
- HandleResultResolved = "10" // 已解决
- HandleResultPartially = "20" // 部分解决
- HandleResultUnresolved = "30" // 未解决
- )
- const (
- OperateTypeProcess = "20" // 处理
- OperateTypeResume = "25" // 转处理(恢复)
- OperateTypeTransfer = "40" // 转研发
- OperateTypeSuspend = "70" // 挂起
- OperateTypeClose = "80" // 关闭
- )
- // OpsOperationEventKanbanSearchReq 看板搜索请求
- type OpsOperationEventKanbanSearchReq struct {
- KeyWords string `json:"keyWords"` // 关键字搜索(事件编号/标题)
- SearchType string `json:"searchType"` // 搜索字段: title/custName/feedbackReporter/eventNo
- EventType string `json:"eventType"` // 事件类型
- PriorityLevel string `json:"priorityLevel"` // 优先级
- }
- // AssignOpsUserReq 接收/分配运维人员请求
- type AssignOpsUserReq struct {
- Id int64 `json:"id" v:"min:1#事件ID不能为空"`
- OpsUserId int `json:"opsUserId"`
- OpsUserName string `json:"opsUserName"`
- }
- // AddRecordReq 添加处理记录请求
- type AddRecordReq struct {
- EventId int64 `json:"eventId" v:"min:1#事件ID不能为空"`
- HandleContent string `json:"handleContent" v:"required#处理内容不能为空"`
- HandleResult string `json:"handleResult"` // 处理结果
- }
- // OpsOperationEventHistorySearchReq 运维历史搜索请求
- type OpsOperationEventHistorySearchReq struct {
- ScopeType string `json:"scopeType"` // 范围: my-本人处理, all-全部
- IncludeClosed bool `json:"includeClosed"` // 是否包含未关闭事件
- EventTitle string `json:"eventTitle"` // 事件标题(模糊搜索)
- CustName string `json:"custName"` // 客户名称(模糊搜索)
- FeedbackReporter string `json:"feedbackReporter"` // 反馈人(模糊搜索)
- OpsUserName string `json:"opsUserName"` // 处理人(模糊搜索)
- BeginTime string `json:"beginTime"` // 反馈开始时间
- EndTime string `json:"endTime"` // 反馈结束时间
- request.PageReq
- }
- // OpsOperationEventHistoryExport 运维历史导出参数
- type OpsOperationEventHistoryExport struct {
- OpsOperationEventHistorySearchReq
- Columns []string `json:"columns"` // 导出列
- }
- // OpsOperationEventHistoryExportData 运维历史导出数据
- type OpsOperationEventHistoryExportData struct {
- EventNo string `json:"eventNo" export:"事件编号"`
- EventTitle string `json:"eventTitle" export:"事件标题"`
- EventStatus string `json:"eventStatus" export:"事件状态"`
- EventType string `json:"eventType" export:"事件类型"`
- CustName string `json:"custName" export:"客户名称"`
- OpsUserName string `json:"opsUserName" export:"处理人员"`
- FeedbackDate string `json:"feedbackDate" export:"反馈时间"`
- PriorityLevel string `json:"priorityLevel" export:"优先级"`
- HandleProcess string `json:"handleProcess" export:"处理过程"`
- ClosedTime string `json:"closedTime" export:"关闭时间"`
- }
- // OpsOperationEventHistoryExportContent 运维历史导出内容
- type OpsOperationEventHistoryExportContent struct {
- Content string `json:"content"` // 导出内容(base64编码)
- }
- type OpsOperationEventExport struct {
- Columns []string `json:"columns"`
- }
- type OpsOperationEventExportData struct {
- EventNo string `json:"eventNo" export:"事件编号"`
- EventTitle string `json:"eventTitle" export:"事件标题"`
- EventStatus string `json:"eventStatus" export:"事件状态"`
- EventType string `json:"eventType" export:"事件类型"`
- CustName string `json:"custName" export:"客户名称"`
- OpsUserName string `json:"opsUserName" export:"处理人员"`
- FeedbackDate string `json:"feedbackDate" export:"反馈时间"`
- PriorityLevel string `json:"priorityLevel" export:"优先级"`
- HandleProcess string `json:"handleProcess" export:"处理过程"`
- }
|