PATCH: Ref/Catalog new functions

This commit is contained in:
Victor Radael
2022-10-18 13:43:18 -03:00
parent ef9ec5ad42
commit b8c41fad1b
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ export class CatalogController {
async commentOnDataAsset(
@Param('id') id: string,
@User() user: RequestUser,
@Body('message') message,
@Body('message') message: string,
) {
const { customer_id, customer_name, user_id, username } = user;
const metadata = PackTheMetadata({
+15
View File
@@ -70,9 +70,24 @@ export class IDataAsset {
}
export class IOneDataAsset {
@ApiProperty()
data_asset: IDataAsset;
}
export class IComment {
@ApiProperty()
id: number;
@ApiProperty()
message: string;
@ApiProperty()
created_at: string;
}
export class IDeleteComment {
@ApiProperty()
comment: IComment;
}
export class ICatalogAllResponse {
@ApiProperty({ type: [IDataAsset] })
data_assets: IDataAsset[];