27 lines
1.2 KiB
Python
27 lines
1.2 KiB
Python
|
from Utils.ObjUtil import SpecObject
|
||
|
from Utils.ValidateUtil import ValidateAttr, Validate
|
||
|
|
||
|
|
||
|
class SoftwareObj(SpecObject):
|
||
|
"""软件著作权"""
|
||
|
cid = ValidateAttr(field='cid', type=str, length=8)
|
||
|
approval_date = ValidateAttr(field='approval_date', type=str, default=None)
|
||
|
full_name = ValidateAttr(field='full_name', type=str, default=None)
|
||
|
abbreviation = ValidateAttr(field='abbreviation', type=str, default=None)
|
||
|
registered_id = ValidateAttr(field='registered_id', type=str, default=None)
|
||
|
classify_id = ValidateAttr(field='classify_id', type=str, default=None)
|
||
|
version = ValidateAttr(field='version', type=str, default=None)
|
||
|
first_publish_date = ValidateAttr(field='first_publish_date', type=str, default=None)
|
||
|
update_time = ValidateAttr(field='update_time', func=Validate.time_format)
|
||
|
|
||
|
fields_map = {
|
||
|
"cid": "企业ID",
|
||
|
"approval_date": "登记批准日期",
|
||
|
"full_name": "软件全称",
|
||
|
"abbreviation": "软件简称",
|
||
|
"registered_id": "登记号",
|
||
|
"classify_id": "分类号",
|
||
|
"version": "版本号",
|
||
|
"first_publish_date": "首次发表日期",
|
||
|
"update_time": "更新时间"
|
||
|
}
|