working commit

This commit is contained in:
2026-02-13 13:25:16 +02:00
parent c2d231c844
commit 930df60877
11 changed files with 343 additions and 37 deletions
+10 -2
View File
@@ -110,8 +110,12 @@ func (oper *Operator) GetAccount(ctx context.Context, params *GetAccountParams)
}
for _, grantDescrs := range grantDescrs {
grantShorts := descr.GrantShort{
Operation: grantDescrs.Operation,
Right: grantDescrs.Right,
Pattern: grantDescrs.Pattern,
CreatedAt: grantDescrs.CreatedAt,
UpdatedAt: grantDescrs.UpdatedAt,
CreatedBy: grantDescrs.CreatedBy,
UpdatedBy: grantDescrs.UpdatedBy,
}
accountShort.Grants = append(accountShort.Grants, grantShorts)
}
@@ -253,8 +257,12 @@ func (oper *Operator) ListAccounts(ctx context.Context, params *ListAccountsPara
}
for _, grantDescrs := range grantDescrs {
grantShorts := descr.GrantShort{
Operation: grantDescrs.Operation,
Right: grantDescrs.Right,
Pattern: grantDescrs.Pattern,
CreatedAt: grantDescrs.CreatedAt,
UpdatedAt: grantDescrs.UpdatedAt,
CreatedBy: grantDescrs.CreatedBy,
UpdatedBy: grantDescrs.UpdatedBy,
}
accountShort.Grants = append(accountShort.Grants, grantShorts)
}