{"id":19611121,"url":"https://github.com/iuroc/iuroc-image-site","last_synced_at":"2026-01-05T23:03:21.999Z","repository":{"id":208696516,"uuid":"722268579","full_name":"iuroc/iuroc-image-site","owner":"iuroc","description":"IURoc 图片网，图片来源于彼岸图网","archived":false,"fork":false,"pushed_at":"2024-05-28T21:54:56.000Z","size":70196,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T17:39:37.702Z","etag":null,"topics":["bootstrap","image","spring-boot","vanjs","vitejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/iuroc.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":"2023-11-22T19:26:07.000Z","updated_at":"2024-05-28T21:55:07.000Z","dependencies_parsed_at":"2024-11-11T10:49:13.457Z","dependency_job_id":null,"html_url":"https://github.com/iuroc/iuroc-image-site","commit_stats":null,"previous_names":["iuroc/iuroc-image-site"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iuroc%2Fiuroc-image-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iuroc%2Fiuroc-image-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iuroc%2Fiuroc-image-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iuroc%2Fiuroc-image-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iuroc","download_url":"https://codeload.github.com/iuroc/iuroc-image-site/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245535421,"owners_count":20631293,"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":["bootstrap","image","spring-boot","vanjs","vitejs"],"created_at":"2024-11-11T10:36:32.814Z","updated_at":"2026-01-05T23:03:21.877Z","avatar_url":"https://github.com/iuroc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IURoc Image\n\n\u003e IURoc 图片网\n\n## 快速开始\n\n\u003e 注意启动路径，按顺序执行代码\n\n- 开发环境配置完成后\n    ```bash\n    # 环境配置完成后，快速启动开发环境\n    npm run dev1\n    npm run dev2\n    ```\n\n- 未配置开发环境\n    ```bash\n    # 新建终端\n    cd backend           # 后端部分\n    mvn clean install    # 清除并安装\n    mvn spring-boot:run  # 启动开发环境\n    ```\n\n    ```bash\n    # 新建终端\n    cd frontend  # 前端部分\n    npm install  # 安装依赖模块\n    npm run dev  # 启动开发环境\n    ```\n\n- 下载解压图片资源\n    - [点击下载压缩包](https://github.com/iuroc/iuroc-image-site/releases/download/image/image.zip)\n    - 将压缩包内 `image` 目录解压到 `resources` 目录，形成类似 `resources/image/1.jpg` 的路径。\n\n通过浏览器访问 `http://localhost:5173/` 访问前端站点。\n\n## API 文档\n\n### HTTP 接口\n\n- Cookie 自动登录\n    - 请求地址：`/api/login`\n    - 请求方式：GET\n    - 请求表头\n        - `Cookie: token=xxx`\n- 表单手动登录\n    - 请求地址：`/api/login`\n    - 请求方式：POST\n    - 请求参数\n        - `username`：账号\n        - `password`：密码\n- 注册账号\n    - 请求地址：`/api/register`\n    - 请求方式：POST\n    - 请求参数\n        - `username`：账号\n        - `password`：密码\n\n### AjaxRes 类\n\n```java\n// 用法一\nAjaxRes res = new AjaxRes();\nres.setCode(AjaxRes.SUCCESS);\nres.setMessage(\"响应描述\");\nres.setData(\"响应数据\");\nreturn res;\n```\n\n```java\n// 用法二\nAjaxRes res = new AjaxRes();\nres.setSuccess(\"响应描述\").setData(\"响应数据\");\nreturn res;\n```\n\n```java\n// setSuccess() == setCode(AjaxRes.SUCCESS)\nAjaxRes res1 = new AjaxRes().setSuccess();\n\n// setSuccess(\"描述\") == setCode(AjaxRes.SUCCESS).setMessage(\"描述\")\nAjaxRes res2 = new AjaxRes().setSuccess(\"响应描述\");\n\n// AjaxRes 类的所有成员方法均可以链式调用\nAjaxRes res3 = new AjaxRes().setSuccess().setData(\"响应数据\");\n\n// 所有成员方法均可按需使用\nAjaxRes res4 = new AjaxRes().setData(\"响应数据\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiuroc%2Fiuroc-image-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiuroc%2Fiuroc-image-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiuroc%2Fiuroc-image-site/lists"}