package com.huigou.bpm.management.mapper;

import com.huigou.bpm.management.domain.query.ServiceRegistrationQueryRequest;
import com.topsunit.query.annotations.Dictionary;
import com.topsunit.query.annotations.Mapper;
import org.springframework.data.domain.Page;

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

/**
 * @author yonghuan
 */
@Mapper(xml = "config/bpm/query/serviceRegistrationMapper.xml")
public interface ServiceRegistrationMapper {

    @Dictionary(value = "serviceType", field = "kindId")
    Page<Map<String, Object>> sliceQuery(ServiceRegistrationQueryRequest queryRequest);

    List<Map<String, Object>> queryKinds(ServiceRegistrationQueryRequest queryRequest);

}
