refactors
This commit is contained in:
parent
4e1a339432
commit
82c4d0168e
28 changed files with 1042 additions and 782 deletions
16
backend/schemas/meta.py
Normal file
16
backend/schemas/meta.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
from models import BitcoinTransferMethod, InviteStatus, Permission
|
||||
|
||||
|
||||
class ConstantsResponse(BaseModel):
|
||||
"""Response model for shared constants.
|
||||
|
||||
Note: Using actual enum types ensures OpenAPI schema includes enum values,
|
||||
allowing frontend type generation to produce matching TypeScript enums.
|
||||
"""
|
||||
|
||||
permissions: list[Permission]
|
||||
roles: list[str]
|
||||
invite_statuses: list[InviteStatus]
|
||||
bitcoin_transfer_methods: list[BitcoinTransferMethod]
|
||||
Loading…
Add table
Add a link
Reference in a new issue