| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.product.common.lang.StringUtils; |
| | | import com.product.core.config.CoreConst; |
| | | import com.product.core.controller.support.AbstractBaseController; |
| | | import com.product.core.entity.FieldSetEntity; |
| | | import com.product.core.exception.BaseException; |
| | |
| | | * 创建索引 |
| | | * @param request |
| | | */ |
| | | @RequestMapping("created/{version}") |
| | | @RequestMapping("/created/{version}") |
| | | @ApiVersion(1) |
| | | public void create(HttpServletRequest request) { |
| | | try { |
| | |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @RequestMapping("search/{version}") |
| | | @RequestMapping("/search/{version}") |
| | | @ApiVersion(1) |
| | | public String search(HttpServletRequest request) { |
| | | try { |
| | |
| | | return error("", ""); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 检索文件跳转权限 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @RequestMapping("/permission/{version}") |
| | | @ApiVersion(1) |
| | | public String permission(HttpServletRequest request) { |
| | | try { |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | JSONObject object = luceneService.permission(fse.getUUID(), fse.getString(CoreConst.FUNCTION_UUID)); |
| | | return ResultInfo.success(object); |
| | | } catch (BaseException e) { |
| | | e.printStackTrace(); |
| | | return error(e); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return error("", ""); |
| | | } |
| | | } |
| | | } |