
    	,h                     4   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 d dlmZmZ  e       Zej#                  dd	
      dedee ee      f   dee ee      f   fd       Zej'                  d       ee       ee      fdededefd       Zy)    )	APIRouterDepends)Session)	Annotated)plumbingCreate)PlumlingService)get_db)JWTPayloadSchemaget_current_studentz/Plumbing_creatT)response_model_exclude_nonerequestdbtokenc                 T   K   t        ||      j                  |        d {   S 7 wN)r   create_plumbing)r   r   r   s      2/var/www/html/RetailAPI/app/api/plumbing/router.pyr   r      s$      U+;;GDDDD   (&(z/Plumbing_creat/{group_id}group_idc                 T   K   t        ||      j                  |        d {   S 7 wr   )r   get_plumbing)r   r   r   s      r   get_total_consumption_by_groupr      s$      U+88BBBBr   N)fastapir   r   sqlalchemy.ormr   typingr   app.api.plumbing.schemasr   app.api.plumbing.servicer   app.database.main.mysqlr	   app.dependency.authanticationr
   r   plumbing_routerpostr   getintr        r   <module>r&      s    & "  3 4 * O+'TJE> EiQW@X6Y Eajk{  ~E  FY  ~Z  lZ  b[ E KE 12ELV_ov  xK  pL C3 C7 C\l C 3Cr%   