更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -56,16 +56,15 @@ func TestNormalizePlatforms(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// 模块级过滤:覆盖三种业务场景
|
||||
func TestFilterModulesByPlatform(t *testing.T) {
|
||||
web := `["web"]`
|
||||
app := `["app"]`
|
||||
both := `["web","app"]`
|
||||
rows := []models.SystemModules{
|
||||
{Code: "crm", Platforms: &web}, // 仅 Web
|
||||
{Code: "oa", Platforms: &app}, // 仅小程序
|
||||
{Code: "cms", Platforms: &both}, // 双端
|
||||
{Code: "erp", Platforms: nil}, // 未配置 → 全端
|
||||
{Code: "crm", Platforms: &web},
|
||||
{Code: "oa", Platforms: &app},
|
||||
{Code: "cms", Platforms: &both},
|
||||
{Code: "erp", Platforms: nil},
|
||||
}
|
||||
|
||||
got := FilterModulesByPlatform(rows, models.PlatformWeb)
|
||||
|
||||
Reference in new issue
Block a user