package com.kym.service.admin;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.kym.entity.admin.Station;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kym.entity.admin.vo.StationVo;
import com.kym.entity.enplus.EnStationStatsInfo;
import com.kym.entity.enplus.EnStationStatusInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 充电站信息 服务类
 * </p>
 *
 * @author skyline
 * @since 2023-08-12
 */
public interface StationService extends IService<Station> {

    public List<StationVo> queryStationInfo(int pageNum, int pageSize) throws JsonProcessingException;

    public List<EnStationStatusInfo> stationStatus(String[] ids);

    public EnStationStatsInfo stationStats(String stationId, String startTime, String endTime);

    @Transactional(rollbackFor = Exception.class)
    public void pullEnStationInfos();

}
