白蚁防治宣传图片墙

master
wany 2024-08-29 16:45:42 +08:00
parent 49879a00c0
commit f05df6f9cb
1 changed files with 39 additions and 0 deletions

View File

@ -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";
}
}