IDictService.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.modules.system.service;
  18. import com.baomidou.mybatisplus.core.metadata.IPage;
  19. import com.baomidou.mybatisplus.extension.service.IService;
  20. import org.springblade.modules.system.entity.Dict;
  21. import org.springblade.modules.system.vo.DictVO;
  22. import java.util.List;
  23. /**
  24. * 服务类
  25. *
  26. * @author Chill
  27. * @since 2018-12-24
  28. */
  29. public interface IDictService extends IService<Dict> {
  30. /**
  31. * 自定义分页
  32. *
  33. * @param page
  34. * @param dict
  35. * @return
  36. */
  37. IPage<DictVO> selectDictPage(IPage<DictVO> page, DictVO dict);
  38. /**
  39. * 树形结构
  40. *
  41. * @return
  42. */
  43. List<DictVO> tree();
  44. /**
  45. * 获取字典表对应中文
  46. *
  47. * @param code 字典编号
  48. * @param dictKey 字典序号
  49. * @return
  50. */
  51. String getValue(String code, Integer dictKey);
  52. /**
  53. * 获取字典表
  54. *
  55. * @param code 字典编号
  56. * @return
  57. */
  58. List<Dict> getList(String code);
  59. }