This commit is contained in:
taoran
2023-11-28 16:40:53 +08:00
commit 5621838cf4
42 changed files with 8376 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
//统一管理咱们项目用户相关的接口
import request from '@/utils/request'
import type {
getIpResponseData
} from './type'
//项目用户相关的请求地址
enum API {
//获取ip
GET_IP = '/api/v1/ip/get?ip='
}
//获取ip
export const getIp = (ip:string) => request.get<any, getIpResponseData>(API.GET_IP + ip)
+8
View File
@@ -0,0 +1,8 @@
//响应格式
export interface getIpResponseData {
code: number,
ip: string,
address: string
}