feat: more work on clans #214

Merged
Sainan merged 7 commits from clan-ii into main 2024-05-15 16:34:38 -07:00
2 changed files with 25 additions and 1 deletions
Showing only changes of commit 51ea9d5ca1 - Show all commits

View File

@ -1,4 +1,5 @@
import { RequestHandler } from "express";
import { IDojoClient } from "@/src/types/guildTypes";
export const createGuildDojoController: RequestHandler = (req, res) => {
// req.body.toString() -> {"SpawnComponent":{"id":{"$oid":"000000000000000000000000"},"pf":"/Lotus/Levels/ClanDojo/DojoHall.level","ppf":""}}
@ -23,5 +24,5 @@ export const createGuildDojoController: RequestHandler = (req, res) => {
DecoCapacity: 600
}
]
});
} satisfies IDojoClient);
};

View File

@ -1,3 +1,5 @@
import { IOid, IMongoDate } from "@/src/types/commonTypes";
export interface IGuild {
Name: string;
}
@ -5,3 +7,24 @@ export interface IGuild {
export interface ICreateGuildRequest {
guildName: string;
}
export interface IDojoClient {
_id: IOid; // ID of the guild
Name: string;
Tier: number;
FixedContributions: boolean;
DojoRevision: number;
RevisionTime: number;
Energy: number;
Capacity: number;
DojoRequestStatus: number;
DojoComponents: IDojoComponentClient[];
}
export interface IDojoComponentClient {
pf: string;
ppf: string;
id: IOid;
CompletionTime: IMongoDate;
DecoCapacity: number;
}