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