IAgentService.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.tour.module.service;
  2. import com.tour.common.core.domain.entity.SysUser;
  3. import com.tour.module.domain.Agent;
  4. import com.baomidou.mybatisplus.extension.service.IService;
  5. import java.math.BigDecimal;
  6. import java.util.List;
  7. /**
  8. * 代理商信息Service接口
  9. *
  10. * @author zoe
  11. * @date 2023-05-23
  12. */
  13. public interface IAgentService extends IService<Agent> {
  14. /**
  15. * 查询列表
  16. *
  17. * @param agent 实体
  18. * @return 列表
  19. */
  20. List<Agent> queryList(Agent agent, SysUser user);
  21. List<Agent> selectAgentList(Agent agent, SysUser user);
  22. /**
  23. * 查询所有的代理商
  24. *
  25. * @return
  26. */
  27. List<Agent> getAgentAll(SysUser user);
  28. Agent getInfo(Long id, SysUser user);
  29. Boolean createAgent(Agent agent, SysUser user) throws Exception;
  30. List<Long> listAgent(Long id);
  31. /**
  32. * 查询自己和下级以及下下级的id
  33. *
  34. * @param id
  35. * @return
  36. */
  37. List<Long> getIds(Long id);
  38. Boolean updateAgent(Agent agent);
  39. Agent getInfo(SysUser user);
  40. Agent getByPid(Long pid);
  41. }