Add branch_user table and branch-user assignment endpoints
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>
This commit is contained in:
@@ -6,4 +6,6 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user