白蚁防治宣传图片墙
parent
49879a00c0
commit
f05df6f9cb
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.gunshi.project.xyt.controller;
|
||||||
|
|
||||||
|
import com.gunshi.core.result.R;
|
||||||
|
import com.gunshi.file.model.FileDescriptor;
|
||||||
|
import com.gunshi.project.xyt.mapper.TermiteSurveyMapper;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
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;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述: 白蚁防治宣传
|
||||||
|
* author: xusan
|
||||||
|
* date: 2024-08-28 10:29:58
|
||||||
|
*/
|
||||||
|
@Tag(name = "白蚁防治宣传")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(value="/termite/pic")
|
||||||
|
public class TermiteAdverPicController extends AbstractCommonFileController{
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TermiteSurveyMapper termiteSurveyMapper;
|
||||||
|
|
||||||
|
@Operation(summary = "宣传图片")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public R<List<FileDescriptor>> list() {
|
||||||
|
return R.ok(termiteSurveyMapper.queryFileList(getGroupId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGroupId() {
|
||||||
|
return "termiteAdverPic";
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue