ttpos-staff
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesettpos-staff
ttpos-staff
先读 。本版不提供 (按邮箱或手机号跨商户查人);只能在当前商户内用 查。
ttpos-sharedstaff searchstaff list --keywordFirst read . This version does not provide (searching for people across merchants by email or phone number); you can only search within the current merchant using .
ttpos-sharedstaff searchstaff list --keyword能回答的问题
Questions this can answer
| 问题 | 命令 |
|---|---|
| 有哪些员工、什么角色 | |
| 某个员工的完整联系方式 | |
| 某个角色有哪些权限 | |
| Question | Command |
|---|---|
| What employees are there and what roles do they have | |
| Full contact information for a specific employee | |
| What permissions a specific role has | |
联系方式
Contact information
staff liststaff get <uuid>staff list --keywordstaff get--revealPhone numbers and email addresses are masked in , while retrieves a single record by UUID and displays its contact information in full. When asked for an employee's contact information, first use to find the UUID, then use . Do not use (the agent invocation will be rejected).
staff liststaff get <uuid>staff list --keywordstaff get--reveal命令
Commands
bash
ttpos staff list --keyword <用户名/姓名/手机>
ttpos staff get <uuid>
ttpos staff role list
ttpos staff role get <uuid>
ttpos staff permission-group | jq '.data'查询上限:、 每页最多 100 条。
staff liststaff role listbash
ttpos staff list --keyword <username/name/phone>
ttpos staff get <uuid>
ttpos staff role list
ttpos staff role get <uuid>
ttpos staff permission-group | jq '.data'Query limits: and support a maximum of 100 records per page.
staff liststaff role list读输出
Reading the output
- 、
is_super是整数is_disable,不是 bool,用0/1判断。== 1 - 的
staff list是字符串;uuid不能用打码后的手机号。--keyword - 的
staff get是未建模的原始详情,data也输出 JSON。--format table - 返回
staff role getuuidaccess_uuidsnamestaff_countstaff_uuidsselected_leaf_count。total_leaf_count、staff_uuids是 number 数组,可能超过 2^53,不要转 double。access_uuids - 只输出 JSON,数据量大。节点结构
staff permission-group递归嵌套,{id,uuid,name,path,parent_id,is_route,is_menu,is_show,children:[...]}是大整数。uuid - 只覆盖账号基础信息、角色和权限树,不含登录日志和操作日志。
退出码见 。
ttpos help exit-codes- and
is_superare integeris_disablevalues, not booleans; test them with0/1.== 1 - The in
uuidis a string;staff listcannot be used with a masked phone number.--keyword - The in
datacontains raw, unmodeled details;staff getalso outputs JSON.--format table - returns
staff role get,uuid,access_uuids,name,staff_count,staff_uuids, andselected_leaf_count.total_leaf_countandstaff_uuidsare arrays of numbers that may exceed 2^53, so do not convert them to double.access_uuids - outputs JSON only and may return a large amount of data. Its node structure,
staff permission-group, is recursively nested, and{id,uuid,name,path,parent_id,is_route,is_menu,is_show,children:[...]}is a large integer.uuid - This covers basic account information, roles, and the permission tree only; it does not include login logs or operation logs.
See for exit codes.
ttpos help exit-codes