// 一些通用的interface定义

import { UserGuildType } from "../db/UserGuild";

export interface RewardInter {
    id: number;
    count: number;
}

export interface ItemInter { 
    id: number;
    count?: number; 
    seqId?: number; 
    type?: number;
    isPay?: boolean;
    hid?: number;
};

// 百家学宫，布阵武将位置
export interface SclPosInter {
    id: number;
    hid: number;
    isOpen: boolean;
}

// 百家学宫返回
export interface SclResultInter {
    id: number;
    position: SclPosInter[]
}


export interface pvpEndParamInter {
    hid: number;
    damage: number;
    heal: number;
    underDamage: number;
}

export interface Uid {
    uid: string;
    sid: string;
}

export interface pushMail {
    route: string;
    data: mailData[];
    uids: Uid[];
}

export interface mailData {
    id: string;
    goods: RewardInter[];
    sendTime: number;
    endTime: number;
    content: string;
    status: number;
    mailType: number;
    sendName: string;
}

export interface guildInter { 
    myUserGuild: UserGuildType;
    hisUserGuild: UserGuildType; 
}