feat(interface): add new interfaces for user assets and trades
This commit includes two additional interfaces for handling user assets and trades. The `IApiUserAssetsRes` interface provides a way to store and manage the user assets response from the API. The `IApiAllTrades` interface has been introduced for dealing with all trades data. Necessary imports are also added in the file.
This commit is contained in:
parent
f3fd897a3f
commit
24c168bc44
@ -1,3 +1,4 @@
|
|||||||
|
import { ITrade, type IUserWalletCryptos } from "@/interfaces/crypto.interface";
|
||||||
import type { IUserData } from "@/interfaces/userdata.interface";
|
import type { IUserData } from "@/interfaces/userdata.interface";
|
||||||
|
|
||||||
// ----- Request -----
|
// ----- Request -----
|
||||||
@ -33,3 +34,13 @@ export interface IApiRegisterRes extends IAbstractApiResponse {
|
|||||||
export interface IApiLoginRes extends IAbstractApiResponse {
|
export interface IApiLoginRes extends IAbstractApiResponse {
|
||||||
access_token?: string;
|
access_token?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IApiUserAssetsRes extends IAbstractApiResponse {
|
||||||
|
firstName?: string;
|
||||||
|
lastName?: string;
|
||||||
|
dollarAvailables?: number;
|
||||||
|
pseudo?: string;
|
||||||
|
UserHasCrypto?: IUserWalletCryptos[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IApiAllTrades extends IAbstractApiResponse {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user