feat(expiry): 完成 #20 模块目录与健康路由

This commit is contained in:
root
2026-03-04 17:06:26 +08:00
parent fe9f64f51d
commit f092019c61
7 changed files with 109 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
package expiry
import "gorm.io/gorm"
// Repository 封装保质期模块的数据访问能力。
type Repository struct {
db *gorm.DB
}
func NewRepository(db *gorm.DB) *Repository {
return &Repository{db: db}
}