package com.bcxin.api.interfaces.rbacs;
import com.bcxin.api.interfaces.rbacs.requests.ResourceRequest;
import com.bcxin.api.interfaces.rbacs.responses.ResourceGetResponse;
import org.springframework.stereotype.Component;

import java.util.Collection;

@Component
public interface RbacResourceRpcProvider {
    void create(String categoryId, ResourceRequest request);

    void update(String categoryId, String id, ResourceRequest request);

    void delete(String categoryId, String id);

    Collection<ResourceGetResponse> getAll(String categoryId);
}
