21 lines
777 B
Python
21 lines
777 B
Python
from Utils.ObjUtil import SpecObject
|
|
from Utils.ValidateUtil import ValidateAttr, Validate
|
|
|
|
|
|
class ServiceNoticeObj(SpecObject):
|
|
"""送达公告"""
|
|
cid = ValidateAttr(field='cid', type=str, length=8)
|
|
title = ValidateAttr(field='title', type=str, default=None)
|
|
court = ValidateAttr(field='court', type=str, default=None)
|
|
content = ValidateAttr(field='content', type=str, default=None)
|
|
publish_date = ValidateAttr(field='publish_date', func=Validate.date_format)
|
|
update_time = ValidateAttr(field='update_time', func=Validate.time_format)
|
|
|
|
fields_map = {
|
|
"cid": "企业ID",
|
|
"title": "标题",
|
|
"court": "法院",
|
|
"content": "内容",
|
|
"publish_date": "发布日期",
|
|
"update_time": "更新时间"
|
|
} |