|
|
@ -1,12 +1,12 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
Controller, |
|
|
|
Controller, |
|
|
|
Delete, |
|
|
|
Delete, |
|
|
|
Get, |
|
|
|
Get, HttpCode, |
|
|
|
Param, |
|
|
|
Param, |
|
|
|
Post, |
|
|
|
Post, |
|
|
|
Request, |
|
|
|
Request, |
|
|
|
UseGuards, |
|
|
|
UseGuards, |
|
|
|
} from '@nestjs/common'; |
|
|
|
} from '@nestjs/common' |
|
|
|
import { AuthGuard } from '@nestjs/passport'; |
|
|
|
import { AuthGuard } from '@nestjs/passport'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
Acl, |
|
|
|
Acl, |
|
|
@ -148,6 +148,7 @@ export class DataAliasNestedController { |
|
|
|
'/api/v1/db/data/:orgs/:projectName/:tableName/:rowId/:relationType/:columnName/:refRowId', |
|
|
|
'/api/v1/db/data/:orgs/:projectName/:tableName/:rowId/:relationType/:columnName/:refRowId', |
|
|
|
) |
|
|
|
) |
|
|
|
@Acl('relationDataAdd') |
|
|
|
@Acl('relationDataAdd') |
|
|
|
|
|
|
|
@HttpCode(200) |
|
|
|
async relationDataAdd( |
|
|
|
async relationDataAdd( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
|
@Param('columnName') columnName: string, |
|
|
|
@Param('columnName') columnName: string, |
|
|
|