package com.inspect.bigmodel.controller;

import com.alibaba.fastjson.JSONObject;
import com.inspect.base.core.web.controller.BaseController;
import com.inspect.base.core.web.domain.AjaxResult;
import com.inspect.bigmodel.service.IBigModelResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping({"/bigmodel"})
public class BigModelResultController extends BaseController {

    @Autowired
    private IBigModelResultService bigModelResultService;

    @PostMapping({"/record/latest"})
    public AjaxResult getBigModelResult() {
        JSONObject jsonObject = this.bigModelResultService.getBigModelResult();
        return AjaxResult.success(jsonObject);
    }
}
