You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
898 B

  1. package com.example.demo.service;
  2. import java.time.LocalDateTime;
  3. import java.time.LocalTime;
  4. import java.time.ZoneId;
  5. import java.util.Date;
  6. import java.util.List;
  7. /**
  8. * @program: GOLD
  9. * @ClassName GeneralService
  10. * @description:
  11. * @author: huangqizhen
  12. * @create: 202506-22 10:55
  13. * @Version 1.0
  14. **/
  15. public interface GeneralService {
  16. //获取所有市场(地区)
  17. List<String> getMarket();
  18. //获取平台
  19. List<String> getPlatform();
  20. //获取商品
  21. List<String> getGoods();
  22. //获取活动
  23. List<String> getActivity();
  24. //获取昨天的日期
  25. Date getYesterday();
  26. //获取某天的开始时间(00:00:00)
  27. Date getStartOfDay(Date date);
  28. //转换日期格式为yyyy-MM-dd
  29. String formatDate(Date date) ;
  30. //获取时间段内的所有日期(包含起始和结束日)
  31. List<Date> getAllDatesBetween(Date start, Date end);
  32. }