package jnpf.doclibrary.controller;

import cn.hutool.json.JSONObject;
import jnpf.base.ActionResult;
import jnpf.doclibrary.service.DataReportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 数据报表控制器
 *
 * @author yanwenfu
 * @create 2024-07-19
 */
@RestController
@RequestMapping(value = "/dataReport")
public class DataReportController {

    @Resource
    private DataReportService dataReportService;

    @GetMapping(value = "/url/config")
    public Object getDataReportUrlConfig() {

        JSONObject json = dataReportService.getDataReportUrlConfig();
        return ActionResult.success(json);
    }
}
