{"id":25098360,"url":"https://github.com/supercll/maiov","last_synced_at":"2025-04-02T04:10:45.042Z","repository":{"id":124739541,"uuid":"286965543","full_name":"supercll/maiov","owner":"supercll","description":"妙味官网","archived":false,"fork":false,"pushed_at":"2020-08-12T08:59:37.000Z","size":18125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T18:51:34.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supercll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-12T08:56:23.000Z","updated_at":"2020-08-12T08:59:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"636dd072-6ac0-4139-a642-12c941b219f4","html_url":"https://github.com/supercll/maiov","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fmaiov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fmaiov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fmaiov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fmaiov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supercll","download_url":"https://codeload.github.com/supercll/maiov/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246752656,"owners_count":20827987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-07T18:31:09.847Z","updated_at":"2025-04-02T04:10:45.037Z","avatar_url":"https://github.com/supercll.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `yarn start`\n\nRuns the app in the development mode.\u003cbr /\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr /\u003e\nYou will also see any lint errors in the console.\n\n### `yarn test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr /\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\u003cbr /\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr /\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `yarn eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `yarn build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n\n\n## 接口说明\n域名地址：https://data.miaov.com/\n\n1)是否登录\n\t/user/islogin\nPOST：\n返回值：\n\tcode:0 已经登陆\n\tcode:1 未登陆\n2)注册：\n\t/user/register\nPOST：\n\tverify:验证码\n\tusername:用户名\n\tpassword:密码\n\trepassword:确认密码\n返回值：\n\tcode:0 msg:注册成功\n\tcode:1 msg:验证码错误\n\tcode:2 msg:密码和重复密码不一致！\n\tcode:3(注册失败) msg:会提示你不同的注册失败原因\n\tcode:4 msg:注册已关闭(后台可控制)\n3)登陆：\n\t/user/login\nPOST：\n\tverify:验证码\n\tusername:用户名\n\tpassword:密码\n返回值：\n\tcode:0 msg:登陆成功\n\tcode:1 msg:验证码错误\n\tcode:2(登陆失败) msg:会提示你不同的注册失败原因\n\n\n4)退出登陆：\n\t/user/logout\nPOST：\n\n返回值：\n\n//统一\npage：页码\nrows：条数\n\n5)首页内容：\n\t/lecturer/lists?page=1\u0026rows=20\n\n参数说明:\nPOST：\n\torder:desc(降序)/asc(升序) 默认：desc\n\tsort:sort(后台可以指定排序)/id(加入的ID)/update_time(修改时间) 默认：按照发布文章的修改时间update_time  desc 降序\n\tcategory_id: 1或2  1表示讲师作品   2表示讲师列表\n\trecommend: 推荐位置  如果获取讲师作品 首页展示的 则值为 1 （如果选择全部的则是0）\n\n\n首页获取的数据传递内容是\n\torder=desc \n\tsort=id\n\tcategory_id=1\n\trecommend=1\n\n[{\"id\":\"22\",\"title\":\"22\\u6587\\u7ae0\\u54c8\\u54c8\\u54c8e\",\"category_id\":\"1\",\"content\":\"\\u7b2c\\u4e03\\u4f4d\\u8f7b\\u5fae\\u8f7b\\u5fae\\u8f7b\\u5fae\\u8bf7\\u95ee\\u8bf7\\u95ee\\u8bf7\\u95ee\\u53bb\",\"recommend\":\"1\",\"message\":\"0\",\"good\":\"122\",\"view\":\"33\",\"author\":\"wqw\",\"sort\":\"1\",\"status\":\"0\",\"icon\":\"\\/Uploads\\/article\\/icon\\/icon-22.png\",\"create_time\":\"2018-05-21 20:38:01\",\"update_time\":\"2018-05-23 20:15:52\"},{\"id\":\"18\",\"title\":\"\\u621118\\u662f\\u7b2c\\u4e00\\u4e2a\\u6587\\u7ae0\\u6807\\u9898\",\"category_id\":\"1\",\"content\":\"\\u7b2c\\u4e03\\u4f4d\\u8f7b\\u5fae\\u8f7b\\u5fae\\u8f7b\\u5fae\\u8bf7\\u95ee\\u8bf7\\u95ee\\u8bf7\\u95ee\\u53bb\",\"recommend\":\"1\",\"message\":\"0\",\"good\":\"0\",\"view\":\"0\",\"author\":\"\",\"sort\":\"0\",\"status\":\"0\",\"icon\":\"\",\"create_time\":\"2018-05-21 20:38:01\",\"update_time\":\"2018-05-23 16:03:10\"}]\n\n\n\n6)讲师：\n\n讲师列表(返回全部) 他和 1) 接口使用同一个 \n/lecturer/lists?page=1\u0026rows=100\n\n\nPOST：\n\torder:desc(降序)/asc(升序) 默认：desc\n\tsort:sort(后台可以指定排序)/id(加入的ID)/update_time(修改时间) 默认：按照发布文章的修改时间update_time  desc 降序\n\tcategory_id=2  固定值\n\trecommend： 0或者不传\n\t返回值和 1） 一样\n\n\n7)详情页:\n\t/lecturer/info\nPOST：\n\tarticle_id : 文章的id 就是列表里的id\n\n返回结果\n{\"id\":\"1\",\"title\":\"\\u6211\\u662f\\u7b2c\\u4e00\\u4e2a\\u6587\\u7ae0\\u6807\\u98981\",\"category_id\":\"2\",\"content\":\"\\u7b2c\\u4e03\\u4f4d\\u8f7b\\u5fae\\u8f7b\\u5fae\\u8f7b\\u5fae\\u8bf7\\u95ee\\u8bf7\\u95ee\\u8bf7\\u95ee\\u53bb\",\"recommend\":\"0\",\"message\":\"0\",\"good\":\"0\",\"view\":\"0\",\"author\":\"\",\"sort\":\"0\",\"status\":\"0\",\"create_time\":\"2018-05-21 20:38:01\",\"update_time\":\"2018-05-23 16:03:47\",\"image_path\":[{\"id\":\"1\",\"article_id\":\"22\",\"path\":\"\\/Uploads\\/article\\/2018\\/05\\/23\\/4a9dab6be201eed8b83817634c4e29fa.png\",\"sort\":\"1\",\"create_time\":\"2018-05-23 18:20:27\"},{\"id\":\"2\",\"article_id\":\"22\",\"path\":\"\\/Uploads\\/article\\/2018\\/05\\/23\\/1d2f45aa6db9c0812e7fb6ca07832979.png\"}\n\n\n\n8)详情页留言列表:\t\t\t\n\t/lecturer/getcomment?page=1\u0026rows=20\nPOST：\n\tarticle_id : 文章的id 就是列表里的id\n\n返回值:\n\t[{\"content\":\"qweqeqweqew\",\"create_time\":\"2015-10-00 00:00:00\",\"username\":\"motao\"}]\n\n\n\n9)评论接口\n/lecturer/addcomment\nPOST参数:\n\tarticle_id:文章id\n\tcontent:评论内容\n返回值\n\t{\"code\":0,\"msg\":\"\\u8bc4\\u8bba\\u6210\\u529f\"}\n\tcode:0 msg:评论成功\n\tcode:1 msg:未登录\n\tcode:2 msg:文章id不能为空\n\tcode:3 msg:评论失败\n\n\n\n10)是否点赞接口\n\t/lecturer/getgood?\n\nPOST参数:\n\tarticle_id:文章id\n\n返回值 \n\t{\"code\":0,\"gooid\":1}\n\tcode:0 msg:\n\tcode:1 msg:未登录\n\tcode:2 msg:收藏文章id不能为空\n\tcode:3 msg:未点赞\n\t\n\n\n\n\n11)点赞接口\n\t/lecturer/good\nPOST参数:\n\tarticle_id:文章id\n\n返回值 \n\n\t{\"code\":0,\"msg\":\"\\u8bc4\\u8bba\\u6210\\u529f\"}\n\tcode:0 msg:点赞成功\n\tcode:1 msg:未登录\n\tcode:2 msg:收藏文章id不能为空\n\tcode:3 msg:点赞失败\n\n\n12)取消点赞接口\n\t/lecturer/cancelgood?\nPOST参数:\n\tgoodid:在获取是否点赞接口中获取到的id\n\tarticle_id:文章id\n返回值\n\t{\"code\":0,\"msg\":\"\\u8bc4\\u8bba\\u6210\\u529f\"}\n\tcode:0 msg:取消点赞成功\n\tcode:1 msg:未登录\n\tcode:2 msg:文章id不能为空\n\tcode:3 msg:收藏id不能为空\n\n13） 验证码： /user/verify","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercll%2Fmaiov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupercll%2Fmaiov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercll%2Fmaiov/lists"}