Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace map with struct #34

Merged
merged 3 commits into from
Mar 5, 2024
Merged

Replace map with struct #34

merged 3 commits into from
Mar 5, 2024

Conversation

klaidliadon
Copy link
Contributor

In order to avoid conversion/casting, this PR replaces the generic map used in the permission endpoints with a concrete type.

@klaidliadon klaidliadon merged commit 61d09b3 into master Mar 5, 2024
1 check passed
@klaidliadon klaidliadon deleted the user-permissions branch March 5, 2024 14:05
@@ -77,6 +77,20 @@ struct ProjectStatus
- usageCounter: int64
- ratelimitCounter: int64

struct Subscription
- Tier: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets downcase "Tier"

+ go.tag.json = tier

struct Minter
- Contracts: []string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets downcase "Contracts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants