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.

40 lines
976 B

3 weeks ago
4 months ago
  1. package com.example.demo.service.coin;
  2. import com.example.demo.domain.vo.coin.ConsumeUser;
  3. import com.example.demo.domain.vo.coin.Result;
  4. import com.example.demo.domain.vo.coin.RoleVo;
  5. import com.github.pagehelper.PageInfo;
  6. import java.util.List;
  7. /**
  8. * @program: gold-java
  9. * @ClassName RoleService
  10. * @description:
  11. * @author: Double
  12. * @create: 202507-15 11:29
  13. * @Version 1.0
  14. **/
  15. public interface RoleService {
  16. //查询频道
  17. List<String> getChannel();
  18. //新增角色
  19. Result addRole(RoleVo roleVo);
  20. //新增角色二期替补
  21. Result addRole2(RoleVo roleVo);
  22. //查找全部角色
  23. Result selectAllRole();
  24. //根据父级id查找下属角色
  25. List<RoleVo> selectSubRole(Integer id);
  26. //分页查找角色
  27. PageInfo<RoleVo> selectBy(Integer pageNum, Integer pageSize, RoleVo roleVo);
  28. //删除角色
  29. Result deleteRole(RoleVo roleVo);
  30. //获取当前角色的上级角色
  31. RoleVo selectFather(Integer id);
  32. }