12345678910111213141516171819 |
- 'use strict';
- module.exports = app => {
- const mongoose = app.mongoose;
- const Schema = mongoose.Schema;
- const WXMenuSchema = new Schema({
- appid: { type: String },
- name: { type: String },
- url: { type: String },
- type: { type: String },
- sub_button: [{
- name: { type: String },
- url: { type: String },
- type: { type: String },
- }],
- });
- return mongoose.model('wxMenu', WXMenuSchema, 'wx_menu');
- };
|