lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
a4413b7b58
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/model/business/lessonCoach.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 = {
   lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title' ] }, //
   school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
-  coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name' ] }, //
+  coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name', 'icon' ] }, //
   is_sign: { type: String, required: false, default: '0', zh: '签到' }, // 0:未到;1:已签到
 };
 const schema = new Schema(lessonCoach, { toJSON: { getters: true, virtuals: true } });