Exemplo n.º 1
0
 def __init__(self, name, price, period, school_nid):
     """
     :param name: 课程名字
     :param price: 课程价格
     :param period: 课程周期
     :param school_nid: 学校ID
     """
     self.nid = identifier.CourseNid(self.db_path)
     self.name = name
     self.price = price
     self.period = period
     self.school_nid = school_nid
Exemplo n.º 2
0
 def __init__(self, name, price, period, school_id):
     '''
     name:课程名称
     price:课程价格
     period:课程周期
     school_id:学校对象 关联学校Id,学校ID具有get_obj_by_uuid方法,以此获取学校对象(其中包含学校信息)
     '''
     self.nid = identifier.CourseNid(Course.db_path)
     self.courseName = name
     self.coursePrice = price
     self.coursePeriod = period
     self.schoolId = school_id
Exemplo n.º 3
0
 def __init__(self, name, price, period, school_id):
     """
     :param name: 课程名
     :param price: 课程价格
     :param period: 课程周期
     :param school_id: 关联学校Id,学校ID具有get_obj_by_uuid方法,以此获取学校对象(其中包含学校信息)
     """
     self.nid = identifier.CourseNid(Course.db_path)
     self.courseName = name
     self.coursePrice = price
     self.coursePeriod = period
     self.schoolId = school_id
Exemplo n.º 4
0
 def __init__(self,name,price,period,school_nid):
     self.nid=identifier.CourseNid(self.db_path)
     self.name=name
     self.price=price
     self.period=period
     self.school_nid=school_nid