From 3b03f87a02458f719e2eb4bf112a13441b427d14 Mon Sep 17 00:00:00 2001
From: ‘chensiAb’ <‘chenchenco03@163.com’>
Date: Tue, 25 Mar 2025 13:54:34 +0800
Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components

---
 _cursor.ai/rules/type-fetchers.mdc |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/_cursor.ai/rules/type-fetchers.mdc b/_cursor.ai/rules/type-fetchers.mdc
new file mode 100644
index 0000000..babdf7e
--- /dev/null
+++ b/_cursor.ai/rules/type-fetchers.mdc
@@ -0,0 +1,38 @@
+---
+description: 
+globs: src/fetchers/F*.js
+alwaysApply: false
+---
+
+# 请求集
+
+## 请求集空白模板
+
+```js
+/**
+ * FCommon - 公用请求集
+ * @author 作者
+ */
+
+import { Fetcher } from '@components/bases/Fetcher';
+
+class FCommon extends Fetcher {
+
+    constructor() {
+        super({
+            // url前缀(本地路径, 服务器路径)
+            urlPrefix: ['/api/common/', '/serverPath/'],
+        });
+    }
+
+    // 读取页面详情
+    getPageDetail() {
+        const url = this.spellURL('getPageDetail', 'page/Detail');
+        const send = {};
+        return this.post(url, send);
+    }
+
+}
+
+export const $fetchCommon = new FCommon();
+```

--
Gitblit v1.9.1