'use strict'; module.exports = app => { const mongoose = app.mongoose; const Schema = mongoose.Schema; const WXConfigSchema = new Schema({ cid: { type: String }, appid: { type: String }, appsecret: { type: String }, token: { type: String }, accesstoken: { type: String }, jsapiticket: { type: String }, }); return mongoose.model('wxConfig', WXConfigSchema, 'wx_config'); };