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.
71 lines
1.3 KiB
71 lines
1.3 KiB
package priv.jesse.mall.service;
|
|
|
|
import org.springframework.data.domain.Example;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.http.HttpRequest;
|
|
import priv.jesse.mall.entity.AdminUser;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import java.util.List;
|
|
|
|
public interface AdminUserService {
|
|
/**
|
|
* 根据id查询
|
|
*
|
|
* @param id
|
|
* @return
|
|
*/
|
|
AdminUser findById(int id);
|
|
|
|
/**
|
|
* 分页查询所有
|
|
*
|
|
* @param pageable
|
|
* @return
|
|
*/
|
|
Page<AdminUser> findAll(Pageable pageable);
|
|
|
|
/**
|
|
* 按条件查询
|
|
*
|
|
* @param example
|
|
* @return
|
|
*/
|
|
List<AdminUser> findAllExample(Example<AdminUser> example);
|
|
|
|
/**
|
|
* 更新
|
|
*
|
|
* @param adminUser
|
|
* @return
|
|
*/
|
|
void update(AdminUser adminUser);
|
|
|
|
/**
|
|
* 创建
|
|
*
|
|
* @param adminUser
|
|
* @return
|
|
*/
|
|
int create(AdminUser adminUser);
|
|
|
|
/**
|
|
* 根据Id删除
|
|
*
|
|
* @param id
|
|
* @return
|
|
*/
|
|
void delById(int id);
|
|
|
|
/**
|
|
* 检查登录
|
|
* @param request
|
|
* @param username
|
|
* @param pwd
|
|
* @return
|
|
*/
|
|
AdminUser checkLogin(HttpServletRequest request,String username, String pwd);
|
|
|
|
}
|