import { joinFightData } from '../fightControl/fightType';
import { ResGetList } from './shiwu/PtlGetList';
import { ResLogin } from './user/PtlLogin';


export type prizeType = {
    /**类型 */
    a: string;
    /**id */
    t: any;
    /**数量 */
    n: number;
    /**颜色 */
    colour?: number;
    /**饰物buff */
    shiwuBuff?: any;
};

export type heroShiWu = Pick<ResGetList['list'][''], '_id' | 'jichu' | 'fujia' | 'zhuanshu'> & {
    /**饰物id */
    shiwuId?: string;
    /**品质 */
    colour?: number;
};

export type rankInfo = {
    /**排名 */
    rank?: number;
    /**玩家信息 */
    player: Partial<ResLogin['gud']>;
    roles?: joinFightData['roles'];
    /**排名数据 */
    valArr?: Array<any>;
    /**额外数据 */
    otherData?: {
        [k: string]: any;
    };
    /**玩家数据更新时间 */
    utime?: number
};

export type chatLog = Omit<{
    _id?: string;
    uid: string;
    ip: string;
    game: string;
    owner: string;
    name: string;
    type: string;
    toUid: string;
    content: string;
    ctime: number;
    vip: number;
    lv: number;
    sid: number;
    uped?: number;
    channel?: number;
}, '_id'>

export type chatMsgLog = {
    content: string,
    toUid?: string,
    type: string,
}