
    Eh_                     `   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
mZ d dlmZ d dlmZ d dlmZmZ  e       Zej)                  d	d
       ee       ee      fdee
   dedefd       Zej-                  dd
       ee       ee      fdededefd       Zej-                  dd
       ee       ee      fdededefd       Zej5                  dd
       ee       ee      fdee   dedefd       Zej9                  dd
       ee       ee      fdededefd       Zy)    )List)	APIRouterDepends)Session)service)InfoTechCreateInfoTechUpdate)InfoTechService)get_db)JWTPayloadSchemaget_current_studentz
/info_techT)response_model_exclude_nonerequestdbtokenc                 T   K   t        ||      j                  |        d {   S 7 wN)r
   create_info_techr   r   r   s      ?/var/www/html/retail-simulation-api/app/api/info_tech/router.pyr   r      s$      E*;;GDDDDs   (&(z/get_info_tech/{group_id}group_idc                 h   K   t        j                  ||      j                  |        d {   S 7 wr   )r   r
   get_info_techr   r   r   s      r   r   r      s*     ((E2@@JJJJ   )202z/get_sum_of_total_info_techc                 h   K   t        j                  ||      j                  |        d {   S 7 wr   )r   r
   get_and_sum_info_techr   s      r   get_sum_of_totalr      s*     ((E2HHRRRRr   z/update_info_techc                 h   K   t        j                  ||      j                  |        d {   S 7 wr   )r   r
   update_info_techr   s      r   r    r       s*     ((E2CCGLLLLr   z/delete_info_techinfo_tech_delete_idc                 h   K   t        j                  ||      j                  |        d {   S 7 wr   )r   r
   delete_info_tech)r!   r   r   s      r   r#   r#      s+     ((E2CCDWXXXXr   N)typingr   fastapir   r   sqlalchemy.ormr   app.api.info_techr   app.api.info_tech.schemar   r	   app.api.info_tech.servicer
   app.database.main.mysqlr   app.dependency.authanticationr   r   info_tech_routerpostr   getintr   r   putr    deleter#        r   <module>r4      s    & " % C 5 * O; |FFMfopw  yL  qM E4#7 EG E]m E GE 1tT3:6?]dex]y K K KJZ K UK 3QUV6=fo`gh{`| SC SG SM] S WS )tLFMfoqx  zM  rN M4#7 MG M^n M MM ,$OAHls  uH  mI Ys Yw YYi Y PYr3   