feat: more work on clans #214
@ -1,4 +1,5 @@
|
|||||||
import { RequestHandler } from "express";
|
import { RequestHandler } from "express";
|
||||||
|
import { IDojoClient } from "@/src/types/guildTypes";
|
||||||
|
|
||||||
export const createGuildDojoController: RequestHandler = (req, res) => {
|
export const createGuildDojoController: RequestHandler = (req, res) => {
|
||||||
// req.body.toString() -> {"SpawnComponent":{"id":{"$oid":"000000000000000000000000"},"pf":"/Lotus/Levels/ClanDojo/DojoHall.level","ppf":""}}
|
// 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
|
DecoCapacity: 600
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
} satisfies IDojoClient);
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import { IOid, IMongoDate } from "@/src/types/commonTypes";
|
||||||
|
|
||||||
export interface IGuild {
|
export interface IGuild {
|
||||||
Name: string;
|
Name: string;
|
||||||
}
|
}
|
||||||
@ -5,3 +7,24 @@ export interface IGuild {
|
|||||||
export interface ICreateGuildRequest {
|
export interface ICreateGuildRequest {
|
||||||
guildName: string;
|
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;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user