위치 이동

This commit is contained in:
2023-08-06 11:02:03 +00:00
parent 3432009213
commit 19a19d8a2f
9 changed files with 6 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { POST } from "../base";
import { POST } from "../defs";
import type { structure } from "../../apiStructure/sammoRootAPI";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
+1 -1
View File
@@ -1,4 +1,4 @@
import { POST } from "../base";
import { POST } from "../defs";
import type { structure } from "../../apiStructure/sammoRootAPI";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
+1 -1
View File
@@ -1,4 +1,4 @@
import { POST } from "../base";
import { POST } from "../defs";
import type { structure } from "../../apiStructure/sammoRootAPI";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
+1 -1
View File
@@ -1,5 +1,5 @@
import { structure } from "../../apiStructure/sammoRootAPI";
import { APINamespaceType } from "../base";
import { APINamespaceType } from "../defs";
import { LoginByID } from "./LoginByID";
import { LoginByToken } from "./LoginByToken";
import { ReqNonce } from "./ReqNonce";
@@ -1,5 +1,5 @@
import { Router } from 'express';
import type { APIExecuter, APINamespace } from './base.js';
import type { APIExecuter, APINamespace } from './defs.js';
export function buildAPISystem<N extends APINamespace, Q extends APIExecuter<any, any, any>>(api: N | Q): Router {
const router = Router();
View File
-10
View File
@@ -1,10 +0,0 @@
import {
IsInt,
IsString,
} from 'class-validator';
export class BasicQueryDTO {
@IsInt()
generalID!: number;
command!: string;
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { APIExecuter } from "../api/base";
import { APIExecuter } from "../api/defs";
export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head';
export type RawArgType = Record<string, unknown> | Record<string, unknown>[] | undefined;