import { ItemEnum } from "../common/InterfaceAddEnum";

interface BaseItem {
    conf: {};
    id: number;
    count: string;
    type: ItemEnum;
}

class Data {
    private _goodsData: { [id: string]: BaseItem } = {};

    init(): void {
        this.reset();
    }

    reset(): void {
        this._goodsData = {};

    }

    purge(): void {
        this.reset();
    }

    setAllGoods() {

    }

    getAllGoods() {

    }

    getBagGoods() {

    }

    getGoodsById(id: string) {

    }

    addGoodsById(id: string, num: number) {

    }

    getGoodsLocalInfo(id: string, num: number) {

    }
}

export let MailData = new Data;