Added commisions endponts
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
package com.plannaplan.services;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.plannaplan.entities.Commision;
|
||||
import com.plannaplan.entities.User;
|
||||
import com.plannaplan.repositories.CommisionRepository;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -19,4 +22,9 @@ public class CommisionService {
|
||||
return commision;
|
||||
|
||||
}
|
||||
|
||||
public List<Commision> getUsersCommisions(User user) {
|
||||
Long id = user.getId();
|
||||
return this.repo.getUsers(id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user