Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要新增一个首页report 列表配置接口 #3

Closed
yanqiw opened this issue Jan 10, 2021 · 1 comment
Closed

需要新增一个首页report 列表配置接口 #3

yanqiw opened this issue Jan 10, 2021 · 1 comment

Comments

@yanqiw
Copy link
Collaborator

yanqiw commented Jan 10, 2021

需求:动态配置手机端展示的 report 种类。当后端有新的数据报告类型时,不需要发布APP,就可以在APP内展示新的数据报告。

接口要求:

payload:[
{
"name":String, // 报告名称
"router":[BackTracking|ReportDetail], // 跳转页面,默认使用ReportDetail
"url":String,// 报告详情数据接口地址。
}
]

占位符:
$START_DATE 开始日期
$HOST 服务器域名
例子:

[
  {
    "name": "昨日重现(算法收益回溯)",
    "router": "BackTracking",
    "url": "$HOST/backtracking/$STOCK_NUM?startDate=$START_DATE"
  },
  {
    "name": "Demark(优选股票)",
    "router": "ReportDetail",
    "url": "$HOST/demark?days2Now=200"
  },
  {
    "name": "DeMark",
    "router": "ReportDetail",
    "url": "$HOST/analysis/Demark/daily"
  },
  {
    "name": "短期放量",
    "router": "ReportDetail",
    "url": "$HOST/analysis/SuddentHighVolume/daily"
  },
  {
    "name": "短期放量简化版",
    "router": "ReportDetail",
    "url": "$HOST/analysis/SuddentHighVolumeLite/daily"
  },
  {
    "name": "短期涨",
    "router": "ReportDetail",
    "url": "$HOST/analysis/SuddentIncrease/daily"
  },
  {
    "name": "短期缩量",
    "router": "ReportDetail",
    "url": "$HOST/analysis/SuddentLowVolume/daily"
  },
  {
    "name": "昨日重现",
    "router": "ReportDetail",
    "url": "$HOST/analysis/YesterdayOnceMore/daily"
  },
  {"name": "新股", "router": "ReportDetail", "url": "$HOST/analysis/IPO/daily"},
  {
    "name": "日线MACD上穿",
    "router": "ReportDetail",
    "url": "$HOST/analysis/MACD/daily"
  },
  {
    "name": "日线MACD上穿高级版",
    "router": "ReportDetail",
    "url": "$HOST/analysis/MACDAdvance/daily"
  },
  {
    "name": "周线MACD上穿",
    "router": "ReportDetail",
    "url": "$HOST/analysis/MACD/weekly"
  },
  {
    "name": "月线MACD上穿",
    "router": "ReportDetail",
    "url": "$HOST/analysis/MACD/monthly"
  },
]
@moneyice
Copy link
Owner

/menu.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants