Files
team-api/internal/model/do/sys_idempotency_records.go
2026-05-10 12:21:27 +08:00

24 lines
1.1 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysIdempotencyRecords is the golang structure of table sys_idempotency_records for DAO operations like Where/Data.
type SysIdempotencyRecords struct {
g.Meta `orm:"table:sys_idempotency_records, do:true"`
Id any // 主键ID
IdempotencyKey any // 幂等键(来自请求头 Idempotency-Key)
RequestHash any // 请求体哈希(SHA-256,用于校验请求一致性)
ResponseBody any // 首次处理的响应体(幂等返回时复用)
Status any // 状态:processing(处理中)/ completed(已完成)/ failed(失败)
ExpiresAt *gtime.Time // 过期时间(过期后记录可清理)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}