package io.gisbi.resource;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author bi-coder
 */
@RestController
@RequestMapping("/resource")
public class ResourceApi {
    @Resource
    private ResourceService resourceService;

    @PostMapping("checkPermission/{id}")
    public boolean checkPermission(@PathVariable("id") Long id) {
        return resourceService.checkPermission(id);
    }
}
