friends system (Testing WIP)

This commit is contained in:
2025-12-14 22:58:36 +08:00
parent b10b206b48
commit a317235bce
9 changed files with 705 additions and 26 deletions

View File

@@ -1,4 +1,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { UserProfile } from "./UserProfile";
import type { UserProfile } from "./UserProfile.js";
import type { FriendshipResponseDto } from "./FriendshipResponseDto.js";
export type AppData = { user: UserProfile | null, };
export type AppData = {
user: UserProfile | null;
friends: Array<FriendshipResponseDto> | null;
};

View File

@@ -0,0 +1,10 @@
import type { UserBasicDto } from "./UserBasicDto.js";
export type FriendRequestResponseDto = {
id: string;
sender: UserBasicDto;
receiver: UserBasicDto;
status: string;
createdAt: string;
updatedAt: string;
};

View File

@@ -0,0 +1,7 @@
import type { UserBasicDto } from "./UserBasicDto.js";
export type FriendshipResponseDto = {
id: string;
friend: UserBasicDto;
createdAt: string;
};

View File

@@ -0,0 +1,3 @@
export type SendFriendRequestDto = {
receiverId: string;
};

View File

@@ -0,0 +1,5 @@
export type UserBasicDto = {
id: string;
name: string;
username: string | null;
};