oak-pay-business/es/oak-app-domain/OfflineAccount/Storage.js

82 lines
1.7 KiB
JavaScript

import { actions } from "./Action";
export const desc = {
attributes: {
taxLossRatio: {
notNull: true,
type: "decimal",
params: {
precision: 4,
scale: 2
}
},
refundGapDays: {
type: "int",
params: {
width: 4,
signed: true
}
},
refundCompensateRatio: {
type: "int",
params: {
width: 4,
signed: true
}
},
allowWithdrawTransfer: {
notNull: true,
type: "boolean"
},
withdrawTransferLossRatio: {
type: "decimal",
params: {
precision: 4,
scale: 2
}
},
type: {
notNull: true,
type: "enum",
enumeration: ["bank", "alipay", "wechat", "shouqianba", "others"]
},
channel: {
type: "varchar",
params: {
length: 32
}
},
name: {
type: "varchar",
params: {
length: 64
}
},
qrCode: {
type: "text"
},
allowDeposit: {
notNull: true,
type: "boolean"
},
allowPay: {
notNull: true,
type: "boolean"
},
systemId: {
notNull: true,
type: "ref",
ref: "system"
},
price: {
notNull: true,
type: "money"
},
enabled: {
notNull: true,
type: "boolean"
}
},
actionType: "crud",
actions
};