service.java.ftl 869 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package ${package};
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.github.yulichang.base.MPJBaseService;
  4. import com.xjrsoft.module.${outputArea}.entity.${entityClass};
  5. import lombok.Data;
  6. import java.util.List;
  7. /**
  8. * @title: ${tableComment}
  9. * @Author ${author}
  10. * @Date: ${date}
  11. * @Version 1.0
  12. */
  13. public interface I${className}Service extends MPJBaseService<${entityClass}> {
  14. <#if isMulti>
  15. /**
  16. * 新增
  17. *
  18. * @param ${entityClass?uncap_first}
  19. * @return
  20. */
  21. Boolean add(${entityClass} ${entityClass?uncap_first});
  22. /**
  23. * 更新
  24. *
  25. * @param ${entityClass?uncap_first}
  26. * @return
  27. */
  28. Boolean update(${entityClass} ${entityClass?uncap_first});
  29. /**
  30. * 删除
  31. *
  32. * @param ids
  33. * @return
  34. */
  35. Boolean delete(List<Long> ids);
  36. </#if>
  37. }