Add client registration functionality: Implement API endpoint for client self-registration, including validation and error handling. Update frontend to support registration form and status checks, enhancing user experience for DCA clients.
This commit is contained in:
parent
c86d650e5a
commit
315bcae4ca
5 changed files with 338 additions and 12 deletions
|
|
@ -61,3 +61,10 @@ class UpdateClientSettings(BaseModel):
|
|||
status: Optional[str] = None # 'active' or 'inactive'
|
||||
|
||||
|
||||
class ClientRegistrationData(BaseModel):
|
||||
"""Data for client self-registration"""
|
||||
dca_mode: str = "flow" # Default to flow mode
|
||||
fixed_mode_daily_limit: Optional[int] = None
|
||||
username: Optional[str] = None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue