package com.goafanti.customer.service; import java.util.List; import com.goafanti.common.model.Customer; import com.goafanti.common.model.CustomerLog; import com.goafanti.core.mybatis.page.Pagination; import com.goafanti.customer.bo.CustomerIn; import com.goafanti.customer.bo.CustomerOut; public interface CustomerService { /** * 添加客户信息 * @param cus * @return */ int addCustomer(Customer cus); /** * 删除客户信息 * @param id */ void deleteCustomer(String id); /** * 查询上级ID集合 * @param userId * @return */ String findLadderIds(String userId); /** * 修改用户的管理层ID * @param ladderId */ void updateLadderIds(String ladderId); /** * 获取私有客户 * @return */ Pagination getPrivateCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber); /** * 获取公共客户 * @return */ Pagination getPublicCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber); /** * 获取团队客户 * @return */ Pagination getTeamCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber); /** * 获取公司客户 * @return */ Pagination getCompanyCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber); /** * * @param cus 添加日志 */ public void saveCustomerLog(CustomerIn cus,String operatorType,String cid); /** * * @param 查询客户详情 * @param id */ public CustomerOut findCustomerDetails(String id); /** * * @param 修改客户信息 * @param id */ public int updateCustomer(Customer c); /** * * @param id * @return 查询公司基本信息 */ public CustomerOut findCustomerBaseInfo(String id); /** * 查看日志信息 * @param customerId * @return */ public List listCustomerLog(String customerId); }