wxConfigModel.js 410 B

12345678910111213141516
  1. 'use strict';
  2. module.exports = app => {
  3. const mongoose = app.mongoose;
  4. const Schema = mongoose.Schema;
  5. const WXConfigSchema = new Schema({
  6. cid: { type: String },
  7. appid: { type: String },
  8. appsecret: { type: String },
  9. token: { type: String },
  10. accesstoken: { type: String },
  11. jsapiticket: { type: String },
  12. });
  13. return mongoose.model('wxConfig', WXConfigSchema, 'wx_config');
  14. };