chore: seal Design Vision v1 and monorepo scaffold
Archive the differentiated YuXinGu product docs, AI engineering system, design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity over early innovation (see .ai/product/STRATEGY.md). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# mini-program
|
||||
|
||||
微信小程序客户端(业务后置)。
|
||||
|
||||
## 接入约定
|
||||
|
||||
1. 使用 `packages/sdk` 的 `createClient`,注入微信适配器:
|
||||
|
||||
```ts
|
||||
// 伪代码
|
||||
createClient({
|
||||
baseURL: 'https://api.example.com',
|
||||
adapters: {
|
||||
request: (opts) => wxRequestToApiResponse(opts),
|
||||
getToken: () => wx.getStorageSync('yxg_token') || null,
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
2. 页面禁止直接 `wx.request`;统一 `services/*`。
|
||||
3. 类型复用 `@yuxingu/types`;UI 组件不与 Vue H5 共享 SFC,只共享 `packages/ui` token。
|
||||
|
||||
详见 `apps/docs/standards/06-mini-program.md`。
|
||||
@@ -0,0 +1,5 @@
|
||||
App({
|
||||
onLaunch() {
|
||||
// scaffold only
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"pages": ["pages/home/index"],
|
||||
"window": {
|
||||
"navigationBarTitleText": "愈心谷",
|
||||
"navigationBarBackgroundColor": "#FFD1C7",
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Page({})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="wrap">愈心谷小程序脚手架 — 业务后置</view>
|
||||
@@ -0,0 +1 @@
|
||||
.wrap{padding:24px;color:#666;font-size:14px}
|
||||
Reference in New Issue
Block a user