Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CashboxKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Пополнить кассу "+emoji.DollarBanknote, "plus_cash"), tgbotapi.NewInlineKeyboardButtonData("Взять с кассы "+emoji.MoneyWithWings, "minus_cash"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Все транзакции "+emoji.Receipt, "transactions"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Начать день "+emoji.FileBox, "set_start_cash"), tgbotapi.NewInlineKeyboardButtonData("Завершить день "+emoji.EndArrow, "end_day"), ), tgbotapi.NewInlineKeyboardRow( MainMenuButton, ), )
View Source
var EditProductKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Название", "edit prod_name"), tgbotapi.NewInlineKeyboardButtonData("Маржа", "edit prod_margin"), tgbotapi.NewInlineKeyboardButtonData("Себестоимость", "edit prod_prime"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Цена", "edit prod_price"), tgbotapi.NewInlineKeyboardButtonData("Единица", "edit prod_unit"), ), tgbotapi.NewInlineKeyboardRow( MainMenuButton, ), )
View Source
var HistoryKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Удалить покупку "+emoji.Basket, "remove_purchase"), ), tgbotapi.NewInlineKeyboardRow( MainMenuButton, ), )
View Source
var MainMenu = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Продажа "+emoji.Dollar, "purchase"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Настройки "+emoji.Gear, "configs"), tgbotapi.NewInlineKeyboardButtonData("Статистика "+emoji.GraphicIncrease, "stats"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Склад "+emoji.Package, "store"), tgbotapi.NewInlineKeyboardButtonData("Касса "+emoji.MoneyFace, "cashbox"), ), )
View Source
var MainMenuButton = tgbotapi.NewInlineKeyboardButtonData("Главное Меню "+emoji.House, "home")
View Source
var SettingsKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Создать продукт "+emoji.Plus, "add_product"), tgbotapi.NewInlineKeyboardButtonData("Показать все продукты "+emoji.Box, "get_all_products"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Добавить тип "+emoji.NewButton, "add_type"), tgbotapi.NewInlineKeyboardButtonData("Показать все типы "+emoji.Info, "get_all_types"), ), tgbotapi.NewInlineKeyboardRow(MainMenuButton), )
Create keyboard for configs.
View Source
var StatsKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Статистика за месяц "+emoji.UpLeftArrow, "month_stats"), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("История покупок"+emoji.UpLeftArrow, "curr_day_history"), tgbotapi.NewInlineKeyboardButtonData("Статистика за день"+emoji.GraphicIncrease, "curr_day_stats"), ), tgbotapi.NewInlineKeyboardRow( MainMenuButton, ), )
View Source
var StoreKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Поставка продукта "+emoji.Registered, "supply"), tgbotapi.NewInlineKeyboardButtonData("Проверить склад "+emoji.QuestionMark, "check_storage"), ), tgbotapi.NewInlineKeyboardRow(MainMenuButton), )
View Source
var TypesListKeyboard = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Удалить тип "+emoji.Basket, "remove_type"), ), tgbotapi.NewInlineKeyboardRow( MainMenuButton, ), )
Functions ¶
func GetTypesKeyboard ¶
func GetTypesKeyboard(data string) tgbotapi.InlineKeyboardMarkup
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.