service.ftl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package ${code.packageName}.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.inkasso.adapter.service.KafubaoService;
  4. import ${code.packageName}.entity.${code.className}DO;
  5. import ${code.packageName}.model.dto.${code.className}DTO;
  6. import ${code.packageName}.model.request.Add${code.className}Request;
  7. import ${code.packageName}.model.request.Edit${code.className}Request;
  8. /**
  9. * @author ${code.author}
  10. * @date ${.now?string('yyyy-MM-dd')}
  11. */
  12. <#if code.parentName = "BaseBean">
  13. public interface ${code.className}Service extends KafubaoService<${code.className}DO,${code.className}DTO> {
  14. /**
  15. * 添加操作
  16. * @param add${code.className}Request
  17. */
  18. void add${code.className}(Add${code.className}Request add${code.className}Request);
  19. /**
  20. * 编辑操作
  21. * @param edit${code.className}Request
  22. */
  23. void edit${code.className}(Edit${code.className}Request edit${code.className}Request);
  24. /**
  25. * 通过id获取详细信息
  26. * @param id
  27. */
  28. ${code.className}DTO get${code.className}DtoById(Long id);
  29. /**
  30. * 删除demo
  31. */
  32. void delete${code.className}(Long id);
  33. }
  34. </#if>
  35. <#if code.parentName = "RelationBaseBean">
  36. public interface ${code.className}Service extends IService<${code.className}DO> {
  37. /**
  38. * 添加操作
  39. * @param add${code.className}Request
  40. */
  41. void add${code.className}(Add${code.className}Request add${code.className}Request);
  42. /**
  43. * 编辑操作
  44. * @param edit${code.className}Request
  45. */
  46. void edit${code.className}(Edit${code.className}Request edit${code.className}Request);
  47. /**
  48. * 通过id获取详细信息
  49. * @param id
  50. */
  51. ${code.className}DTO get${code.className}DtoById(Long id);
  52. /**
  53. * 删除
  54. */
  55. void delete${code.className}(Long id);
  56. }
  57. </#if>