Browse Source

添加了API

master^2
lxc 2 years ago
parent
commit
73556dc988
  1. 2
      lpro/src/main/java/com/lp/authority/AuthorityIntercept.java
  2. 16
      lpro/src/main/java/com/lp/controller/iot/IotVisualMoudleInfoController.java

2
lpro/src/main/java/com/lp/authority/AuthorityIntercept.java

@ -45,7 +45,7 @@ public class AuthorityIntercept {
requestUrl.contains("/validate/code") || requestUrl.contains("/security_code") || requestUrl.contains("/upload")
|| requestUrl.contains("/mail") || requestUrl.contains("/bind") || requestUrl.contains("/live") ||
requestUrl.contains("/mqtt") || requestUrl.contains("/baidu") || requestUrl.contains("/vp") ||requestUrl.contains("/noauth")
|| requestUrl.endsWith("/") || requestUrl.contains("/dictionary")) {
|| requestUrl.endsWith("/") || requestUrl.contains("/dictionary") || requestUrl.contains("/api")) {
return true;
} else {

16
lpro/src/main/java/com/lp/controller/iot/IotVisualMoudleInfoController.java

@ -24,7 +24,21 @@ import java.util.Map;
@Controller
public class IotVisualMoudleInfoController extends BaseController
{
@RequestMapping(method={org.springframework.web.bind.annotation.RequestMethod.POST}, value={"/page/moudle/visual"})
@RequestMapping(method={ org.springframework.web.bind.annotation.RequestMethod.GET }, value={"/api/moudle/visual"})
public ModelAndView selectPageEAPI(HttpServletResponse response, @RequestParam(required=false) Integer pageSize, @RequestParam(required=false) Integer paged)
{
Map resultMap = getResultMap();
IotVisualMoudleInfoBO obj =new IotVisualMoudleInfoBO();
try {
resultMap = this.service.selectPageList("IotVisualMoudleInfo.selectPage", getPageBean(paged, pageSize), obj, new Object[0]);
} catch (Exception e) {
exception(e, resultMap, new Object[] { obj });
}
return getModelAndView(response, resultMap);
}
@RequestMapping(method={org.springframework.web.bind.annotation.RequestMethod.POST,org.springframework.web.bind.annotation.RequestMethod.GET }, value={"/page/moudle/visual"})
public ModelAndView selectPage(HttpServletResponse response, @RequestHeader(value="USER-KEY", required=true) String userKey, @RequestBody IotVisualMoudleInfoBO obj, @RequestParam(required=false) Integer pageSize, @RequestParam Integer paged)
{
Map resultMap = getResultMap();

Loading…
Cancel
Save