class AddNews(CMForm): title = StringField(u'title', validators=[validators.data_required(message=u'缺少标题')]) cover_image = StringField( u'cover_image', validators=[validators.data_required(message=u'缺少封面图片'), ValidImage()]) content = StringField( u'content', validators=[validators.data_required(message=u'缺少新闻内容')]) type_id = IntegerField( u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
class AddInvestment(CMForm): company_name = StringField( u'company_name', validators=[validators.data_required(message=u'缺少公司名字')]) cover_image = StringField( u'cover_image', validators=[validators.data_required(message=u'缺少封面图片'), ValidImage()]) company_url = StringField( u'company_url', validators=[validators.data_required(message=u'缺少公司网址')]) company_addr = StringField( u'company_addr', validators=[validators.data_required(message=u'缺少公司地址描述')]) pm_manager = StringField( u'pm_manager', validators=[validators.data_required(message=u'缺少项目负责人')]) company_introduce = StringField( u'company_introduce', validators=[validators.data_required(message=u'缺少公司描述')]) type_id = IntegerField( u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
class GetTeamMemberMeta(CMForm): tm_id = IntegerField( u'tm_id', validators=[validators.data_required(message=u'缺少成员id'), ValidID()])
class SetTeamTop(CMForm): tm_id = IntegerField( u'tm_id', validators=[validators.data_required(message=u'缺少成员id'), ValidID()]) top = BooleanField(u'top', default=False)
class DeleteTab(CMForm): tab_id = IntegerField( u'tab_id', validators=[validators.data_required(message='缺少tab栏id')])
class UpdateTab(AddTab): tab_id = IntegerField( u'tab_id', validators=[validators.data_required(message='缺少tab栏id')])
class DeleteImage(CMForm): image_id = IntegerField( u'image_id', validators=[validators.data_required(message=u'缺少图片id')])
class UpdateNews(AddNews): news_id = IntegerField( u'news_id', validators=[validators.data_required(message=u'缺少新闻id')])
class SetImTop(CMForm): im_id = IntegerField( u'im_id', validators=[validators.data_required(message=u'缺少项目id')]) top = BooleanField(u'top', default=False)
class DeleteInvestmentType(CMForm): type_id = IntegerField( u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
class UpdateInvestmentType(AddInvestmentType): type_id = IntegerField( u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
class GetAddrMeta(CMForm): addr_id = IntegerField( u'addr_id', validators=[validators.data_required(message=u'缺少地址记录id')])
class UpdateAddr(AddAddr): addr_id = IntegerField( u'addr_id', validators=[validators.data_required(message=u'缺少地址记录id')])
class GetNewsMeta(CMForm): news_id = IntegerField( u'news_id', validators=[validators.data_required(message=u'缺少新闻id')])
class SetNewsTop(CMForm): news_id = IntegerField( u'news_id', validators=[validators.data_required(message=u'缺少新闻id')]) top = BooleanField(u'top', default=False)
class UpdateInvestment(AddInvestment): im_id = IntegerField( u'im_id', validators=[validators.data_required(message=u'缺少项目id')])
class UpdateImage(AddImage): image_id = IntegerField( u'image_id', validators=[validators.data_required(message=u'缺少图片id')])
class DeleteInvestment(CMForm): im_id = IntegerField( u'im_id', validators=[validators.data_required(message=u'缺少项目id')])
class UpdateTeamMember(AddTeamMember): tm_id = IntegerField( u'tm_id', validators=[validators.data_required(message=u'缺少成员id'), ValidID()])