This commit is contained in:
2023-02-14 00:25:06 +08:00
parent 5c0050fe13
commit 655af8eec1
18 changed files with 101 additions and 60 deletions

View File

@@ -0,0 +1,26 @@
/*
* @Author: Kane
* @Date: 2023-02-13 23:08:34
* @LastEditors: Kane
* @LastEditTime: 2023-02-13 23:56:11
* @FilePath: /后端辅助工具/src/DataType/Function.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
function f(x: number, y: number): number
{
return x + y;
}
f.version = "1.0.0";
const func: {
(x: number, y: number): void,
version: string,
} = f;
function func_this(this: { name: string; }, x: number, y: number): void
{
}

View File

@@ -2,10 +2,10 @@
* @Author: Kane
* @Date: 2023-02-13 15:46:17
* @LastEditors: Kane
* @LastEditTime: 2023-02-13 15:46:17
* @FilePath: /后端辅助工具/src/axios/AxiosTest.js
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
* @LastEditTime: 2023-02-13 23:34:55
* @FilePath: /后端辅助工具/src/axios/AxiosTest.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import axios from "axios";

View File

@@ -2,18 +2,18 @@
* @Author: Kane
* @Date: 2023-02-13 15:53:45
* @LastEditors: Kane
* @LastEditTime: 2023-02-13 15:56:26
* @LastEditTime: 2023-02-13 22:41:50
* @FilePath: /后端辅助工具/src/axios/request.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import axios, { AxiosInstance } from "axios";
import axios, {AxiosInstance, AxiosRequestConfig, AxiosResponse} from 'axios';
const service = axios.create({
baseURL: "",
timeout: 10000,
timeoutErrorMessage: "请求超时!",
});
// const service = axios.create({
// baseURL: "",
// timeout: 10000,
// timeoutErrorMessage: "请求超时!",
// });

View File

@@ -2,7 +2,7 @@
* @Author: Kane
* @Date: 2023-02-09 22:14:30
* @LastEditors: Kane
* @LastEditTime: 2023-02-13 15:59:43
* @LastEditTime: 2023-02-14 00:09:39
* @FilePath: /后端辅助工具/src/main.ts
* @Description:
*