service.java.vm 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package ${package.Service};
  2. #foreach($field in ${table.fields})
  3. #if(${field.name.equals("name")})
  4. #set($hasName=true)
  5. #end
  6. #end
  7. import ${package.Entity}.${entity};
  8. import ${superServiceClassPackage};
  9. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  10. import com.baomidou.mybatisplus.core.metadata.IPage;
  11. import org.apache.poi.xssf.usermodel.XSSFWorkbook;
  12. import org.springframework.web.multipart.MultipartFile;
  13. /**
  14. * <p>
  15. * $!{table.comment} 服务类
  16. * </p>
  17. *
  18. * @author ${author}
  19. * @since ${date}
  20. */
  21. #if(${kotlin})
  22. interface ${table.serviceName} : ${superServiceClass}<${entity}>
  23. #else
  24. public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
  25. Page<${table.entityName}> selectPage(Page page,${table.entityName} ${table.entityPath});
  26. ${table.entityName} detail(Long id);
  27. Boolean add(${table.entityName} ${table.entityPath});
  28. Boolean update(${table.entityName} ${table.entityPath});
  29. Boolean delete(Long id);
  30. }
  31. #end