package com.gingersoft.supply_chain.mvp.content;

import com.gingersoft.gsa.cloud.common.core.restaurant.RestaurantInfoManager;

import java.util.Map;

/**
 * @author 宇航.
 * User: admin
 * Date: 2020/12/5
 * Time: 16:27
 * Use:
 */
public class Constant {
    public static final int PAGE_SIZE = 10;
    public static final int PURCHASE_FOOD_MAX = 9999;


    public static final int DELETE = 1;
    public static final int NORMAL = 0;
    public static final String GET_INFO_ERROR = "數據獲取失敗，請稍候再試";
    public static final String INFO_SYNTAX_ERROR = "數據解析失敗，請聯繫開發人員";
    public static final String GET_INFO_LOADING = "數據獲取中...";
    public static final String NULL_INFO_ERROR = "未獲取到數據，請退出後重試";
    public static final String SAVE_SUCCESS = "保存成功";
    public static final String SAVE_FAIL = "保存失敗";



    public static void addBrandId(Map<String, Object> map) {
        map.put("brandId", RestaurantInfoManager.newInstance().getBrandId());
    }

    public static void addRestaurantId(Map<String, Object> map) {
        map.put("restaurantId", RestaurantInfoManager.newInstance().getRestaurantId());
    }

    public static void addPageSize(Map<String, Object> map) {
        map.put("pageSize", PAGE_SIZE);
    }

}
