🎨 增加 Go 后端

This commit is contained in:
江西小徐
2024-04-07 11:08:05 +08:00
parent 04c82ab25d
commit 61275be2bf
165 changed files with 7043 additions and 3599 deletions
+12
View File
@@ -0,0 +1,12 @@
enum Api {
blogInfo = '/',
report = '/report'
}
/**
* 获取博客信息
* @returns 博客信息
*/
export function getBlogInfo(option: any) {
return ""
}
+23
View File
@@ -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,
})
}
+5
View File
@@ -0,0 +1,5 @@
// api/front/index.ts
import * as home from './home';
// Re-export home
export {home};
+2
View File
@@ -0,0 +1,2 @@
export * as admin from './admin/index';
export * as front from './front/index';