// ================================================================================= // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. // ================================================================================= package entity import ( "github.com/gogf/gf/v2/encoding/gjson" "github.com/gogf/gf/v2/os/gtime" ) // ApprovalRequest is the golang structure for table approval_request. type ApprovalRequest struct { Id uint64 `json:"id" orm:"id" description:"主键"` TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"` ApprovalNo string `json:"approvalNo" orm:"approval_no" description:"审批单号"` ApprovalType string `json:"approvalType" orm:"approval_type" description:"审批类型"` TargetType string `json:"targetType" orm:"target_type" description:"目标类型"` TargetId uint64 `json:"targetId" orm:"target_id" description:"目标ID"` Action string `json:"action" orm:"action" description:"拟执行动作"` Title string `json:"title" orm:"title" description:"审批标题"` PayloadJson *gjson.Json `json:"payloadJson" orm:"payload_json" description:"待执行数据快照"` DiffJson *gjson.Json `json:"diffJson" orm:"diff_json" description:"前后差异"` RiskLevel int `json:"riskLevel" orm:"risk_level" description:"风险级别"` RequiredApprovals uint `json:"requiredApprovals" orm:"required_approvals" description:"需要通过数"` ApprovalStatus int `json:"approvalStatus" orm:"approval_status" description:"审批状态"` ApplicantId uint64 `json:"applicantId" orm:"applicant_id" description:"申请人"` SubmittedAt *gtime.Time `json:"submittedAt" orm:"submitted_at" description:"提交时间"` DecidedAt *gtime.Time `json:"decidedAt" orm:"decided_at" description:"决定时间"` ExecutedAt *gtime.Time `json:"executedAt" orm:"executed_at" description:"执行时间"` ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" description:"超时时间"` Version uint `json:"version" orm:"version" description:"乐观锁"` Remark string `json:"remark" orm:"remark" description:"备注"` CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"` UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` }