B
    DDbS
                 @   s   d dl mZ d dlmZ d dlmZ d dlmZ G dd dejZ	G dd dejZ
G d	d
 d
ejZG dd dejZG dd dejZG dd dejZdS )    )serializers)Terminal)util_serializers)Areac               @   s   e Zd ZG dd dZdS )AreaSerializerc               @   s   e Zd ZeZdddgZdS )zAreaSerializer.MetaidZ	area_code	area_nameN)__name__
__module____qualname__r   modelfields r   r   KG:\easytimepro\master/mysite/iclock\api\serializers\terminal_serializers.pyMeta   s   r   N)r	   r
   r   r   r   r   r   r   r      s   r   c               @   s6   e Zd Ze ZejdddZe	 Z
G dd dZdS )TerminalSerializerzarea.area_nameT)source
allow_nullc               @   s@   e Zd ZeZddddddddd	d
ddddddddddddgZdS )zTerminalSerializer.Metar   sn
ip_addressaliasterminal_namefw_verpush_verstateterminal_tzarealast_activity
user_countfp_count
face_count
palm_counttransaction_count	push_timetransfer_timetransfer_intervalis_attendancer   companyN)r	   r
   r   r   r   r   r   r   r   r   r      s
   
r   N)r	   r
   r   r   r   r   	CharFieldr   r   ZCompanyNameSerializerr'   r   r   r   r   r   r      s
   r   c               @   s8   e Zd ZejdddZejddddZG dd dZd	S )
TerminalExportSerializerzarea.area_nameT)r   r   r   r   )r   r   choicesc               @   s<   e Zd ZeZddddddddd	d
ddddddddddgZdS )zTerminalExportSerializer.Metar   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   terminal_stater$   r%   r&   N)r	   r
   r   r   r   r   r   r   r   r   r   $   s
   
r   N)	r	   r
   r   r   r(   r   ZChoiceFieldr+   r   r   r   r   r   r)      s   r)   c               @   s   e Zd ZG dd dZdS )TerminalCreateSerializerc               @   s   e Zd ZeZdZdS )zTerminalCreateSerializer.Meta__all__N)r	   r
   r   r   r   r   r   r   r   r   r   -   s   r   N)r	   r
   r   r   r   r   r   r   r,   ,   s   r,   c               @   s   e Zd ZG dd dZdS )TerminalEditSerializerc               @   s   e Zd ZeZdZdS )zTerminalEditSerializer.Metar-   N)r	   r
   r   r   r   r   r   r   r   r   r   3   s   r   N)r	   r
   r   r   r   r   r   r   r.   2   s   r.   c               @   s   e Zd ZG dd dZdS )TerminalActionSerializerc               @   s   e Zd ZeZdZdS )zTerminalActionSerializer.Meta))deleter0   )
clear_datar1   )clear_capturer2   )upload_user_datar3   )upload_transactionr4   )rebootr5   )read_infomationr6   N)r	   r
   r   r   r   Zaction_type_choicesr   r   r   r   r   9   s   r   N)r	   r
   r   r   r   r   r   r   r/   8   s   r/   N)Zrest_frameworkr   Z#mysite.iclock.models.model_terminalr   Z mysite.personnel.api.serializersr   Z"mysite.personnel.models.model_arear   ZModelSerializerr   r   r)   r,   r.   ZObjectActionSerializerr/   r   r   r   r   <module>   s   