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>
10 lines
261 B
Go
Executable File
10 lines
261 B
Go
Executable File
package auth
|
|
|
|
import "context"
|
|
|
|
type Repository interface {
|
|
Login(ctx context.Context, dto LoginDTO) (UserCredentials, error)
|
|
GetUserByID(ctx context.Context, id int) (UserCredentials, error)
|
|
GetProfile(ctx context.Context, id int) (UserProfileDTO, error)
|
|
}
|