import { Moment } from "moment";

// 仓单贸易 贸易圈 挂牌
export interface BlocsListingForm {
    accountid: undefined | number,
    FixedPrice: number,
    OrderQty: number,
    delistingQty: number,
    margin: number,
    DeliveryMonth: Moment,
    vidaliteTime: Moment,
    friends: number[],
    permanceTempName: string,
    permaceTempId: number,
}

export interface RuleItem {
    required?: boolean,
    message?: string,
    trigger?: 'blur' | 'change' | ['change', 'blur'],
    type?: string,
    validator?: Function,
    min?: number,
    max?: number,
}
export interface Rules {
    [key: string]: RuleItem[]
}