api-datamanager/Company/Basic/Business/BusinessObj.py

35 lines
1.5 KiB
Python
Raw Normal View History

2022-08-30 17:04:17 +08:00
from Utils.ObjUtil import SpecObject
from Utils.ValidateUtil import ValidateAttr, Validate
class BusinessInfo(SpecObject):
"""工商信息"""
cname = ValidateAttr(field='cname', type=str)
ctype = ValidateAttr(field='ctype', type=str)
status = ValidateAttr(field='status', type=str)
representative = ValidateAttr(field='representative', type=str)
registered_capital = ValidateAttr(field='registered_capital', type=str)
paid_capital = ValidateAttr(field='paid_capital', type=str)
code = ValidateAttr(field='code', type=str)
establishment_date = ValidateAttr(field='establishment_date', func=Validate.date_format)
address = ValidateAttr(field='address', type=str)
agencies = ValidateAttr(field='agencies', type=str)
approved_date = ValidateAttr(field='approved_date', func=Validate.date_format)
business_scope = ValidateAttr(field='business_scope', type=str)
2022-08-31 10:12:16 +08:00
update_time = ValidateAttr(field='update_time', func=Validate.date_format)
2022-08-30 17:04:17 +08:00
fields_map = {
"cname": "企业名称",
"ctype": "企业类型",
"status": "经营状态",
"representative": "法定代表人",
"registered_capital": "注册资本",
"paid_capital": "实缴资本",
"code": "社会统一信用代码",
"establishment_date": "成立日期",
"address": "注册地址",
"agencies": "登记机关",
"approved_date": "核准日期",
2022-08-31 10:12:16 +08:00
"business_scope": "经营范围",
"update_time": "更新时间"
2022-08-30 17:04:17 +08:00
}