feat(expiry): 完成 #20 模块目录与健康路由
This commit is contained in:
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user