Ë
    7úhå  ã                   óT  — d dl mZ d dlmZ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j1                  dd	¬
«       ee«       ee«      fdee	   dedefd„«       Zej5                  dd	¬
«       ee«       ee«      fdededefd„«       Zy)é    )ÚList)Ú	APIRouterÚDepends)ÚSession)ÚDepreciationCreateÚDepreciationUpdate)ÚDepreciationService)Úget_db)ÚJWTPayloadSchemaÚget_current_studentz/depreciationT)Úresponse_model_exclude_noneÚrequestÚdbÚtokenc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­w©N)r	   Úcreate_depreciation©r   r   r   s      úB/var/www/html/retail-simulation-api/app/api/depreciation/router.pyr   r      s$   è ø€ ä$ R¨Ó.×BÑBÀ7ÓK×KÐKÐKúó   ‚(¡&¢(z/get_depreciationÚdepreciation_get_idc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­wr   )r	   Úget_depreciation)r   r   r   s      r   r   r      s%   è ø€ ä$ R¨Ó.×?Ñ?Ð@SÓT×TÐTÐTúr   z!/get_group_depreciation{group_id}Úgroup_idc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­wr   )r	   Úget_group_depreciation)r   r   r   s      r   r   r      s$   è ø€ ä$ R¨Ó.×EÑEÀhÓO×OÐOÐOúr   z/update_depreciationc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­wr   )r	   Úupdate_depreciation_datar   s      r   Úupdate_depreciationr      s$   è ø€ ä$ R¨Ó.×GÑGÈÓP×PÐPÐPúr   z/delete_depreciationÚdepreciation_delete_idc              ƒ   óT   K  — t        ||«      j                  | «      ƒ d {  –—† S 7 Œ­wr   )r	   Údelete_depreciation)r    r   r   s      r   r"   r"      s%   è ø€ ä$ R¨Ó.×BÑBÐCYÓZ×ZÐZÐZúr   N)Útypingr   Úfastapir   r   Úsqlalchemy.ormr   Úapp.api.depreciation.schemar   r   Úapp.api.depreciation.servicer	   Úapp.database.main.mysqlr
   Úapp.dependency.authanticationr   r   Údepreciation_routerÚpostr   ÚgetÚintr   r   Úputr   Údeleter"   © ó    r   ú<module>r2      sì  ðÝ ß &Ý "ß NÝ <Ý *ß Oá“kÐ à×Ñ˜/ÀtÐÓLÙMTÐU[Ë_Ñw~ð  @Só  xTñ L dÐ+=Ñ&>ð LÀ7ð LÐdtò Ló MðLð ×ÑÐ,È$ÐÓOÙAHÈÃÑkrð  tGó  lHñ U¨sð U°wð UÐXhò Uó PðUð ×ÑÐ<ÐZ^ÐÓ_Ù<CÀF»OÑfmð  oBó  gCñ P¨#ð P°'ð PÐScò Pó `ðPð ×ÑÐ/ÈTÐÓRÙMTÐU[Ë_Ñw~ð  @Só  xTñ Q dÐ+=Ñ&>ð QÀ7ð QÐdtò Qó SðQð ×ÑÐ2ÐPTÐÓUÙGNÈvÃÑqxð  zMó  rNñ [°Sð [¸Wð [Ð^nò [ó Vñ[r1   