o
    ȟ1i#                     @   s  d dl mZmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZmZ d dlmZ d dlmZ d d	lmZ d d
lmZ d dlmZ eddZejdedeefdedefddZejdedeefdefddZejdedeefdedefddZejdedeefdefddZejdedeefdede
fddZ ejdedeefdefd d!Z!ejd"edeefd#edefd$d%Z"ejd"edeefd#efd&d'Z#d(S ))    )	APIRouterDepends)get_user)GenericResponse)ParentProfile)ParticipantProfileUpdateSchema)GuestProfileSchemaStaffProfileUpdateSchema)GuestService)ParentService)ParticipantService)StaffService)UserServicez/profile)prefixz/parent/{parent_id})response_model	parent_idrequestc                       t  | | ddiS NmessageProfile updated successfully)r   update_profile)r   r   user r   /app/api/profile.pyparent_profile_update      r   c                       t  | }d|dS NzProfile fetched successfullyr   data)r   get_parent_profile)r   r   r    r   r   r   r!         
r!   z/guest/{guest_id}guest_idc                    r   r   )r
   r   )r#   r   r   r   r   r   guest_profile_update   r   r$   c                    r   Nr   r   )r
   get_guest_profile)r#   r   r    r   r   r   r&   #   r"   r&   z/participant/{participant_id}participant_idc                    r   r   )r   !update_participant_from_self_user)r'   r   r   r   r   r   participant_profile_update(   r   r)   c                    r   r%   )r   get_participant_profile)r'   r   r    r   r   r   r*   .   r"   r*   z/staff/{staff_id}staff_idc                    r   r   )r   update_staff_profile)r+   r   r   r   r   r   staff_profile_update3   r   r-   c                    r   r   )r   get_staff_profile_detail)r+   r   r    r   r   r   r.   8   r"   r.   N)$fastapir   r   core.security.authenticationr   schemar   schema.parentr   schema.participantr   schema.userr   r	   Zservices.guestr
   services.parentr   services.participantr   services.staffr   services.userr   profile_routerpostintr   getr!   r$   r&   r)   r*   r-   r.   r   r   r   r   <module>   s8    
