package com.yh.service;
import com.yh.model.Customer;
import com.yh.model.PageBean;
import java.util.List;
import java.util.Map;
public interface CustomerService {
/**
* 查询所有
* @return 数据集合
*/
List<Customer> showAllCustomer();
/**
* 添加客户信息
* @param customer
* @return true:成功 false:邮箱已存在
*/
int register(Customer customer);
/**
* 根据主键查询客户信息
* @param id 主键
* @return
*/
Customer selectId(int id);
/**
* 修改客户信息
* @param customer
* @return true:成功 false:邮箱已存在
*/
boolean updateService(Customer customer);
/**
* 根据id删除客户信息
* @param id 主键
*/
boolean deleteService(int id);
/**
* 分页查询
* @param pageNum 当前页码
* @param map 搜索条件
* @return
*/
PageBean queryByPage(String pageNum, Map<String,String[]>map);
}