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

40 lines
1.0 KiB
Java
Raw Normal View History

2021-11-25 21:46:05 +08:00
package com.api.aiyh_pcn.patentWall.controller;
import aiyh.utils.ApiResult;
import com.api.aiyh_pcn.patentWall.dto.FilterWhere;
2021-11-25 21:46:05 +08:00
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 List<FilterWhere> filterWheres){
List<PatentVO> result = patentWallService.getList(filterWheres);
2021-11-25 21:46:05 +08:00
return ApiResult.success(result);
}
@Path("/clearConf")
@GET
public String clearPatentWallConf(){
patentWallService.clearPatentWallConf();
return ApiResult.success("清除配置缓存成功!");
}
}