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
36 lines
898 B
package com.example.demo.service;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalTime;
|
|
import java.time.ZoneId;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @program: GOLD
|
|
* @ClassName GeneralService
|
|
* @description:
|
|
* @author: huangqizhen
|
|
* @create: 2025−06-22 10:55
|
|
* @Version 1.0
|
|
**/
|
|
|
|
public interface GeneralService {
|
|
//获取所有市场(地区)
|
|
List<String> getMarket();
|
|
//获取平台
|
|
List<String> getPlatform();
|
|
//获取商品
|
|
List<String> getGoods();
|
|
//获取活动
|
|
List<String> getActivity();
|
|
//获取昨天的日期
|
|
Date getYesterday();
|
|
//获取某天的开始时间(00:00:00)
|
|
Date getStartOfDay(Date date);
|
|
//转换日期格式为yyyy-MM-dd
|
|
String formatDate(Date date) ;
|
|
//获取时间段内的所有日期(包含起始和结束日)
|
|
List<Date> getAllDatesBetween(Date start, Date end);
|
|
|
|
}
|