package com.huigou.bpm.management.application;

import com.huigou.bpm.management.domain.model.ServiceRegistration;
import com.huigou.bpm.management.domain.query.ServiceRegistrationQueryRequest;
import org.springframework.data.domain.Page;

import java.util.Map;

/**
 * @author yonghuan
 */
public interface ServiceRegistrationApplication {

    ServiceRegistration add(ServiceRegistration serviceRegistration);

    void deleteById(String id);

    ServiceRegistration updateById(ServiceRegistration serviceRegistration);

    void updateSequence(Map<String, Integer> idAndSequencePair);

    ServiceRegistration findById(String id);

    Page<Map<String, Object>> sliceQuery(ServiceRegistrationQueryRequest queryRequest);

}
