64 lines
1.5 KiB
JavaScript
64 lines
1.5 KiB
JavaScript
"use strict";
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.desc = void 0;
|
||
const action_1 = require("oak-domain/lib/actions/action");
|
||
exports.desc = {
|
||
attributes: {
|
||
name: {
|
||
notNull: true,
|
||
type: "varchar",
|
||
params: {
|
||
length: 32
|
||
}
|
||
},
|
||
description: {
|
||
type: "text"
|
||
},
|
||
config: {
|
||
notNull: true,
|
||
type: "object"
|
||
},
|
||
platformId: {
|
||
type: "ref",
|
||
ref: "platform"
|
||
},
|
||
folder // 提现的loss在用户提现时计算
|
||
: {
|
||
type: "varchar",
|
||
params: {
|
||
length: 16
|
||
}
|
||
},
|
||
oldestVersion: {
|
||
type: "varchar",
|
||
params: {
|
||
length: 32
|
||
}
|
||
},
|
||
super // 如果为true,则按照渠道taxLossRatio和refundCompensateRatio进行扣取(如果因为depositLossRatio已经大于taxLossRatio,则全额退款)
|
||
: {
|
||
type: "boolean"
|
||
},
|
||
style: {
|
||
type: "object"
|
||
},
|
||
entity: {
|
||
type: "varchar",
|
||
params: {
|
||
length: 32
|
||
}
|
||
},
|
||
entityId: {
|
||
type: "varchar",
|
||
params: {
|
||
length: 64
|
||
}
|
||
},
|
||
payConfig: {
|
||
type: "object"
|
||
}
|
||
},
|
||
actionType: "crud",
|
||
actions: action_1.genericActions
|
||
};
|