| 1 |
- [{"/mnt/e/芝麻开发/boniuApi/boniu/src/index.js":"1","/mnt/e/芝麻开发/boniuApi/boniu/src/reportWebVitals.js":"2","/mnt/e/芝麻开发/boniuApi/boniu/src/App.js":"3","/mnt/e/芝麻开发/boniuApi/boniu/src/components/Navbar/navbar.jsx":"4","/mnt/e/芝麻开发/boniuApi/boniu/src/IndexApiList.jsx":"5","/mnt/e/芝麻开发/boniuApi/boniu/src/StocksApiList.jsx":"6","/mnt/e/芝麻开发/boniuApi/boniu/src/components/Overview/overview.jsx":"7","/mnt/e/芝麻开发/boniuApi/boniu/src/components/indexBasicInfo/indexBasicInfo.jsx":"8","/mnt/e/芝麻开发/boniuApi/boniu/src/components/StocksInfo/stocksInfo.jsx":"9"},{"size":552,"mtime":1612684158037,"results":"10","hashOfConfig":"11"},{"size":362,"mtime":1612684158047,"results":"12","hashOfConfig":"11"},{"size":222,"mtime":1612684158037,"results":"13","hashOfConfig":"11"},{"size":4969,"mtime":1612684158037,"results":"14","hashOfConfig":"11"},{"size":19211,"mtime":1612685287266,"results":"15","hashOfConfig":"11"},{"size":29746,"mtime":1612685242096,"results":"16","hashOfConfig":"11"},{"size":6323,"mtime":1612684158037,"results":"17","hashOfConfig":"11"},{"size":2820,"mtime":1612684158037,"results":"18","hashOfConfig":"11"},{"size":2733,"mtime":1612684158037,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"1m7ks4s",{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"35","usedDeprecatedRules":"22"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"38","usedDeprecatedRules":"22"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"41","usedDeprecatedRules":"22"},"/mnt/e/芝麻开发/boniuApi/boniu/src/index.js",[],["42","43"],"/mnt/e/芝麻开发/boniuApi/boniu/src/reportWebVitals.js",[],"/mnt/e/芝麻开发/boniuApi/boniu/src/App.js",[],"/mnt/e/芝麻开发/boniuApi/boniu/src/components/Navbar/navbar.jsx",[],"/mnt/e/芝麻开发/boniuApi/boniu/src/IndexApiList.jsx",[],"/mnt/e/芝麻开发/boniuApi/boniu/src/StocksApiList.jsx",[],"/mnt/e/芝麻开发/boniuApi/boniu/src/components/Overview/overview.jsx",["44","45","46"],"import React, { Component } from \"react\";\nimport \"./overview.css\";\nimport { Typography, Table, Button, Card } from \"antd\";\nconst { Text, Paragraph, Title, Link } = Typography;\n\nclass Overview extends Component {\n render() {\n return (\n <div>\n <Title level={3}>总体说明</Title>\n\n <Text type=\"secondary\" className='overview-text-block'>接口请求方式采用get方式</Text>\n <Text type=\"secondary\" className='overview-text-block overview-footer'>接口采用模拟HTTP协议及JSON接口模式</Text>\n\n <Title className=\"overview-title\" level={5}>\n 校验方式说明:\n <Text type=\"secondary\" code={{ fontSize: 16 }}>\n sign=md5(method=接口名称&time=时间戳)\n </Text>\n </Title>\n <Text type=\"secondary\">\n http://boniu.xazhima.com/api/v1.0/api.php?sign=校验方式\"×tamp=\"时间戳\"&method=\"方法名\"&code=\"$code&\"start_date=\"开始日期\"&end_date=\"截止日期\"&order=\"排序;\n </Text>\n\n <Title className=\"overview-title\" level={5}>\n 输出结果:\n </Title>\n <Table\n className=\"first-table\"\n columns={columns}\n // expandable\n dataSource={columnsData}\n pagination={false}\n size=\"small\"\n />\n\n <Title className=\"overview-title margin-top-20\" level={5}>\n 异常结果:\n </Title>\n <Table\n className=\"err-table second-table\"\n columns={errColumns}\n dataSource={errColumnsData}\n pagination={false}\n size=\"small\"\n />\n\n <Card\n title=\"输出结果格式:\"\n hoverable={true}\n style={{ width: 300, marginTop: 20 }}\n >\n <p>\n {\"\\u007B\"}\n <br />\n (信息码区)\n <br />\n (输入参数呼应区)\n <br />\n (结果返回)\n <br />\n {\"\\u007d\"}\n </p>\n </Card>\n\n <Title className=\"overview-title margin-top-20\" level={5}>\n 输出结果规则总体说明:\n </Title>\n <Text type=\"secondary\" className='overview-text-block overview-footer'>\n 1.所有交易日期格式均为8位整数,不传为当天数据\n </Text>\n <Text type=\"secondary\" className='overview-text-block overview-footer'>\n 2.5日线、10\n 日线、20日线、30日线、60日线、233线以及开盘价、收盘价、最高价、最低价等价格参数均与输入参数复权方式一致\n </Text>\n <Text type=\"secondary\" className='overview-text-block overview-footer'>\n 3.所有输出的价格,均按照四舍五入保留小数点后两位的格式输出\n </Text>\n <Text type=\"secondary\" className='overview-text-block overview-footer'>\n 4.价格计算方式:①涨跌额:当天收盘价-前一天收盘价。②涨跌幅:涨跌额÷前一天收盘价*100%。③涨停价:科创板、创业板股为前一天收盘价*120%,ST为前一天收盘价*105%,其他股为前一天收盘价*110%。④跌停价:科创板、创业板股为前一天收盘价*80%,ST为前一天收盘价*95%,其他股为前一天收盘价*90%。⑤是否涨跌停标志:涨跌停标志按照收盘价计算,如果当天收盘价等于涨停价,则为涨停,如果收盘价等于跌停价,则为跌停。如果没有涨/跌停,涨跌停标志输出0/-1。(新股发行前5天没有涨跌停价格)\n </Text>\n </div>\n );\n }\n}\n\nexport default Overview;\nconst columns = [\n {\n title: \"名称\",\n dataIndex: \"name\",\n key: \"name\"\n },\n {\n title: \"说明\",\n dataIndex: \"desc\",\n key: \"desc\"\n }\n];\nconst columnsData = [\n {\n key: \"1\",\n name: \"message_code\",\n desc: 200\n },\n {\n key: \"2\",\n name: \"message\",\n desc: \"success\"\n },\n {\n key: \"3\",\n name: \"data\",\n desc: \"接口对应字段\"\n }\n];\nconst errColumns = [\n {\n title: \"错误类型\",\n dataIndex: \"type\",\n key: \"type\"\n },\n {\n title: \"message_code\",\n dataIndex: \"code\",\n key: \"code\"\n },\n {\n title: \"message\",\n dataIndex: \"message\",\n key: \"message\"\n }\n];\nconst errColumnsData = [\n {\n key: \"1\",\n type: \"错误码300\",\n code: \"300...\",\n message: \"接口参数输入错误\"\n },\n {\n key: \"2\",\n type: \"错误码400\",\n code: \"400...\",\n message: \"对外输出错误\"\n },\n {\n key: \"3\",\n type: \"错误码500\",\n code: \"500...\",\n message: \"系统错误\"\n },\n {\n key: \"4\",\n type: \"例如:\",\n code: \"\",\n message: \"\",\n children: [\n {\n key: \"9\",\n type: \"股票代码错误\",\n code: \"301\",\n message: \" 股票/指数代码不存在/错误\"\n },\n {\n key: \"10\",\n type: \"交易板块错误\",\n code: \"302\",\n message: \"交易板块不存在/错误\"\n },\n {\n key: \"11\",\n type: \"所属市场错误\",\n code: \"303\",\n message: \"所属市场不存在/错误\"\n },\n {\n key: \"12\",\n type: \"签名错误\",\n code: \"304\",\n message: \"非法签名\"\n },\n {\n key: \"13\",\n type: \"时间/时间段输入错误\",\n code: \"305\",\n message: \"时间/时间段错误\"\n },\n {\n key: \"14\",\n type: \"复权码输入错误\",\n code: \"306\",\n message: \"复权码错误\"\n },\n {\n key: \"15\",\n type: \"code未输入,参数为空\",\n code: \"307\",\n message: \"code参数不能为空\"\n },\n {\n key: \"16\",\n type: \"方法名输入错误\",\n code: \"308\",\n message: \"方法名错误\"\n },\n {\n key: \"17\",\n type: \"order输入错误\",\n code: \"309\",\n message: \"order参数错误\"\n },\n {\n key: \"18\",\n type: \"traceback_days输入有误\",\n code: \"310\",\n message: \"traceback_days参数错误\"\n },\n {\n key: \"19\",\n type: \"返回数据为空\",\n code: \"401\",\n message: \" 股票/指数数据为空\"\n },\n {\n key: \"20\",\n type: \"服务器错误\",\n code: \"501\",\n message: \"服务器错误\"\n }\n ]\n }\n];\n","/mnt/e/芝麻开发/boniuApi/boniu/src/components/indexBasicInfo/indexBasicInfo.jsx",["47","48"],"import React from \"react\";\nimport \"./indexBasicInfo.css\";\nimport { Typography, Table, Button } from \"antd\";\n\nconst { Text, Title, Link } = Typography;\nfunction hasClass(para) {\n let flag = false;\n para.forEach((item) => {\n if (item.children) {\n flag = true;\n }\n });\n return flag;\n}\nclass indexBasicInfo extends React.Component {\n constructor(props) {\n super(props);\n // this.title = title[props.location.pathname];\n }\n render() {\n const sdkurl = this.props.location.state.sdk_url;\n const apiurl = this.props.location.state.apiurl;\n const inputPara = this.props.location.state.inputpara.map((item, index) => {\n return <Text key={index}>{item}</Text>;\n });\n const outPutList = this.props.location.state.data.outputResult;\n const errorList = this.props.location.state.data.errorResult;\n const title = this.props.location.state.name;\n return (\n <div>\n <Title level={4}>{title}</Title>\n <div>\n <Title className=\"stocks-title\" level={5}>\n 输入参数:\n </Title>\n {inputPara}\n </div>\n\n <div>\n <Title className=\"stocks-title\" level={5}>\n 输出结果:\n </Title>\n <Table\n className={{ \"no-tab\": hasClass(outPutList), \"first-table\": true }}\n columns={columns}\n dataSource={outPutList}\n pagination={false}\n size=\"small\"\n />\n </div>\n <div>\n <Title className={\"stocks-title\"} level={5}>\n 输出结果异常:\n </Title>\n <Table\n className=\"second-table\"\n columns={errColumns}\n dataSource={errorList}\n pagination={false}\n size=\"small\"\n />\n </div>\n\n <div>\n <Title className=\"stocks-title\" level={5}>\n 测试地址:\n </Title>\n <Button type=\"primary\" className=\"stocks-button\">\n <a href={apiurl} target=\"_blank\">\n API测试工具\n </a>\n </Button>\n </div>\n <div>\n <Title className=\"stocks-title\" level={5}>\n SDK包:\n </Title>\n <Link href={sdkurl}>php程序包下载</Link>\n </div>\n </div>\n );\n }\n}\n\nexport default indexBasicInfo;\nconst columns = [\n {\n title: \"名称\",\n dataIndex: \"name\",\n key: \"name\",\n render: (text) => <span>{text}</span>\n },\n {\n title: \"说明\",\n dataIndex: \"desc\",\n key: \"desc\"\n }\n];\nconst errColumns = [\n {\n title: \"错误类型\",\n dataIndex: \"type\",\n key: \"type\",\n render: (text) => <span>{text}</span>\n },\n {\n title: \"message_code\",\n dataIndex: \"code\",\n key: \"code\"\n },\n {\n title: \"message\",\n dataIndex: \"message\",\n key: \"message\"\n }\n];\n","/mnt/e/芝麻开发/boniuApi/boniu/src/components/StocksInfo/stocksInfo.jsx",["49"],"import React from \"react\"\nimport \"./stocksInfo.css\"\nimport { Typography, Table, Button } from \"antd\"\n\nconst { Text, Title, Link } = Typography\n\nconst StocksInfo = (props) => {\n const outPutList = props.location.state.data.outputResult\n const errorList = props.location.state.data.errorResult\n const title = props.location.state.name\n const params = props.location.state.data.params\n const paramsInfo = props.location.state.data.paramsInfo\n const url = props.location.state.data.url\n const download = props.location.state.data.download\n\n const hasClass = () => {\n let flag = false\n outPutList.forEach(item => {\n if (item.children) {\n flag = true\n }\n })\n return flag\n }\n\n return (\n <div>\n <Title level={3}>{title}</Title>\n <div>\n <Title className=\"stocks-title\" level={5}>\n 输入参数:\n </Title>\n <Text>\n { params }\n </Text>\n <div>\n {paramsInfo && '参数说明: '}\n {\n paramsInfo && paramsInfo.map((info,index) => {\n return (\n <Text key={index}>{ info }</Text>\n )\n })\n }\n </div>\n </div>\n <div>\n <Title className=\"stocks-title\" level={5}>输出结果:</Title>\n {/* 这里需要二级表格 */}\n <Table\n columns={columns}\n className={{ 'no-tab': hasClass(), 'first-table': true }}\n dataSource={outPutList}\n pagination={false}\n size=\"small\"\n />\n </div>\n <div>\n <Title className=\"stocks-title\" level={5}>\n 输出结果异常:\n </Title>\n <Table\n className=\"second-table\"\n columns={errColumns}\n dataSource={errorList}\n pagination={false}\n size=\"small\"\n />\n </div>\n\n <div>\n <Title className=\"stocks-title\" level={5}>\n 测试地址:\n </Title>\n <Button type=\"primary\" className=\"stocks-button\">\n <a href={ url } target=\"_blank\">API测试工具</a>\n </Button>\n </div>\n <div>\n <Title className=\"stocks-title\" level={5}>\n SDK包:\n </Title>\n <Link href={ download }>php程序包下载</Link>\n </div>\n </div>\n )\n}\nexport default StocksInfo\n\nconst columns = [\n {\n title: \"名称\",\n dataIndex: \"name\",\n key: \"name\",\n },\n {\n title: \"说明\",\n dataIndex: \"desc\",\n key: \"desc\",\n },\n]\nconst errColumns = [\n {\n title: \"错误类型\",\n dataIndex: \"type\",\n key: \"type\",\n },\n {\n title: \"message_code\",\n dataIndex: \"code\",\n key: \"code\",\n },\n {\n title: \"message\",\n dataIndex: \"message\",\n key: \"message\",\n },\n]\n",{"ruleId":"50","replacedBy":"51"},{"ruleId":"52","replacedBy":"53"},{"ruleId":"54","severity":1,"message":"55","line":3,"column":29,"nodeType":"56","messageId":"57","endLine":3,"endColumn":35},{"ruleId":"54","severity":1,"message":"58","line":4,"column":15,"nodeType":"56","messageId":"57","endLine":4,"endColumn":24},{"ruleId":"54","severity":1,"message":"59","line":4,"column":33,"nodeType":"56","messageId":"57","endLine":4,"endColumn":37},{"ruleId":"60","severity":1,"message":"61","line":16,"column":3,"nodeType":"62","messageId":"63","endLine":19,"endColumn":4},{"ruleId":"64","severity":1,"message":"65","line":69,"column":13,"nodeType":"66","endLine":69,"endColumn":46},{"ruleId":"64","severity":1,"message":"65","line":76,"column":11,"nodeType":"66","endLine":76,"endColumn":43},"no-native-reassign",["67"],"no-negated-in-lhs",["68"],"no-unused-vars","'Button' is defined but never used.","Identifier","unusedVar","'Paragraph' is assigned a value but never used.","'Link' is assigned a value but never used.","no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener","JSXOpeningElement","no-global-assign","no-unsafe-negation"]
|