123456789101112131415161718 |
- import WsM from "./WsM";
- export default class FamilyM {
- private static _ins: FamilyM;
- public static get ins(): FamilyM {
- return (FamilyM._ins ??= new FamilyM());
- }
- async searchFamily(name: string): Promise<any> {
- let result = await WsM.ins.syncRequest(24001, { name });
- return result;
- }
- async createFamily(name: string): Promise<any> {
- let result = await WsM.ins.syncRequest(24002, { name });
- return result;
- }
- }
|