feat: 完善接口19-顶部通知铃铛与站内通知中心
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m5s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m5s
This commit is contained in:
@@ -27,7 +27,9 @@ The system SHALL allow users to assign or clear an optional platform salesperson
|
||||
#### Scenario: Do not expose disabled accounts as editable candidates
|
||||
|
||||
- **WHEN** 用户打开或搜索“平台业务员”选择器
|
||||
- **THEN** 系统 MUST 仅查询 `account_type=platform` 且 `status=1` 的账号
|
||||
- **THEN** 系统 MUST query `GET /api/admin/shops/business-owner-candidates`
|
||||
- **AND** 请求 MUST support `keyword`、`page` 和 `page_size`
|
||||
- **AND** 候选项 MUST use `id`、`username` and `phone_summary`
|
||||
- **AND** 已停用平台账号 MUST NOT 作为新建或编辑候选项显示
|
||||
|
||||
#### Scenario: No eligible salesperson exists
|
||||
@@ -45,7 +47,7 @@ The shop list SHALL display the assigned salesperson and support filtering by `b
|
||||
|
||||
- **WHEN** 用户查看店铺列表
|
||||
- **THEN** 列表 MUST 显示业务员列
|
||||
- **AND** 已绑定业务员的行 MUST 展示 `business_owner_name` 和 `business_owner_phone_masked`
|
||||
- **AND** 已绑定业务员的行 MUST 展示 `business_owner_username` 和 `business_owner_phone_summary`
|
||||
|
||||
#### Scenario: Filter shops by salesperson
|
||||
|
||||
@@ -57,7 +59,7 @@ The shop list SHALL display the assigned salesperson and support filtering by `b
|
||||
|
||||
- **GIVEN** 店铺历史上已绑定的平台业务员后来被停用
|
||||
- **WHEN** 用户查看店铺列表
|
||||
- **THEN** 列表 MUST 继续展示该店铺返回的 `business_owner_name` 和 `business_owner_phone_masked`
|
||||
- **THEN** 列表 MUST 继续展示该店铺返回的 `business_owner_username` 和 `business_owner_phone_summary`
|
||||
|
||||
### Requirement: Shop Detail Salesperson Display
|
||||
|
||||
@@ -72,7 +74,8 @@ The shop detail SHALL display the assigned salesperson name and masked phone fro
|
||||
|
||||
- **GIVEN** 店铺绑定的业务员已停用
|
||||
- **WHEN** 用户查看该店铺详情
|
||||
- **THEN** 页面 MUST 继续使用详情响应中的 `business_owner_name` 和 `business_owner_phone_masked` 展示历史业务员信息
|
||||
- **THEN** 页面 MUST request `GET /api/admin/shops/{id}`
|
||||
- **AND** 页面 MUST 继续使用详情响应中的 `business_owner_username` 和 `business_owner_phone_summary` 展示历史业务员信息
|
||||
|
||||
#### Scenario: Do not add distribution or commission semantics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user