oak-pay-business/src/entities/AbstractShipAccount.ts

32 lines
728 B
TypeScript

import {
String,
Text,
Price,
Boolean,
Datetime,
Int,
Decimal
} from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc, ActionDef } from 'oak-domain/lib/types';
export interface Schema extends EntityShape {
sort: Decimal<12, 8>; // 优先级高的会被优先使用来下快递
phatom1?: Int<8>;
phatom2?: String<64>;
};
export const entityDesc: EntityDesc<Schema> = {
locales: {
zh_CN: {
name: '抽象快递帐号',
attr: {
phatom1: '备用属性一',
phatom2: '备用属性二',
sort: '排序',
},
},
},
};