o
    Uh9                     @   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 e Zejddd	ee
eefd
ededefddZejddd	ee
eefdededefddZedee
eefdededefddZdS )    )	APIRouterDepends)Session)CivilCreate)CivilService)get_db)JWTPayloadSchemaget_current_userz/civilT)response_model_exclude_nonerequestdbtokenc                       t ||| I d H S N)r   create_civil)r   r   r    r   //var/www/html/RetailAPI/app/api/civil/router.pycreate_civil_entry
      r   z/civil/{group_id}group_idc                    r   r   )r   get_civil_by_group_idr   r   r   r   r   r   get_civil_entry   r   r   z/subtotal/{group_id}c                 C   s   t ||| S r   )r   get_subtotal_by_store_formatr   r   r   r   subtotal   s   r   N)fastapir   r   sqlalchemy.ormr   app.api.civil.schemasr   app.api.civil.servicer   app.database.main.mysqlr   app.dependency.authanticationr   r	   civil_routerpostr   getintr   r   r   r   r   r   <module>   s    &&*