| | |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue != null) { |
| | | entity.setUserId(ue.getId()); |
| | | entity.setToken(WebHelper.getToken(req)); |
| | | } |
| | | |
| | | permsService.clearPermsCache(); |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "发布数简服务") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body") |
| | | }) |
| | | public ResponseMsg<Object> insertShuJianService(@RequestBody PubEntity entity, HttpServletRequest req) { |
| | | try { |
| | | if (null == entity || null == entity.getIds() || entity.getIds().isEmpty()) { |
| | | return fail("实体类为空或找不到元数据ID", 0); |
| | | } |
| | | |
| | | return success(null); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除多条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1") |