chore(init): 初始化解忧商行项目并完成 Phase 0 基座
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package mohong
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// Repository 撞车数据访问。
|
||||
type Repository struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
// NewRepository 创建仓库。
|
||||
func NewRepository(db *gorm.DB) *Repository {
|
||||
return &Repository{db: db}
|
||||
}
|
||||
Reference in New Issue
Block a user