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