feat(ECR-018): Entitlement 用户权益只读并 Closed
聚合 GET /admin/users/:id/entitlements(Membership∪DeepAccess∪问答额度)与 admin-h5 权益 Tab;无 migration / 无真支付。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -262,6 +262,24 @@ paths:
|
||||
'404':
|
||||
description: User not found
|
||||
|
||||
/api/v1/admin/users/{id}/entitlements:
|
||||
get:
|
||||
tags: [admin]
|
||||
summary: User Entitlement aggregate (read-only)
|
||||
description: Requires admin.users.read; Membership ∪ DeepAccess ∪ ask quotas
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema: { type: string, format: uuid }
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
'401':
|
||||
description: Unauthorized
|
||||
'404':
|
||||
description: User not found
|
||||
|
||||
/api/v1/admin/membership-plans:
|
||||
get:
|
||||
tags: [admin]
|
||||
|
||||
Reference in New Issue
Block a user