Example #1
0
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()
Example #2
0
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)
Example #3
0
class GetCoursePostSchema(BaseSchema, FillHelperMixin):
    start = ma.Integer()
    limit = ma.Integer()
    order = ma.Integer()
    supply = ma.Integer()
    demand = ma.Integer()
    closed = ma.Integer()
Example #4
0
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)
Example #5
0
class GetMyCoursePostSchema(BaseSchema, FillHelperMixin):
    start = ma.Integer()
    limit = ma.Integer()
    order = ma.Integer()
Example #6
0
class UpdateStudentSchema(BaseSchema, FillHelperMixin):
    type = ma.Integer(required=True)
    grade = ma.String(required=True)
Example #7
0
class GetGoodsPostSchema(BaseSchema, FillHelperMixin):
    start = ma.Integer()
    limit = ma.Integer()
    order = ma.Integer()
    closed = ma.Integer()
Example #8
0
class UpdateGoodsPostStatusSchema(BaseSchema, FillHelperMixin):
    status = ma.Integer(required=True)
Example #9
0
class UpdateGoodsPostSchema(BaseSchema, FillHelperMixin):
    message = ma.String()
    switch = ma.Integer()
    wechat = ma.String()
Example #10
0
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()
Example #11
0
class DecrRemainingViewCountSchema(BaseSchema, FillHelperMixin):
    post_id = ma.Integer(required=True)
Example #12
0
class SharePostSchema(BaseSchema, FillHelperMixin):
    post_id = ma.Integer(required=True)
    post_type = ma.Integer(required=True)
    student_id = ma.Integer()
Example #13
0
class ShareStudentSchema(BaseSchema, FillHelperMixin):
    student_id = ma.Integer(required=True)