RemoteService.java.template 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package org.dromara.${module}.api;
  2. import org.dromara.${module}.api.domain.dto.Remote${ClassName}Dto;
  3. import org.dromara.${module}.api.domain.dto.Remote${ClassName}QueryDto;
  4. import org.dromara.common.core.domain.R;
  5. import org.dromara.common.mybatis.core.page.TableDataInfo;
  6. import java.util.List;
  7. /**
  8. * ${tableComment}远程调用接口
  9. *
  10. * @author ${author}
  11. * @date ${date}
  12. */
  13. public interface Remote${ClassName}Service {
  14. /**
  15. * 根据ID查询${tableComment}
  16. *
  17. * @param ${pkField} ${pkComment}
  18. * @return ${tableComment}信息
  19. */
  20. R<Remote${ClassName}Dto> select${ClassName}ById(${pkType} ${pkField});
  21. /**
  22. * 查询${tableComment}列表(不分页)
  23. *
  24. * @param queryDto 查询条件
  25. * @return ${tableComment}列表
  26. */
  27. List<Remote${ClassName}Dto> select${ClassName}List(Remote${ClassName}QueryDto queryDto);
  28. /**
  29. * 分页查询${tableComment}列表
  30. *
  31. * @param queryDto 查询条件
  32. * @return 分页结果
  33. */
  34. TableDataInfo<Remote${ClassName}Dto> select${ClassName}Page(Remote${ClassName}QueryDto queryDto);
  35. /**
  36. * 新增${tableComment}
  37. *
  38. * @param dto ${tableComment}信息
  39. * @return 操作结果
  40. */
  41. R<Void> insert${ClassName}(Remote${ClassName}Dto dto);
  42. /**
  43. * 修改${tableComment}
  44. *
  45. * @param dto ${tableComment}信息
  46. * @return 操作结果
  47. */
  48. R<Void> update${ClassName}(Remote${ClassName}Dto dto);
  49. /**
  50. * 删除${tableComment}
  51. *
  52. * @param ids ${pkComment}数组
  53. * @return 操作结果
  54. */
  55. R<Void> delete${ClassName}ByIds(${pkType}[] ids);
  56. }