feat: Redemption Code

This commit is contained in:
EUForest
2026-01-05 17:53:31 +08:00
parent 5beff61e91
commit 518595b058
26 changed files with 1459 additions and 14 deletions
+20
View File
@@ -0,0 +1,20 @@
package redemption
import (
"github.com/redis/go-redis/v9"
"gorm.io/gorm"
)
// NewRedemptionCodeModel returns a model for the redemption_code table.
func NewRedemptionCodeModel(conn *gorm.DB, c *redis.Client) RedemptionCodeModel {
return &customRedemptionCodeModel{
defaultRedemptionCodeModel: newRedemptionCodeModel(conn, c),
}
}
// NewRedemptionRecordModel returns a model for the redemption_record table.
func NewRedemptionRecordModel(conn *gorm.DB, c *redis.Client) RedemptionRecordModel {
return &customRedemptionRecordModel{
defaultRedemptionRecordModel: newRedemptionRecordModel(conn, c),
}
}