package com.eshore.gringotts.web.domain.base.controller;

import com.eshore.gringotts.web.configuration.amis.AmisResponse;
import com.eshore.gringotts.web.domain.base.controller.query.Query;
import org.eclipse.collections.api.list.ImmutableList;

/**
 * @author lanyuanxiaoyao
 * @date 2024-11-28
 */
public interface ListController<LIST_ITEM> {
    AmisResponse<ImmutableList<LIST_ITEM>> list() throws Exception;

    AmisResponse<ImmutableList<LIST_ITEM>> list(Query query) throws Exception;
}
