feat: CR login, register, subscribe

This commit is contained in:
ericprd
2025-02-24 16:48:20 +08:00
parent ae5b2cb975
commit cb3d06fa02
48 changed files with 1027 additions and 59 deletions
+5 -4
View File
@@ -2,17 +2,18 @@ package staffrepository
import (
"github.com/ardeman/project-legalgo-go/database"
staffmodel "github.com/ardeman/project-legalgo-go/database/staff"
authdomain "github.com/ardeman/project-legalgo-go/internal/domain/auth"
)
type StaffRepository struct {
DB *database.DB
}
type StaffInterface interface {
GetStaff(string) (*staffmodel.Staff, error)
type StaffIntf interface {
GetStaffByEmail(string) (*authdomain.LoginRepoResponse, error)
Create(*authdomain.Staff) (*authdomain.Staff, error)
}
func New(db *database.DB) StaffInterface {
func New(db *database.DB) StaffIntf {
return &StaffRepository{db}
}