package com.autohome.frostmourne.monitor.service.core.service;

import java.util.List;
import java.util.Map;
import java.util.Optional;

import com.autohome.frostmourne.common.contract.PagerContract;
import com.autohome.frostmourne.monitor.model.contract.ServiceInfoContract;
import com.autohome.frostmourne.monitor.model.contract.ServiceInfoQueryForm;
import com.autohome.frostmourne.monitor.model.contract.ServiceInfoSaveForm;
import com.autohome.frostmourne.monitor.model.contract.ServiceInfoSimpleContract;

public interface IServiceInfoService {

    void save(ServiceInfoSaveForm form, String account);

    Optional<ServiceInfoContract> getContract(Long id);

    PagerContract<ServiceInfoContract> findContract(ServiceInfoQueryForm form);

    Optional<ServiceInfoSimpleContract> getSimpleContract(Long id);

    Map<Long, ServiceInfoSimpleContract> mapSimpleContractByIds(List<Long> ids);

}
