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 <接口名> '{}'
与日程系统交互。
lfy-cli
is a command-line program provided by Lufeny, all operations are completed by executing the
lfy-cli
command.
Interact with the schedule system via
lfy-cli schedule <interface name> '{}'
.

注意事项

Notes

  • errcode
    不为
    0
    或返回格式异常,需告知用户错误信息
  • 返回的时间范围为:今天 + 前7天 + 后7天,共15天
  • 任务按开始时间排序

  • If
    errcode
    is not
    0
    or the return format is abnormal, you need to inform the user of the error message
  • 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": "高"
  }
]
字段类型说明
task_id
integer任务唯一 ID
task_no
string任务编号
task_type
integer任务类型
type_name
string类型名称
task_name
string任务名称
start_time
string开始时间
due_time
string截止时间
owner_name
string负责人姓名
status_value
integer状态值
status_name
string状态名称
priority_name
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"
  }
]
FieldTypeDescription
task_id
integerUnique task ID
task_no
stringTask number
task_type
integerTask type
type_name
stringType name
task_name
stringTask name
start_time
stringStart time
due_time
stringDue time
owner_name
stringName of the person in charge
status_value
integerStatus value
status_name
stringStatus name
priority_name
stringPriority name

task_type 任务类型说明

task_type Task Type Description

类型名称
1任务
2需求
3缺陷
ValueType Name
1Task
2Requirement
3Bug

status_value 状态值说明

status_value Status Value Description

状态名称
10待办
20进行中
30已完成

ValueStatus Name
10To Do
20In Progress
30Completed

典型工作流

Typical Workflow

获取最近任务

Get Recent Tasks

经典 query 示例:
  • "最近有什么任务?"
  • "帮我看一下这周的日程"
  • "查一下最近的日程安排"
  • "有哪些任务要完成?"
流程:
  1. 调用
    get_recent_tasks
    命令获取最近任务
  2. 按任务类型或时间分组展示
  3. 展示任务详情包括状态、优先级
展示结果:
有任务时:
📋 最近日程任务(共<count>项):
进行中
编号任务名称类型开始时间截止时间负责人状态优先级
TASK-2024-001完成官方文档翻译任务2024-03-01 09:002024-03-05 18:00张三进行中
TASK-2024-002用户权限优化需求2024-03-03 09:002024-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:
  1. Call the
    get_recent_tasks
    command to get recent tasks
  2. Display grouped by task type or time
  3. Display task details including status and priority
Display Result:
When there are tasks:
📋 Recent schedule tasks (total <count> items):
In Progress
No.Task NameTypeStart TimeDue TimePerson in ChargeStatusPriority
TASK-2024-001Complete official document translationTask2024-03-01 09:002024-03-05 18:00Zhang SanIn ProgressHigh
TASK-2024-002User permission optimizationRequirement2024-03-03 09:002024-03-10 18:00Li SiIn ProgressMedium
Field Mapping:
Original FieldChinese HeaderRemarks
task_noNo.Display by default
task_nameTask NameDisplay by default
type_nameTypeDisplay by default
start_timeStart TimeDisplay by default
due_timeDue TimeDisplay by default
owner_namePerson in ChargeDisplay by default
status_nameStatusDisplay by default
priority_namePriorityDisplay 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.