Rename ProfileGroupItem.ParentIndexId to IndexId

Because ProfileGroupItem is an extension of ProfileItem, it is better to name the fields the same way.
This commit is contained in:
2dust
2025-10-07 14:01:36 +08:00
parent 0a1d6db9d1
commit f76fd364a2
5 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -208,13 +208,13 @@ public sealed class AppManager
return await SQLiteHelper.Instance.TableAsync<ProfileItem>().FirstOrDefaultAsync(it => it.Remarks == remarks);
}
public async Task<ProfileGroupItem?> GetProfileGroupItem(string parentIndexId)
public async Task<ProfileGroupItem?> GetProfileGroupItem(string indexId)
{
if (parentIndexId.IsNullOrEmpty())
if (indexId.IsNullOrEmpty())
{
return null;
}
return await SQLiteHelper.Instance.TableAsync<ProfileGroupItem>().FirstOrDefaultAsync(it => it.ParentIndexId == parentIndexId);
return await SQLiteHelper.Instance.TableAsync<ProfileGroupItem>().FirstOrDefaultAsync(it => it.IndexId == indexId);
}
public async Task<List<RoutingItem>?> RoutingItems()