openydt-list
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCRITICAL — 开始前 MUST 先用 Read 工具读取,掌握认证 / profile / 签名 / 状态码 / 限速 / 安全规则后再执行任何命令。../openydt-shared/SKILL.md
CRITICAL — MUST use the Read tool to readbefore starting. Master authentication / profile / signature / status codes / rate limiting / security rules before executing any commands.../openydt-shared/SKILL.md
何时用本技能
When to Use This Skill
当用户要在停车场维护车牌名单时使用本技能,包括三类业务:
- 黑名单(blacklist):禁止某车辆进场 / 收高额费用。说法如「拉黑这台车」「加黑名单」「查黑名单列表」「解除黑名单」。
- 白名单(redlist):放行规则,免费 / 特权通行。说法如「加白名单」「警车放行」「白名单规则」「删除放行规则」。
- 访客(visitor):临时来访登记,限时通行。说法如「登记访客车」「访客放行」「取消访客预约」。
意图路由:
- 「加黑 / 拉黑 / 查黑名单 / 解除黑名单」→
openydt blacklist ... - 「加白 / 白名单规则 / 删除白名单」→
openydt redlist ... - 「访客登记 / 取消访客」→
openydt visitor ... - 「创建特殊车辆类型 / VIP 分组」→ (前置步骤,见业务流程)
openydt ticket add-special-car-type
注意:本技能命令分布在 blacklist / redlist / visitor 三个子命令域,调用前缀各不相同。
Use this skill when users need to maintain license plate lists in parking lots, including three types of services:
- Blacklist: Prohibit a vehicle from entering / charge high fees. Phrases include "block this car", "add to blacklist", "check blacklist list", "remove from blacklist".
- Whitelist (redlist): Access rules, free / privileged access. Phrases include "add to whitelist", "police vehicle access", "whitelist rules", "delete access rules".
- Visitor: Temporary visit registration, time-limited access. Phrases include "register visitor vehicle", "visitor access", "cancel visitor reservation".
Intent Routing:
- "Add to blacklist / block / check blacklist / remove from blacklist" →
openydt blacklist ... - "Add to whitelist / whitelist rules / delete whitelist" →
openydt redlist ... - "Visitor registration / cancel visitor" →
openydt visitor ... - "Create special vehicle type / VIP group" → (prerequisite step, see business process)
openydt ticket add-special-car-type
Note: Commands for this skill are distributed across three sub-command domains: blacklist / redlist / visitor, each with different calling prefixes.
可用命令
Available Commands
| 中文名 | 命令 | 读/写 | 关键参数 |
|---|---|---|---|
| 添加黑名单车辆 | | 写 | |
| 查询黑名单车辆列表 | | 读 | |
| 取消黑名单车辆 | | 写 | |
| 新增白名单规则 | | 写 | |
| 查询白名单规则 | | 读 | |
| 删除白名单规则 | | 写 | |
| 添加访客车辆 | | 写 | |
| 取消访客车辆 | | 写 | |
所有写操作(add/remove/del/cancel)均需追加确认。读操作(get-*)无需--yes。--yes
| Chinese Name | Command | Read/Write | Key Parameters |
|---|---|---|---|
| Add Blacklist Vehicle | | Write | |
| Query Blacklist Vehicle List | | Read | |
| Cancel Blacklist Vehicle | | Write | |
| Add Whitelist Rule | | Write | |
| Query Whitelist Rule | | Read | |
| Delete Whitelist Rule | | Write | |
| Add Visitor Vehicle | | Write | |
| Cancel Visitor Vehicle | | Write | |
All write operations (add/remove/del/cancel) must appendfor confirmation. Read operations (get-*) do not require--yes.--yes
业务流程
Business Process
黑名单 / 访客登记必须先有「特殊车辆类型」,其 是后续命令的必填入参。完整闭环如下,务必用前序命令响应里的字段作为后续命令入参:
specialCarTypeId-
创建特殊车辆类型(前置,属 ticket 域)
openydt ticket add-special-car-type --yes- 黑名单用 ,访客用
vipGroupType=2。vipGroupType=1 - 从响应中取回的 是步骤 2 的必填入参(黑名单
specialCarTypeId/ 访客--special-car-type-id)。--special-car-type-id
- 黑名单用
-
登记车辆(用步骤 1 的+ 车牌 + parkCode)
specialCarTypeId- 黑名单:
openydt blacklist add-black-list-car --yes - 访客:
openydt visitor add-visitor-car-new --yes
- 黑名单:
-
查询确认
- 黑名单:,从返回列表中取回
openydt blacklist get-park-black-list,供步骤 4 精确取消使用。blacklistId - 白名单:,从返回中取回
openydt redlist get-red-list,供ruleId使用。del-red-list
- 黑名单:
-
清理 / 取消
- 黑名单:(用步骤 3 的
openydt blacklist remove-black-list-car --yes,或仅传--blacklist-id取消该车牌全部黑名单)--car-no - 访客:(用
openydt visitor cancel-visitor-car-new --yes,或仅传--visitor-id取消最新一次访客)--car-no - 白名单规则:
openydt redlist del-red-list --yes --rule-id <步骤3的ruleId>
- 黑名单:
白名单规则相对独立,无需特殊车辆类型,直接用 新增(支持单车牌或 这类通配规则)。
openydt redlist red-list-add*警Blacklist / visitor registration must first have a "special vehicle type", whose is a required parameter for subsequent commands. The complete loop is as follows, be sure to use fields from the response of the previous command as parameters for the next command:
specialCarTypeId-
Create Special Vehicle Type (prerequisite, belongs to ticket domain)
openydt ticket add-special-car-type --yes- Use for blacklist,
vipGroupType=2for visitor.vipGroupType=1 - The retrieved from the response is a required parameter for step 2 (blacklist
specialCarTypeId/ visitor--special-car-type-id).--special-car-type-id
- Use
-
Register Vehicle (usefrom step 1 + license plate + parkCode)
specialCarTypeId- Blacklist:
openydt blacklist add-black-list-car --yes - Visitor:
openydt visitor add-visitor-car-new --yes
- Blacklist:
-
Query and Confirm
- Blacklist: , retrieve
openydt blacklist get-park-black-listfrom the returned list for precise cancellation in step 4.blacklistId - Whitelist: , retrieve
openydt redlist get-red-listfrom the response for use inruleId.del-red-list
- Blacklist:
-
Cleanup / Cancel
- Blacklist: (use
openydt blacklist remove-black-list-car --yesfrom step 3, or only pass--blacklist-idto cancel all blacklist entries for that license plate)--car-no - Visitor: (use
openydt visitor cancel-visitor-car-new --yes, or only pass--visitor-idto cancel the latest visitor entry)--car-no - Whitelist Rule:
openydt redlist del-red-list --yes --rule-id <ruleId from step3>
- Blacklist:
Whitelist rules are relatively independent and do not require a special vehicle type. Directly use to add new rules (supports single license plate or wildcard rules like ).
openydt redlist red-list-add*警示例
Examples
- 添加一条黑名单车辆(写,需 ;
--yes来自special-car-type-id的响应):add-special-car-type
bash
openydt blacklist add-black-list-car --yes \
--park-code 2KNTYVWC \
--car-code 粤YKK123 \
--car-owner 车主 \
--reason 原因 \
--special-car-type-id 253- 查询某停车场黑名单列表(读,免 ,用
--yes传 parkCodeList 数组):--body
bash
openydt blacklist get-park-black-list \
--body '{"parkCodeList":["2KNTYVWC"],"carCode":"粤YKK123","pageNum":1,"pageSize":10}'- 新增白名单放行规则(写,需 ,park-code-list 为数组用
--yes):--body
bash
openydt redlist red-list-add --yes \
--body '{"parkCodeList":["2KNTYVWC","2KNTYVCC"],"redlistParam":"粤YKK123"}'- 登记访客车辆(写,需 ;
--yes来自访客类型的special-car-type-id响应):add-special-car-type
bash
openydt visitor add-visitor-car-new --yes \
--park-code 2KKN885S \
--car-no 粤YGW982 \
--owner 李四 \
--phone 13596156884 \
--reason 访友 \
--visit-from 20161214163930 \
--visit-to 20161215163930 \
--special-car-type-id 154- Add a blacklist vehicle (write operation, requires ;
--yescomes from the response ofspecial-car-type-id):add-special-car-type
bash
openydt blacklist add-black-list-car --yes \
--park-code 2KNTYVWC \
--car-code 粤YKK123 \
--car-owner 车主 \
--reason 原因 \
--special-car-type-id 253- Query the blacklist list of a parking lot (read operation, no required, pass parkCodeList array with
--yes):--body
bash
openydt blacklist get-park-black-list \
--body '{"parkCodeList":["2KNTYVWC"],"carCode":"粤YKK123","pageNum":1,"pageSize":10}'- Add a whitelist access rule (write operation, requires , park-code-list as array passed via
--yes):--body
bash
openydt redlist red-list-add --yes \
--body '{"parkCodeList":["2KNTYVWC","2KNTYVCC"],"redlistParam":"粤YKK123"}'- Register a visitor vehicle (write operation, requires ;
--yescomes from the response ofspecial-car-type-idfor visitor type):add-special-car-type
bash
openydt visitor add-visitor-car-new --yes \
--park-code 2KKN885S \
--car-no 粤YGW982 \
--owner 李四 \
--phone 13596156884 \
--reason 访友 \
--visit-from 20161214163930 \
--visit-to 20161215163930 \
--special-car-type-id 154