|
|
@ -85,13 +85,14 @@ export class DataTableController { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Patch(['/api/v1/base/tables/:modelId/rows']) |
|
|
|
@Patch(['/api/v1/base/:projectId/tables/:modelId']) |
|
|
|
@Acl('dataUpdate') |
|
|
|
@Acl('dataUpdate') |
|
|
|
async dataUpdate( |
|
|
|
async dataUpdate( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
|
@Param('modelId') modelId: string, |
|
|
|
@Param('modelId') modelId: string, |
|
|
|
@Query('viewId') viewId: string, |
|
|
|
@Query('viewId') viewId: string, |
|
|
|
@Param('rowId') rowId: string, |
|
|
|
@Param('rowId') rowId: string, |
|
|
|
|
|
|
|
@Param('projectId') projectId: string, |
|
|
|
) { |
|
|
|
) { |
|
|
|
return await this.dataTableService.dataUpdate({ |
|
|
|
return await this.dataTableService.dataUpdate({ |
|
|
|
modelId: modelId, |
|
|
|
modelId: modelId, |
|
|
@ -99,16 +100,18 @@ export class DataTableController { |
|
|
|
cookie: req, |
|
|
|
cookie: req, |
|
|
|
viewId, |
|
|
|
viewId, |
|
|
|
// rowId: rowId,
|
|
|
|
// rowId: rowId,
|
|
|
|
|
|
|
|
projectId, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Delete(['/api/v1/base/tables/:modelId/rows']) |
|
|
|
@Delete(['/api/v1/base/:projectId/tables/:modelId']) |
|
|
|
@Acl('dataDelete') |
|
|
|
@Acl('dataDelete') |
|
|
|
async dataDelete( |
|
|
|
async dataDelete( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
|
@Param('modelId') modelId: string, |
|
|
|
@Param('modelId') modelId: string, |
|
|
|
@Query('viewId') viewId: string, |
|
|
|
@Query('viewId') viewId: string, |
|
|
|
@Param('rowId') rowId: string, |
|
|
|
@Param('rowId') rowId: string, |
|
|
|
|
|
|
|
@Param('projectId') projectId: string, |
|
|
|
) { |
|
|
|
) { |
|
|
|
return await this.dataTableService.dataDelete({ |
|
|
|
return await this.dataTableService.dataDelete({ |
|
|
|
modelId: modelId, |
|
|
|
modelId: modelId, |
|
|
@ -116,6 +119,7 @@ export class DataTableController { |
|
|
|
viewId, |
|
|
|
viewId, |
|
|
|
body: req.body, |
|
|
|
body: req.body, |
|
|
|
// rowId: rowId,
|
|
|
|
// rowId: rowId,
|
|
|
|
|
|
|
|
projectId, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|