| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package contract
- import (
- "dashoo.cn/opms_parent/app/model/contract/internal"
- )
- // CtrContractEvent is the golang structure for table ctr_contract_event.
- type CtrContractEvent internal.CtrContractEvent
- // 事件类型常量
- const (
- ContractEventTypeDelivery = "10" // 交付事件
- ContractEventTypeOperation = "20" // 运维事件
- )
- // CtrContractEventSearchReq 合同事件登记列表查询请求
- type CtrContractEventSearchReq struct {
- ContractId int `json:"contractId"` // 合同ID
- EventType string `json:"eventType"` // 事件类型 10=交付 20=运维
- EventTitle string `json:"eventTitle"` // 事件标题(模糊)
- EventStatus []string `json:"eventStatus"` // 事件状态
- FeedbackReporter string `json:"feedbackReporter"` // 反馈人(模糊)
- FeedbackDateStart string `json:"feedbackDateStart"` // 反馈时间起(yyyy-MM-dd)
- FeedbackDateEnd string `json:"feedbackDateEnd"` // 反馈时间止(yyyy-MM-dd)
- OpsUserName string `json:"opsUserName"` // 负责人(模糊)
- PageNum int `json:"pageNum"`
- PageSize int `json:"pageSize"`
- }
- // GetPage 获取分页参数
- func (r *CtrContractEventSearchReq) GetPage() int {
- if r.PageNum <= 0 {
- r.PageNum = 1
- }
- if r.PageSize <= 0 {
- r.PageSize = 10
- }
- return r.PageNum
- }
- // CtrContractEventAddReq 新增合同事件登记请求(同时创建子事件)
- type CtrContractEventAddReq struct {
- // 事件大类
- EventType string `json:"eventType" v:"required#请选择事件大类"` // 10=交付事件 20=运维事件
- // 事件基本信息(对应 ops_operation_event / ops_delivery_project_event)
- EventTitle string `json:"eventTitle" v:"required#请输入事件标题"` // 事件标题
- EventDesc string `json:"eventDesc"` // 事件描述(富文本)
- SubEventType string `json:"subEventType"` // 子事件类型(运维事件类型 / 交付事件类型)
- PriorityLevel string `json:"priorityLevel"` // 优先级(运维事件用,P1/P2/P3)
- // 合同及客户信息
- ContractId int `json:"contractId" v:"required#请选择合同"` // 合同ID
- ContractCode string `json:"contractCode"` // 合同编号
- ContractName string `json:"contractName"` // 合同名称
- CustId int `json:"custId"` // 客户ID
- CustName string `json:"custName"` // 客户名称
- ProductLine string `json:"productLine"` // 产品线
- IsBig string `json:"isBig"` // 是否重大
- InchargeId int `json:"inchargeId"` // 负责人ID
- InchargeName string `json:"inchargeName"` // 负责人名称
- // 反馈信息
- FeedbackReporter string `json:"feedbackReporter"` // 反馈人
- FeedbackSource string `json:"feedbackSource"` // 反馈来源
- FeedbackDate string `json:"feedbackDate"` // 反馈时间
- // 附件
- Attachments []CtrContractEventAttachmentReq `json:"attachments"`
- // 备注
- Remark string `json:"remark"`
- }
- // CtrContractEventAttachmentReq 附件请求
- type CtrContractEventAttachmentReq struct {
- FileName string `json:"fileName"`
- FileUrl string `json:"fileUrl"`
- FileType string `json:"fileType"`
- }
- // CtrContractEventCancelReq 作废合同事件登记请求
- type CtrContractEventCancelReq struct {
- Id int `json:"id" v:"required#请传入记录ID"`
- EventId int `json:"eventId" v:"required#请传入事件ID"`
- EventType string `json:"eventType" v:"required#请传入事件类型"`
- CancelReason string `json:"cancelReason" v:"required#请填写作废原因"`
- }
- // CtrContractEventGetProjectReq 按合同ID查询交付项目请求
- type CtrContractEventGetProjectReq struct {
- ContractId int `json:"contractId" v:"required#请传入合同ID"`
- }
- // CtrContractEventProjectRsp 查询交付项目响应
- type CtrContractEventProjectRsp struct {
- Found bool `json:"found"` // 是否存在项目
- EventType string `json:"eventType"` // 推断的事件类型 10=交付 20=运维(仅 found=true 时有效)
- ProjectId int `json:"projectId"` // 项目ID(仅 found=true 时有效)
- ProjectStatus string `json:"projectStatus"` // 项目状态(仅 found=true 时有效)
- }
- // CtrContractEventCreateProjectReq 为合同创建交付项目(设为已验收状态)
- type CtrContractEventCreateProjectReq struct {
- ContractId int `json:"contractId" v:"required#请传入合同ID"`
- ContractCode string `json:"contractCode"`
- ContractName string `json:"contractName"`
- CustId int `json:"custId"`
- CustName string `json:"custName"`
- ProductLine string `json:"productLine"`
- InchargeId int `json:"inchargeId"`
- InchargeName string `json:"inchargeName"`
- }
- // CtrContractEventRsp 合同事件登记列表响应(UNION查询结果)
- type CtrContractEventRsp struct {
- CtrEventId int `json:"ctrEventId"` // ctr_contract_event.id
- EventId int `json:"eventId"` // 关联的事件ID
- EventType string `json:"eventType"` // 事件类型 10/20
- ContractId int `json:"contractId"` // 合同ID
- ContractCode string `json:"contractCode"` // 合同编号
- ContractName string `json:"contractName"` // 合同名称
- CustName string `json:"custName"` // 客户名称
- EventTitle string `json:"eventTitle"` // 事件标题
- EventNo string `json:"eventNo"` // 事件编号
- SubEventType string `json:"subEventType"` // 子事件类型
- EventStatus string `json:"eventStatus"` // 事件状态
- OpsUserName string `json:"opsUserName"` // 负责人
- FeedbackReporter string `json:"feedbackReporter"` // 反馈人
- FeedbackDate string `json:"feedbackDate"` // 反馈时间
- CompleteTime string `json:"completeTime"` // 处理时间
- CompleteDesc string `json:"completeDesc"` // 处理说明
- }
|