feat: standardize category update response format with code, message, and data wrapper
This commit is contained in:
parent
14c1222a4e
commit
10a71c9a15
2 changed files with 18 additions and 10 deletions
|
|
@ -48,11 +48,15 @@ export interface updateCategory {
|
|||
}
|
||||
|
||||
export interface updateCategoryResponse {
|
||||
id: number;
|
||||
name: MultiLanguageText;
|
||||
slug: string;
|
||||
description: MultiLanguageText;
|
||||
updated_by: number;
|
||||
code: number;
|
||||
message: string;
|
||||
data: {
|
||||
id: number;
|
||||
name: MultiLanguageText;
|
||||
slug: string;
|
||||
description: MultiLanguageText;
|
||||
updated_by: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface deleteCategoryResponse {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue