GenDatasourceConfService.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 2021-2025, LXQ 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 com 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: LXQ (609827073@qq.com)
  16. */
  17. package com.kxs.codegen.biz.service;
  18. import com.baomidou.mybatisplus.extension.service.IService;
  19. import com.kxs.codegen.biz.entity.GenDatasourceConf;
  20. /**
  21. * 数据源表
  22. *
  23. * @author LXQ
  24. * @date 2021-03-31 16:00:20
  25. */
  26. public interface GenDatasourceConfService extends IService<GenDatasourceConf> {
  27. /**
  28. * 保存数据源并且加密
  29. * @param genDatasourceConf
  30. * @return
  31. */
  32. Boolean saveDsByEnc(GenDatasourceConf genDatasourceConf);
  33. /**
  34. * 更新数据源
  35. * @param genDatasourceConf
  36. * @return
  37. */
  38. Boolean updateDsByEnc(GenDatasourceConf genDatasourceConf);
  39. /**
  40. * 更新动态数据的数据源列表
  41. * @param datasourceConf
  42. * @return
  43. */
  44. void addDynamicDataSource(GenDatasourceConf datasourceConf);
  45. /**
  46. * 校验数据源配置是否有效
  47. * @param datasourceConf 数据源信息
  48. * @return 有效/无效
  49. */
  50. Boolean checkDataSource(GenDatasourceConf datasourceConf);
  51. /**
  52. * 通过数据源名称删除
  53. * @param dsIds 数据源ID
  54. * @return
  55. */
  56. Boolean removeByDsId(Long[] dsIds);
  57. }