Files
sexygoat 2ecab976f5
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m22s
fix: 新增: 修改资产套餐已用量, 修改资产套餐过期时间
2026-06-13 10:41:10 +08:00

22 lines
1.4 KiB
Markdown

## 1. Implementation
- [x] 1.1 Add API request/response types for package used-data and expires-at updates.
- [x] 1.2 Add AssetService PATCH methods for `/assets/{identifier}/packages/{package_usage_id}/used-data` and `/assets/{identifier}/packages/{package_usage_id}/expires-at`.
- [x] 1.3 Pass the current asset identifier to the package list component if it is not already available there.
- [x] 1.4 Add operation buttons to the package list with environment, `user_type`, and permission visibility rules.
- [x] 1.5 Add edit-used-data dialog/form with non-negative integer MB validation and submit handling.
- [x] 1.6 Add edit-expires-at dialog/form with required datetime validation and submit handling.
- [x] 1.7 Refresh package list data and show success feedback after each successful update.
- [x] 1.8 Run targeted lint/type checks for changed files and document any unrelated existing failures.
## 2. Permission Setup
- [x] 2.1 Confirm final production permission codes for “修改已用量” and “修改过期时间”.
- [x] 2.2 Wire the confirmed permission codes into button visibility checks.
## 3. Validation
- [x] 3.1 Verify production-mode behavior: `user_type=2` requires the matching permission for each button.
- [x] 3.2 Verify test/development-mode behavior: only `user_type=1` sees the buttons and permissions are ignored.
- [x] 3.3 Verify unauthorized account types do not see either operation.