|  |  |  | 
|---|
|  |  |  | * @date 2023/03/21 14:49 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/cloudService/system/dataPermission") | 
|---|
|  |  |  | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/system/dataPermission") | 
|---|
|  |  |  | @Api(tags = "系统数据权限") | 
|---|
|  |  |  | public class SystemDataPermissionCloudController extends BaseController { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @PostMapping("/updateById") | 
|---|
|  |  |  | @RequiresPermissions("system:datapermission:update") | 
|---|
|  |  |  | public ApiResponse updateById(@RequestHeader(Constants.HEADER_USER_TOKEN) String token,@Validated(OperaType.Update.class) @RequestBody SystemDataPermission systemDataPermission) { | 
|---|
|  |  |  | systemDataPermission.setCreateUser(this.getLoginUser(token).getId()); | 
|---|
|  |  |  | systemDataPermission.setUpdateUser(this.getLoginUser(token).getId()); | 
|---|
|  |  |  | systemDataPermissionBiz.update(systemDataPermission); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|