managment screen upadte
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// src/types.ts
|
||||
|
||||
export interface ApiResponse<T> {
|
||||
status: "success" | "error";
|
||||
message: string;
|
||||
data?: T;
|
||||
statusCode: number;
|
||||
}
|
||||
|
||||
export interface MyGroup {
|
||||
id: string;
|
||||
groupName: string;
|
||||
description: string;
|
||||
visibility: "PUBLIC" | "PRIVATE";
|
||||
createdByName: string;
|
||||
currentParticipants: number;
|
||||
maxParticipants: number;
|
||||
contributionAmount: number;
|
||||
cycleType: "MONTHLY" | "QUARTERLY" | "YEARLY";
|
||||
status: "PENDING" | "ACTIVE" | "COMPLETED";
|
||||
}
|
||||
|
||||
export interface JoinedGroup {
|
||||
id: string;
|
||||
groupName: string;
|
||||
createdBy: string;
|
||||
}
|
||||
|
||||
export interface JoinRequest {
|
||||
requestId: string;
|
||||
groupId: string;
|
||||
groupName: string;
|
||||
userId: number;
|
||||
userName: string;
|
||||
mobile: string;
|
||||
status: "PENDING";
|
||||
userAvatar?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user