package ${packageName}.controller.block;

import java.util.Map;
import ${packageName}.common.Result;
import ${packageName}.service.block.I${InstanceClassName}Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("${apiBasePath}")
public class ${InstanceClassName}Controller
{
    @Autowired
    private I${InstanceClassName}Service ${instanceClassName}Service;

    @GetMapping("/data")
    public Result<Map<String, Object>> data()
    {
        return Result.success(${instanceClassName}Service.loadData());
    }
}
