MSP-8974 fix

This commit is contained in:
chashintv committed 2026-11-23 13:27:39 +03:00
1 parent 24a8ea2578
commit e2af9c4978
4 files changed
+34 -50

No files matched your search

+2 -2
View File
@@ -39,8 +39,8 @@ func NewRole(roleService roleService) Role {
// @Failure 400 {object} apierrors.Error
// @Failure 500 {object} apierrors.Error
// @Router /role/all [POST]
func (u Role) All(ctx context.Context) ([]domain.Role, error) {
users, err := u.roleService.All(ctx)
func (u Role) All(ctx context.Context, req domain.RoleAllRequest) ([]domain.Role, error) {
users, err := u.roleService.All(ctx, req)
if err != nil {
return nil, errors.WithMessage(err, "get roles")
}