'use strict';

const AppItem = {
  AccountInit: 100,
  AccountJust: 101,
  BookFare: 120,
  BookOtherIn: 121,
  BookOtherOut: 122,
  CarTeam: 125
};
function getAppItemData(num = 125) {
  const reldata = [
    { id: 100, name: "\u8D26\u6237\u521D\u59CB\u5316" },
    { id: 101, name: "\u8D26\u6237\u8C03\u8D26" },
    { id: 120, name: "\u8BA2\u5355\u6536\u6B3E" },
    { id: 121, name: "\u5176\u4ED6\u6536\u5165" },
    { id: 122, name: "\u5176\u4ED6\u652F\u51FA" },
    { id: 125, name: "\u4ED8\u8F66\u8D39" }
  ];
  return reldata.filter((x) => x.id <= num);
}
function getAppItemText(id, num = 125) {
  let data = getAppItemData(num);
  let item = data.find((x) => x.id == id);
  if (item) {
    return item.name;
  }
  return "";
}

exports.AppItem = AppItem;
exports.getAppItemData = getAppItemData;
exports.getAppItemText = getAppItemText;
