Skip to content

Let's use AI to Earn!

feat: 配置接口

牛文政780538c3d20d
diff --git a/src/api/cfg.ts b/src/api/cfg.ts
new file mode 100644
index 00000000..5697e2ff
--- /dev/null
+++ b/src/api/cfg.ts
@@ -0,0 +1,18 @@
+/*
+ * @Author: nevin
+ * @Date: 2025-02-22 12:02:55
+ * @LastEditTime: 2025-03-02 22:21:01
+ * @LastEditors: nevin
+ * @Description: 项目配置
+ */
+import http from './request';
+
+export const CfgApi = {
+ /**
+ * 获取配置
+ * @param key
+ */
+ apiGetCfgInfo(key: string) {
+ return http.get<string>(`/cfg/info/${key}`);
+ },
+};