Files
digital-psychology/apps/mini-program/README.md
T
jackyu66gitandCursor 2fb1dfee14 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>
2026-08-02 16:00:44 +08:00

24 lines
580 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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`