Skip to content

Commit

Permalink
Merge pull request #101 from Roger13579/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
y0000ga authored May 16, 2024
2 parents f94e792 + f7c9959 commit 94cf8cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/routes/productRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@ export class ProductRoute extends BaseRoute {
}
}
*/
/*
#swagger.responses[200] = {
description:'OK',
schema:{
$ref: "#/definitions/DeleteProductsSuccess"
}
}
*/
UserVerify,
IsAdmin,
this.usePipe(DeleteProductsPipe),
Expand Down
4 changes: 2 additions & 2 deletions src/swagger/definition/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
CustomGetProductTagQuery,
GetProductDetailSuccess,
GetProductsSuccess,
CustomDeleteProductsObj,
CustomDeleteProductsObj,DeleteProductsSuccess
} from './product';
import {
CreateGroupSuccess,
Expand Down Expand Up @@ -69,7 +69,7 @@ export const definitions = {
CreateGroupSuccess,
UploadFileSuccess,
GetProductDetailSuccess,
GetProductsSuccess,
GetProductsSuccess,DeleteProductsSuccess
};

export const customDefinitions = {
Expand Down
8 changes: 8 additions & 0 deletions src/swagger/definition/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ export const GetProductsSuccess = {
},
};

export const DeleteProductsSuccess = {
$status: CustomResponseType.OK,
$message: CustomResponseType.OK_MESSAGE,
$data: {
$deletedCount: 1,
},
};

export const FindProductSuccess = {
$status: CustomResponseType.OK,
$message: CustomResponseType.OK_MESSAGE,
Expand Down

0 comments on commit 94cf8cb

Please sign in to comment.