mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
migrate services.js to ts
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
export interface TransactionCategoryCreateRequest {
|
||||
readonly name: string;
|
||||
readonly type: number;
|
||||
readonly parentId: string;
|
||||
readonly icon: string;
|
||||
readonly color: string;
|
||||
readonly comment: string;
|
||||
readonly clientSessionId: string;
|
||||
}
|
||||
|
||||
export interface TransactionCategoryCreateBatchRequest {
|
||||
readonly categories: TransactionCategoryCreateWithSubCategories[];
|
||||
}
|
||||
|
||||
export interface TransactionCategoryCreateWithSubCategories {
|
||||
readonly name: string;
|
||||
readonly type: number;
|
||||
readonly icon: string;
|
||||
readonly color: string;
|
||||
readonly comment: string;
|
||||
readonly subCategories: TransactionCategoryCreateRequest[];
|
||||
}
|
||||
|
||||
export interface TransactionCategoryModifyRequest {
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly parentId: string;
|
||||
readonly icon: string;
|
||||
readonly color: string;
|
||||
readonly comment: string;
|
||||
readonly hidden: boolean;
|
||||
}
|
||||
|
||||
export interface TransactionCategoryHideRequest {
|
||||
readonly id: string;
|
||||
readonly hidden: boolean;
|
||||
}
|
||||
|
||||
export interface TransactionCategoryMoveRequest {
|
||||
readonly newDisplayOrders: TransactionCategoryNewDisplayOrderRequest[];
|
||||
}
|
||||
|
||||
export interface TransactionCategoryNewDisplayOrderRequest {
|
||||
readonly id: string;
|
||||
readonly displayOrder: number;
|
||||
}
|
||||
|
||||
export interface TransactionCategoryDeleteRequest {
|
||||
readonly id: string;
|
||||
}
|
||||
|
||||
export interface TransactionCategoryInfoResponse {
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly parentId: string;
|
||||
readonly type: number;
|
||||
readonly icon: string;
|
||||
readonly color: string;
|
||||
readonly comment: string;
|
||||
readonly displayOrder: number;
|
||||
readonly hidden: boolean;
|
||||
readonly subCategories?: TransactionCategoryInfoResponse[];
|
||||
}
|
||||
Reference in New Issue
Block a user