lfy-schedule
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese日程任务查询技能
Schedule and Task Query Skill
是陆份仪提供的命令行程序,所有操作通过执行lfy-cli命令完成。lfy-cli
通过 与日程系统交互。
lfy-cli schedule <接口名> '{}'is a command-line program provided by Lufeny, all operations are completed by executing thelfy-clicommand.lfy-cli
Interact with the schedule system via .
lfy-cli schedule <interface name> '{}'注意事项
Notes
- 若 不为
errcode或返回格式异常,需告知用户错误信息0 - 返回的时间范围为:今天 + 前7天 + 后7天,共15天
- 任务按开始时间排序
- If is not
errcodeor the return format is abnormal, you need to inform the user of the error message0 - The returned time range is: today + previous 7 days + next 7 days, total 15 days
- Tasks are sorted by start time
接口列表
API List
get_recent_tasks — 获取最近两周的日程任务
get_recent_tasks — Get schedule tasks for the last two weeks
bash
lfy-cli schedule get_recent_tasks '{}'获取最近15天的日程和任务列表(今天 + 前7天 + 后7天)。
参见 API 详情。
bash
lfy-cli schedule get_recent_tasks '{}'Get the list of schedules and tasks for the last 15 days (today + previous 7 days + next 7 days).
See API Details.
返回格式
Return Format
get_recent_tasks 返回格式
get_recent_tasks Return Format
json
[
{
"task_id": 1001,
"task_no": "TASK-2024-001",
"task_type": 1,
"type_name": "任务",
"task_name": "完成官方文档翻译",
"start_time": "2024-03-01 09:00",
"due_time": "2024-03-05 18:00",
"owner_name": "张三",
"status_value": 20,
"status_name": "进行中",
"priority_name": "高"
}
]| 字段 | 类型 | 说明 |
|---|---|---|
| integer | 任务唯一 ID |
| string | 任务编号 |
| integer | 任务类型 |
| string | 类型名称 |
| string | 任务名称 |
| string | 开始时间 |
| string | 截止时间 |
| string | 负责人姓名 |
| integer | 状态值 |
| string | 状态名称 |
| string | 优先级名称 |
json
[
{
"task_id": 1001,
"task_no": "TASK-2024-001",
"task_type": 1,
"type_name": "Task",
"task_name": "Complete official document translation",
"start_time": "2024-03-01 09:00",
"due_time": "2024-03-05 18:00",
"owner_name": "Zhang San",
"status_value": 20,
"status_name": "In Progress",
"priority_name": "High"
}
]| Field | Type | Description |
|---|---|---|
| integer | Unique task ID |
| string | Task number |
| integer | Task type |
| string | Type name |
| string | Task name |
| string | Start time |
| string | Due time |
| string | Name of the person in charge |
| integer | Status value |
| string | Status name |
| string | Priority name |
task_type 任务类型说明
task_type Task Type Description
| 值 | 类型名称 |
|---|---|
| 1 | 任务 |
| 2 | 需求 |
| 3 | 缺陷 |
| Value | Type Name |
|---|---|
| 1 | Task |
| 2 | Requirement |
| 3 | Bug |
status_value 状态值说明
status_value Status Value Description
| 值 | 状态名称 |
|---|---|
| 10 | 待办 |
| 20 | 进行中 |
| 30 | 已完成 |
| Value | Status Name |
|---|---|
| 10 | To Do |
| 20 | In Progress |
| 30 | Completed |
典型工作流
Typical Workflow
获取最近任务
Get Recent Tasks
经典 query 示例:
- "最近有什么任务?"
- "帮我看一下这周的日程"
- "查一下最近的日程安排"
- "有哪些任务要完成?"
流程:
- 调用 命令获取最近任务
get_recent_tasks - 按任务类型或时间分组展示
- 展示任务详情包括状态、优先级
展示结果:
有任务时:
📋 最近日程任务(共<count>项):
进行中
| 编号 | 任务名称 | 类型 | 开始时间 | 截止时间 | 负责人 | 状态 | 优先级 |
|---|---|---|---|---|---|---|---|
| TASK-2024-001 | 完成官方文档翻译 | 任务 | 2024-03-01 09:00 | 2024-03-05 18:00 | 张三 | 进行中 | 高 |
| TASK-2024-002 | 用户权限优化 | 需求 | 2024-03-03 09:00 | 2024-03-10 18:00 | 李四 | 进行中 | 中 |
字段映射:
| 原始字段 | 中文表头 | 备注 |
|---|---|---|
| task_no | 编号 | 默认展示 |
| task_name | 任务名称 | 默认展示 |
| type_name | 类型 | 默认展示 |
| start_time | 开始时间 | 默认展示 |
| due_time | 截止时间 | 默认展示 |
| owner_name | 负责人 | 默认展示 |
| status_name | 状态 | 默认展示 |
| priority_name | 优先级 | 默认展示 |
| task_id | - | 技术字段,默认隐藏 |
| task_type | - | 技术字段,默认隐藏 |
| status_value | - | 技术字段,默认隐藏 |
未找到时:
未找到最近15天内的日程任务。
Classic query examples:
- "What tasks do I have recently?"
- "Check this week's schedule for me"
- "Check the recent schedule arrangements"
- "What tasks need to be completed?"
Process:
- Call the command to get recent tasks
get_recent_tasks - Display grouped by task type or time
- Display task details including status and priority
Display Result:
When there are tasks:
📋 Recent schedule tasks (total <count> items):
In Progress
| No. | Task Name | Type | Start Time | Due Time | Person in Charge | Status | Priority |
|---|---|---|---|---|---|---|---|
| TASK-2024-001 | Complete official document translation | Task | 2024-03-01 09:00 | 2024-03-05 18:00 | Zhang San | In Progress | High |
| TASK-2024-002 | User permission optimization | Requirement | 2024-03-03 09:00 | 2024-03-10 18:00 | Li Si | In Progress | Medium |
Field Mapping:
| Original Field | Chinese Header | Remarks |
|---|---|---|
| task_no | No. | Display by default |
| task_name | Task Name | Display by default |
| type_name | Type | Display by default |
| start_time | Start Time | Display by default |
| due_time | Due Time | Display by default |
| owner_name | Person in Charge | Display by default |
| status_name | Status | Display by default |
| priority_name | Priority | Display by default |
| task_id | - | Technical field, hidden by default |
| task_type | - | Technical field, hidden by default |
| status_value | - | Technical field, hidden by default |
When no results are found:
No schedule tasks found in the last 15 days.