class CreateCoursePostSchema(BaseSchema, FillHelperMixin): student_id = ma.String(required=True) switch = ma.Integer(required=True) mobile = ma.String(required=True) message = ma.String(required=True) wechat = ma.String() supply = ma.Integer() demand = ma.Integer()
class UpdateWechatUserSchema(BaseSchema, FillHelperMixin): userInfo = ma.String(required=True) nickName = ma.Integer(required=True) gender = ma.String(required=True) language = ma.String(required=True) city = ma.String(required=True) province = ma.String(required=True) country = ma.String(required=True) avatarUrl = ma.String(required=True)
class GetCoursePostSchema(BaseSchema, FillHelperMixin): start = ma.Integer() limit = ma.Integer() order = ma.Integer() supply = ma.Integer() demand = ma.Integer() closed = ma.Integer()
class CreateStudentSchema(BaseSchema, FillHelperMixin): mobile = ma.String(required=True) type = ma.Integer(required=True) grade = ma.String(required=True) verify_code = ma.String(required=True)
class GetMyCoursePostSchema(BaseSchema, FillHelperMixin): start = ma.Integer() limit = ma.Integer() order = ma.Integer()
class UpdateStudentSchema(BaseSchema, FillHelperMixin): type = ma.Integer(required=True) grade = ma.String(required=True)
class GetGoodsPostSchema(BaseSchema, FillHelperMixin): start = ma.Integer() limit = ma.Integer() order = ma.Integer() closed = ma.Integer()
class UpdateGoodsPostStatusSchema(BaseSchema, FillHelperMixin): status = ma.Integer(required=True)
class UpdateGoodsPostSchema(BaseSchema, FillHelperMixin): message = ma.String() switch = ma.Integer() wechat = ma.String()
class CreateGoodsPostSchema(BaseSchema, FillHelperMixin): student_id = ma.String(required=True) switch = ma.Integer(required=True) mobile = ma.String(required=True) message = ma.String(required=True) wechat = ma.String()
class DecrRemainingViewCountSchema(BaseSchema, FillHelperMixin): post_id = ma.Integer(required=True)
class SharePostSchema(BaseSchema, FillHelperMixin): post_id = ma.Integer(required=True) post_type = ma.Integer(required=True) student_id = ma.Integer()
class ShareStudentSchema(BaseSchema, FillHelperMixin): student_id = ma.Integer(required=True)