ecology_maven/com/api/aiyh_pcn/patentWall/controller/PatentWallController.java

39 lines
960 B
Java

package com.api.aiyh_pcn.patentWall.controller;
import aiyh.utils.ApiResult;
import com.api.aiyh_pcn.patentWall.service.PatentWallService;
import com.api.aiyh_pcn.patentWall.vo.PatentVO;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import java.util.List;
import java.util.Map;
/**
* @author EBU7-dev1-ayh
* @create 2021/11/25 0025 15:18
* 专利墙请求入口
*/
@Path("/patten/")
public class PatentWallController {
private final PatentWallService patentWallService = new PatentWallService();
@Path("/getList")
@POST
public String getPatentList(@RequestBody Map<String,Object> map){
List<PatentVO> result = patentWallService.getList(map);
return ApiResult.success(result);
}
@Path("/clearConf")
@GET
public String clearPatentWallConf(){
patentWallService.clearPatentWallConf();
return ApiResult.success("清除配置缓存成功!");
}
}