feat: login service and implement database storage

This commit is contained in:
ericprd
2025-02-23 22:34:26 +08:00
parent a95a5ca521
commit 5fcb5c2cd5
24 changed files with 576 additions and 8 deletions
+18
View File
@@ -0,0 +1,18 @@
package staffrepository
import (
"github.com/ardeman/project-legalgo-go/database"
staffmodel "github.com/ardeman/project-legalgo-go/database/staff"
)
type StaffRepository struct {
DB *database.DB
}
type StaffInterface interface {
GetStaff(string) (*staffmodel.Staff, error)
}
func New(db *database.DB) StaffInterface {
return &StaffRepository{db}
}