|
@@ -9,6 +9,7 @@ const banner = {
|
|
type: { type: String, required: false, zh: '类型' }, // 字典表:banner_type
|
|
type: { type: String, required: false, zh: '类型' }, // 字典表:banner_type
|
|
to: { type: String, required: false, zh: '跳转至' }, // 填写路径
|
|
to: { type: String, required: false, zh: '跳转至' }, // 填写路径
|
|
status: { type: String, required: false, default: '0', zh: '是否正在使用' }, // 字典status
|
|
status: { type: String, required: false, default: '0', zh: '是否正在使用' }, // 字典status
|
|
|
|
+ content: { type: String, required: false, zh: '自定义内容' }, //
|
|
};
|
|
};
|
|
const schema = new Schema(banner, { toJSON: { getters: true, virtuals: true } });
|
|
const schema = new Schema(banner, { toJSON: { getters: true, virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|