feat(kol): repository layer for all KOL tables

This commit is contained in:
2026-04-17 08:17:22 +08:00
parent 2c58fc591e
commit 3d4842e983
8 changed files with 1341 additions and 0 deletions
@@ -58,6 +58,14 @@ func timeFromTimestamp(value pgtype.Timestamptz) time.Time {
return value.Time
}
func optionalTime(value pgtype.Timestamptz) *time.Time {
if !value.Valid {
return nil
}
t := value.Time
return &t
}
func pgText(value *string) pgtype.Text {
if value == nil {
return pgtype.Text{}