Explorar el Código

系统设置增加团长规则字段

guhongwei hace 2 años
padre
commit
8fb7d1c753
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2 2
      app/controller/system/config/.config.js
  2. 1 0
      app/model/system/config.js

+ 2 - 2
app/controller/system/config/.config.js

@@ -1,6 +1,6 @@
 module.exports = {
 module.exports = {
   create: {
   create: {
-    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu'],
+    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu','leader_rule'],
   },
   },
   destroy: {
   destroy: {
     params: ['!id'],
     params: ['!id'],
@@ -8,7 +8,7 @@ module.exports = {
   },
   },
   update: {
   update: {
     params: ['!id'],
     params: ['!id'],
-    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu'],
+    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu','leader_rule'],
   },
   },
   show: {
   show: {
     parameters: {
     parameters: {

+ 1 - 0
app/model/system/config.js

@@ -20,6 +20,7 @@ const config = {
   bottom_title: { type: String, required: false, zh: '底部加载数据结束的文字提示' }, //
   bottom_title: { type: String, required: false, zh: '底部加载数据结束的文字提示' }, //
   bottom_menu: { type: Object, zh: '底部菜单' },
   bottom_menu: { type: Object, zh: '底部菜单' },
   reward_day: { type: Number, zh: '提现日期', default: 14 },
   reward_day: { type: Number, zh: '提现日期', default: 14 },
+  leader_rule: { type: String, required: false  , zh: '团长规则' }, // 富文本 
 };
 };
 const schema = new Schema(config, { toJSON: { getters: true, virtuals: true } });
 const schema = new Schema(config, { toJSON: { getters: true, virtuals: true } });
 schema.index({ id: 1 });
 schema.index({ id: 1 });