Introduces a branch_user join table linking branches to users, plus create/delete API endpoints under the auth module for managing branch assignments. The create response includes the branch's localized name via a join. Regenerated swagger docs to include the new endpoints. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
12 lines
403 B
Go
Executable File
12 lines
403 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)
|
|
CreateBranchUser(ctx context.Context, dto CreateBranchUserDTO) (BranchUserDTO, error)
|
|
DeleteBranchUser(ctx context.Context, id int64) error
|
|
}
|