Files
junhong_cmp_fiber/scripts/fix_all_test_constructors.sh
huang 5a90caa619
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m39s
feat(shop-role): 实现店铺角色继承功能和权限检查优化
- 新增店铺角色管理 API 和数据模型
- 实现角色继承和权限检查逻辑
- 添加流程测试框架和集成测试
- 更新权限服务和账号管理逻辑
- 添加数据库迁移脚本
- 归档 OpenSpec 变更文档

Ultraworked with Sisyphus
2026-02-03 10:06:13 +08:00

26 lines
756 B
Bash
Executable File

#!/bin/bash
# Fix role_assignment_limit_test.go - add shopRoleStore declarations
cd /Users/break/csxjProject/junhong_cmp_fiber
# Add shopRoleStore for all test functions
sed -i.bak3 '74a\
shopRoleStore := postgres.NewShopRoleStore(tx, rdb)
' tests/unit/role_assignment_limit_test.go
sed -i.bak4 '122a\
shopRoleStore := postgres.NewShopRoleStore(tx, rdb)
' tests/unit/role_assignment_limit_test.go
sed -i.bak5 '170a\
shopRoleStore := postgres.NewShopRoleStore(tx, rdb)
' tests/unit/role_assignment_limit_test.go
# Fix shop_service_test.go - add shopRoleStore and roleStore
sed -i.bak6 '26a\
shopRoleStore := postgres.NewShopRoleStore(tx, rdb)\
roleStore := postgres.NewRoleStore(tx)
' tests/unit/shop_service_test.go
echo "All test files fixed!"