小程序一些功能更新
This commit is contained in:
27
internal/model/entity/entity_event_import_logs.go
Normal file
27
internal/model/entity/entity_event_import_logs.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package entity
|
||||
|
||||
import "github.com/gogf/gf/v2/os/gtime"
|
||||
|
||||
// EventImportLogs 员工导入记录/审计(两段式:预览草稿 → 确认入库)。
|
||||
//
|
||||
// 快照防篡改方案:**DB 快照 by id**(不用 HMAC)。
|
||||
// 预览时把「原始行 + 逐行分类判定」序列化为 Snapshot 落库(status=draft);
|
||||
// 确认时凭 Id 从库读回快照,只接受快照内的行 —— 无需密钥、无硬编码密钥隐患。
|
||||
type EventImportLogs struct {
|
||||
Id int64 `json:"id"`
|
||||
EnterpriseId int64 `json:"enterprise_id"`
|
||||
EventId int64 `json:"event_id"` // 0=仅入企业库,不纳入某活动
|
||||
FileName string `json:"file_name"`
|
||||
Status string `json:"status"` // draft 预览中 / committed 已入库 / cancelled 已取消
|
||||
Token string `json:"token"` // 预览快照令牌(保留字段;确认以 Id 为准)
|
||||
Snapshot string `json:"snapshot"` // 解析后完整行 + 分类判定 JSON
|
||||
Total int `json:"total"`
|
||||
Inserted int `json:"inserted"`
|
||||
Updated int `json:"updated"`
|
||||
Skipped int `json:"skipped"`
|
||||
Conflict int `json:"conflict"`
|
||||
Conflicts string `json:"conflicts"` // 人工裁决结果 JSON
|
||||
Operator string `json:"operator"`
|
||||
CreatedAt *gtime.Time `json:"created_at"`
|
||||
UpdatedAt *gtime.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user