2026-07-27 00:18:42 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
2026-07-27 03:18:41 +08:00
|
|
|
|
import (
|
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|
|
|
|
|
)
|
2026-07-27 00:18:42 +08:00
|
|
|
|
|
2026-07-27 14:28:23 +08:00
|
|
|
|
// AuditApproval 对应 audit_approval,保存审批流与复核意见。
|
|
|
|
|
|
type AuditApproval struct {
|
2026-07-27 12:02:08 +08:00
|
|
|
|
Entity // 公共实体字段
|
|
|
|
|
|
BusinessType string `gorm:"column:business_type;type:varchar(64);not null" json:"business_type"` // business_type 业务字段
|
|
|
|
|
|
BusinessIdentity string `gorm:"column:business_identity;type:varchar(36);not null;index" json:"business_identity"` // business_identity 业务字段
|
|
|
|
|
|
ApplicantIdentity string `gorm:"column:applicant_identity;type:varchar(36);not null;index" json:"applicant_identity"` // applicant_identity 业务字段
|
|
|
|
|
|
Opinion string `gorm:"column:opinion;type:text;not null;default:''" json:"opinion"` // opinion 业务字段
|
|
|
|
|
|
HandlerIdentity string `gorm:"column:handler_identity;type:varchar(36);not null;default:'';index" json:"handler_identity"` // handler_identity 业务字段
|
|
|
|
|
|
HandledAt *time.Time `gorm:"column:handled_at;type:timestamptz" json:"handled_at"` // handled_at 业务字段
|
2026-07-27 00:18:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-27 14:28:23 +08:00
|
|
|
|
func init() { database.AppendMigrate(&AuditApproval{}) }
|
|
|
|
|
|
func (table *AuditApproval) TableName() string { return "audit_approval" }
|