lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
c0b9633af1
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      app/model/business/lessonCoach.js
  2. 1 1
      app/model/business/lessonStudent.js

+ 1 - 1
app/model/business/lessonCoach.js

@@ -7,7 +7,7 @@ const moneyPlugin = require('naf-framework-mongoose-free/lib/model/type-money-pl
 const lessonCoach = {
 const lessonCoach = {
   lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title' ] }, //
   lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title' ] }, //
   school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
   school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
-  coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name', 'icon' ] }, //
+  coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name', 'icon', 'phone' ] }, //
   is_sign: { type: String, required: false, default: '0', zh: '签到' }, // 0:未到;1:已签到
   is_sign: { type: String, required: false, default: '0', zh: '签到' }, // 0:未到;1:已签到
 };
 };
 const schema = new Schema(lessonCoach, { toJSON: { getters: true, virtuals: true } });
 const schema = new Schema(lessonCoach, { toJSON: { getters: true, virtuals: true } });

+ 1 - 1
app/model/business/lessonStudent.js

@@ -6,7 +6,7 @@ const moneyPlugin = require('naf-framework-mongoose-free/lib/model/type-money-pl
 // 课程表-学员
 // 课程表-学员
 const lessonStudent = {
 const lessonStudent = {
   lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title', 'status', 'time_start', 'time_end', 'refund_hour' ] }, //
   lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title', 'status', 'time_start', 'time_end', 'refund_hour' ] }, //
-  school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
+  school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name', 'phone', 'icon' ] }, //
   student_id: { type: String, required: false, zh: '学生id', ref: 'Student', getProp: [ 'name' ] }, //
   student_id: { type: String, required: false, zh: '学生id', ref: 'Student', getProp: [ 'name' ] }, //
   is_try: { type: String, required: false, default: '0', zh: '是否试课' }, // 0:非试课;1:试课
   is_try: { type: String, required: false, default: '0', zh: '是否试课' }, // 0:非试课;1:试课
   try_status: { type: String, default: '0', zh: '试课审核状态' }, // 0:未审核;1:审核通过;2审核拒绝
   try_status: { type: String, default: '0', zh: '试课审核状态' }, // 0:未审核;1:审核通过;2审核拒绝