Align schema, API routes, and auth with updated admin domain model.
Rename users table fields and loan documents table, expand branch billing credentials, switch to /api/admin prefix, refactor auth endpoints, replace PATCH with PUT for status updates, remove file upload APIs, and regenerate Swagger with ordered tags. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,7 +3,7 @@ package auth
|
||||
import "context"
|
||||
|
||||
type Repository interface {
|
||||
Login(ctx context.Context, dto LoginDTO) (ResLoginDTO, error)
|
||||
CheckAdmin(ctx context.Context, id int) (ResLoginDTO, error)
|
||||
GetProfile(ctx context.Context, req string) (ResUserDTO, error)
|
||||
Login(ctx context.Context, dto LoginDTO) (UserCredentials, error)
|
||||
GetUserByID(ctx context.Context, id int) (UserCredentials, error)
|
||||
GetProfile(ctx context.Context, id int) (UserProfileDTO, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user