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.
25 lines
678 B
25 lines
678 B
package sut.edu.zyp.dormitory.manage.repository;
|
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
|
|
import sut.edu.zyp.dormitory.manage.entity.AdminEntity;
|
|
|
|
/**
|
|
* 系统管理员存储服务
|
|
*
|
|
* @author zyp
|
|
* @version 0.0.1
|
|
* @since 0.0.1
|
|
*/
|
|
@RepositoryRestResource(collectionResourceRel = "admin", path = "admin")
|
|
public interface AdminRepository extends PagingAndSortingRepository<AdminEntity, String> {
|
|
|
|
/**
|
|
* 按照管理员账号查询
|
|
*
|
|
* @param name 管理员账号
|
|
* @return 管理员信息
|
|
*/
|
|
AdminEntity findByName(String name);
|
|
}
|