위치 이동
This commit is contained in:
@@ -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,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,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,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();
|
||||
@@ -1,10 +0,0 @@
|
||||
import {
|
||||
IsInt,
|
||||
IsString,
|
||||
} from 'class-validator';
|
||||
|
||||
export class BasicQueryDTO {
|
||||
@IsInt()
|
||||
generalID!: number;
|
||||
command!: string;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user