docs(M02-C): 记录权限范围验收结果

This commit is contained in:
Codex
2026-06-18 10:51:14 +08:00
parent caacc78545
commit 46acb8422a
8 changed files with 65 additions and 15 deletions
@@ -0,0 +1,15 @@
# M02-C 访问能力返回
`GET /app-api/auth/me` 在用户资料之外新增:
```json
{
"access": {
"roles": ["CUSTOMER"],
"capabilities": ["order.self.read", "profile.read"],
"storeIds": []
}
}
```
角色、capability 和门店范围全部由后端按当前租户和服务端会话查询,小程序不得自行声明角色或扩大门店范围。