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
|
|
|
|
|
|
|
|
|
|
// AudApproval 对应 aud_approval,保存审批流与复核意见。
|
|
|
|
|
|
type AudApproval struct {
|
|
|
|
|
|
Entity
|
2026-07-27 03:18:41 +08:00
|
|
|
|
BusinessType string `gorm:"column:business_type;type:varchar(64);not null" json:"business_type"`
|
|
|
|
|
|
BusinessIdentity string `gorm:"column:business_identity;type:varchar(36);not null;index" json:"business_identity"`
|
|
|
|
|
|
ApplicantIdentity string `gorm:"column:applicant_identity;type:varchar(36);not null;index" json:"applicant_identity"`
|
|
|
|
|
|
Opinion string `gorm:"column:opinion;type:text;not null;default:''" json:"opinion"`
|
|
|
|
|
|
HandlerIdentity string `gorm:"column:handler_identity;type:varchar(36);not null;default:'';index" json:"handler_identity"`
|
|
|
|
|
|
HandledAt *time.Time `gorm:"column:handled_at;type:timestamptz" json:"handled_at"`
|
2026-07-27 00:18:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { database.AppendMigrate(&AudApproval{}) }
|
|
|
|
|
|
func (table *AudApproval) TableName() string { return "aud_approval" }
|