You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
438 B
19 lines
438 B
package com.example.sbmongo.service;
|
|
|
|
import com.example.sbmongo.model.User;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import java.util.List;
|
|
|
|
public interface UserService {
|
|
User save(User user);
|
|
|
|
Page<User> findByUsername(String username, Pageable pageable1);
|
|
|
|
List<User> finAll();
|
|
|
|
User findByUsername(String nelson);
|
|
|
|
Page<User> findByPage(Pageable pageable);
|
|
}
|
|
|