lfy-ops

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

运营数据查询技能

Operational Data Query Skill

lfy-cli
是陆份仪提供的命令行程序,所有操作通过执行
lfy-cli
命令完成。
通过
lfy-cli ops <接口名> '{}'
与运营系统交互。
lfy-cli
is a command-line program provided by Lufy, all operations are completed by executing
lfy-cli
commands.
Interact with the operation system via
lfy-cli ops <interface name> '{}'
.

注意事项

Notes

  • errcode
    不为
    0
    或返回格式异常,需告知用户错误信息
  • 财年信息由企业设定,日期按北京时间返回
  • week_no
    等技术字段默认不展示

  • If
    errcode
    is not
    0
    or the return format is abnormal, you need to inform the user of the error information
  • Fiscal year information is set by the enterprise, and dates are returned in Beijing time
  • Technical fields such as
    week_no
    are not displayed by default

接口列表

Interface List

获取当前财年信息 (get_fiscal_year)

Get Current Fiscal Year Information (get_fiscal_year)

bash
lfy-cli ops get_fiscal_year '{}'
获取企业当前财年的时间范围,根据企业设定的财年开始日期计算。
参见 API 详情
bash
lfy-cli ops get_fiscal_year '{}'
Get the time range of the enterprise's current fiscal year, calculated based on the fiscal year start date set by the enterprise.
See API Details.

获取当前周数 (get_current_week)

Get Current Week Number (get_current_week)

bash
lfy-cli ops get_current_week '{}'
获取当前属于第几周,按财年起始日期开始计算。
参见 API 详情

bash
lfy-cli ops get_current_week '{}'
Get the current week number of the fiscal year, calculated from the start date of the fiscal year.
See API Details.

典型工作流

Typical Workflow

获取财年信息

Get Fiscal Year Information

经典 query 示例:
  • "当前是第几个财年?"
  • "财年什么时候开始?"
  • "查一下今年的财年范围"
流程:
  1. 调用
    get_fiscal_year
    命令获取财年信息
  2. 展示财年开始和结束日期
展示结果:
📅 当前财年信息:
财年开始日期结束日期
<current_fiscal_year>年<start_date><end_date>

Classic query examples:
  • "Which fiscal year are we in currently?"
  • "When does the fiscal year start?"
  • "Check the fiscal year range of this year"
Process:
  1. Call the
    get_fiscal_year
    command to obtain fiscal year information
  2. Display the start and end dates of the fiscal year
Display Result:
📅 Current fiscal year information:
Fiscal YearStart DateEnd Date
<current_fiscal_year> Year<start_date><end_date>

获取当前周数

Get Current Week Number

经典 query 示例:
  • "现在是第几周?"
  • "本周是几号到几号?"
  • "当前周信息"
流程:
  1. 调用
    get_current_week
    命令获取当前周信息
  2. 展示当前周数及日期范围
展示结果:
📆 当前周信息:
周名称开始日期结束日期
<week_name><start_date><end_date>
Classic query examples:
  • "What week is it now?"
  • "What is the date range of this week?"
  • "Current week information"
Process:
  1. Call the
    get_current_week
    command to obtain current week information
  2. Display the current week number and date range
Display Result:
📆 Current week information:
Week NameStart DateEnd Date
<week_name><start_date><end_date>