From e9799a5b4b9f221447cba49e8fbf7bea6b6c0c42 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Wed, 09 Apr 2025 20:25:41 +0800
Subject: [PATCH] 实现微信获取头像组件(小程序原生组件)

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

diff --git a/_cursor.ai/rules/type-fetchers.mdc b/_cursor.ai/rules/type-fetchers.mdc
index ec56ad1..babdf7e 100644
--- a/_cursor.ai/rules/type-fetchers.mdc
+++ b/_cursor.ai/rules/type-fetchers.mdc
@@ -5,3 +5,34 @@
 ---
 
 # 请求集
+
+## 请求集空白模板
+
+```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