lrf 2 年之前
父节点
当前提交
f10f6d2e0a
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 3
      app/controller/user/config/.cashOut.js
  2. 2 0
      app/model/user/cashOut.js

+ 3 - 3
app/controller/user/config/.cashOut.js

@@ -1,7 +1,6 @@
-
 module.exports = {
   create: {
-    requestBody: ['card', '!money', '!customer', '!apply_time', '!apply_reason', 'deal_person', 'exam_time', 'exam_reason', 'status'],
+    requestBody: ['card_name', 'card_bank', 'card', '!money', '!customer', '!apply_time', '!apply_reason', 'deal_person', 'exam_time', 'exam_reason', 'status'],
   },
   destroy: {
     params: ['!id'],
@@ -9,7 +8,7 @@ module.exports = {
   },
   update: {
     params: ['!id'],
-    requestBody: ['card', 'money', 'customer', 'apply_time', 'apply_reason', 'deal_person', 'exam_time', 'exam_reason', 'status'],
+    requestBody: ['card_name', 'card_bank', 'card', 'money', 'customer', 'apply_time', 'apply_reason', 'deal_person', 'exam_time', 'exam_reason', 'status'],
   },
   show: {
     parameters: {
@@ -27,6 +26,7 @@ module.exports = {
         deal_person: 'deal_person',
         exam_time: 'exam_time',
         status: 'status',
+        card_name: '%card_name%',
       },
       // options: {
       //   "meta.state": 0 // 默认条件

+ 2 - 0
app/model/user/cashOut.js

@@ -12,6 +12,8 @@ const cashOut = {
   exam_time: { type: String, required: false, zh: '审核时间' }, //
   exam_reason: { type: String, required: false, zh: '审核理由' }, //
   card: { type: String, required: false, zh: '银行卡号' }, //
+  card_name: { type: String, required: false, zh: '银行卡所属' }, //
+  card_bank: { type: String, required: false, zh: '所属银行' }, //
   status: { type: String, required: true, default: '0', zh: '审核状态' }, // 字典表:withdrawal_exam_status
 };
 const schema = new Schema(cashOut, { toJSON: { getters: true, virtuals: true } });