🎨 增加 Go 后端
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
enum Api {
|
||||
blogInfo = '/',
|
||||
report = '/report'
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取博客信息
|
||||
* @returns 博客信息
|
||||
*/
|
||||
export function getBlogInfo(option: any) {
|
||||
return ""
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
enum Api {
|
||||
webSiteConfig = '/getWebSiteConfig',
|
||||
whoisServer = "/getWhoisServer"
|
||||
}
|
||||
|
||||
// 获取网站配置
|
||||
export function GetWebSiteConfig() {
|
||||
return useHttp.post<WebSiteConfig>("/getWebSiteConfig")
|
||||
}
|
||||
|
||||
//获取whois服务器
|
||||
export function GetWhoisServer(config: string) {
|
||||
return useHttp.post<any>("/getWhoisServer", {
|
||||
config: config,
|
||||
})
|
||||
}
|
||||
|
||||
export function GetWhois(domain: string, name: string) {
|
||||
return useHttp.post<any>("/getWhois", {
|
||||
domain: domain,
|
||||
name: name,
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// api/front/index.ts
|
||||
import * as home from './home';
|
||||
|
||||
// Re-export home
|
||||
export {home};
|
||||
@@ -0,0 +1,2 @@
|
||||
export * as admin from './admin/index';
|
||||
export * as front from './front/index';
|
||||
Reference in New Issue
Block a user