show first entry
This commit is contained in:
11
backend/blog/resource.go
Normal file
11
backend/blog/resource.go
Normal file
@ -0,0 +1,11 @@
|
||||
package blog
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Service struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func New(db *gorm.DB) *Service {
|
||||
return &Service{db: db}
|
||||
}
|
Reference in New Issue
Block a user