12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package com.fjhx.file.controller;
- import com.baomidou.dynamic.datasource.annotation.DS;
- import com.fjhx.file.entity.FileInfoSelectDto;
- import com.fjhx.file.entity.FileInfoVo;
- import com.fjhx.file.entity.SingDto;
- import com.fjhx.file.entity.SingVo;
- import com.fjhx.file.service.FileInfoService;
- import com.ruoyi.common.constant.DatasourceConstant;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.List;
- import java.util.Map;
- @DS(DatasourceConstant.BASE)
- @RestController
- @RequestMapping("/fileInfo")
- public class FileInfoController {
- @Autowired
- private FileInfoService fileInfoService;
-
- @PostMapping("/getSing")
- public SingVo getSing(@Validated @RequestBody SingDto dto) {
- return fileInfoService.getSing(dto);
- }
-
- @PostMapping("/getList")
- public Map<String, List<FileInfoVo>> getList(@Validated @RequestBody FileInfoSelectDto dto) {
- return fileInfoService.getList(dto);
- }
- }
|