增加查看数据接口
This commit is contained in:
parent
903216e1e5
commit
5406bb409f
@ -1,7 +1,10 @@
|
||||
package cn.iocoder.yudao.module.llm.controller.admin.datarefluxconfig;
|
||||
|
||||
import cn.iocoder.yudao.module.llm.controller.admin.datarefluxdata.vo.DataRefluxDataRespVO;
|
||||
import cn.iocoder.yudao.module.llm.dal.dataobject.datarefluxdata.DataRefluxDataDO;
|
||||
import cn.iocoder.yudao.module.llm.dal.mysql.modelservice.ModelServiceMapper;
|
||||
import cn.iocoder.yudao.module.llm.service.basemodel.BaseModelService;
|
||||
import cn.iocoder.yudao.module.llm.service.datarefluxdata.DataRefluxDataService;
|
||||
import cn.iocoder.yudao.module.llm.service.modelservice.ModelServiceService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import javax.annotation.Resource;
|
||||
@ -44,6 +47,8 @@ public class DataRefluxConfigController {
|
||||
private ModelServiceService modelServiceService;
|
||||
@Resource
|
||||
private BaseModelService baseModelService;
|
||||
@Resource
|
||||
private DataRefluxDataService dataRefluxDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建数据回流配置")
|
||||
@ -104,6 +109,13 @@ public class DataRefluxConfigController {
|
||||
return success(bean);
|
||||
}
|
||||
|
||||
@GetMapping("/review-the-data")
|
||||
@Operation(summary = "数据回流配置查看数据")
|
||||
public CommonResult<List<DataRefluxDataRespVO>> reviewTheData(@RequestParam("id") Long id) {
|
||||
List<DataRefluxDataDO> list = dataRefluxDataService.getTheDetails(id);
|
||||
return success(BeanUtils.toBean(list, DataRefluxDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出数据回流配置 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('llm:data-reflux-config:export')")
|
||||
|
Loading…
x
Reference in New Issue
Block a user