ttpos-desk

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ttpos-desk

ttpos-desk

先读
ttpos-shared
。
First read
ttpos-shared
.

能回答的问题

Questions It Can Answer

问题命令
有多少张桌、哪些桌有人
ttpos desk list --size 100
有哪些区域、每个区域几张桌
ttpos desk region list
bash
ttpos desk list --page 2 --size 100
ttpos desk region list
查询上限:
desk list
每页最多 100 条。
QuestionCommand
How many tables are there, and which tables are occupied
ttpos desk list --size 100
Which regions are available, and how many tables are in each region
ttpos desk region list
bash
ttpos desk list --page 2 --size 100
ttpos desk region list
Query limit:
desk list
returns a maximum of 100 records per page.

ttpos desk list

ttpos desk list

  • 默认只返回第一页 20 条。
    count
    是总桌台数,大于本页条数就要翻页,否则结果不全。回答"有多少张桌"直接用
    count
    。
  • 没有区域、状态、关键字过滤,只能翻页取全后自行筛选。
  • uuid
    、
    region_uuid
    、
    type_uuid
    是字符串。
    region_name
    、
    type_name
    是现成名称。
    is_disable
    是整数
    0/1
    。
  • status_text
    是开台状态:空闲或已开台(有人)。不含预订数据。
  • By default, it returns only the first 20 records.
    count
    is the total number of desks. If it is greater than the number of records on the current page, pagination is required; otherwise, the results will be incomplete. To answer "How many tables are there?", use
    count
    directly.
  • There are no region, status, or keyword filters, so all pages must be retrieved and filtered manually.
  • uuid
    ,
    region_uuid
    , and
    type_uuid
    are strings.
    region_name
    and
    type_name
    are ready-to-use names.
    is_disable
    is the integer
    0/1
    .
  • status_text
    indicates the table opening status: free or open (occupied). It does not include reservation data.

ttpos desk region list

ttpos desk region list

全量返回,没有
--page
/
--size
,
count
是区域数。每个区域的桌数直接读
desk_count
,不用重新统计。返回的是区域本身,不是按区域分组的桌台。
退出码见
ttpos help exit-codes
。
Returns all records and does not support
--page
/
--size
.
count
is the number of regions. Read
desk_count
directly for each region's number of desks; there is no need to count them again. It returns the regions themselves, not desks grouped by region.
See
ttpos help exit-codes
for exit codes.