hookehuyr

feat: 添加 API 生成脚本并更新打卡接口

- 新增 OpenAPI 转 API 生成脚本 (scripts/)
- 更新打卡 API 端点 (map → map_activity)
- 添加 .gitignore 规则忽略 CLAUDE.md 和 .claude/
- 新增 npm run api:generate 命令

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
...@@ -14,3 +14,6 @@ cypress.json ...@@ -14,3 +14,6 @@ cypress.json
14 src/test 14 src/test
15 .idea 15 .idea
16 map 16 map
17 +
18 +CLAUDE.md
19 +.claude/
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
28 "dev_upload": "npm run build_tar && npm run scp-dev && npm run dec-dev && npm run remove_tar && npm run remove_dist", 28 "dev_upload": "npm run build_tar && npm run scp-dev && npm run dec-dev && npm run remove_tar && npm run remove_dist",
29 "oa_upload": "npm run build_tar && npm run scp-oa && npm run dec-oa && npm run remove_tar", 29 "oa_upload": "npm run build_tar && npm run scp-oa && npm run dec-oa && npm run remove_tar",
30 "xys_upload": "npm run build_tar && npm run scp-xys && npm run dec-xys && npm run remove_tar", 30 "xys_upload": "npm run build_tar && npm run scp-xys && npm run dec-xys && npm run remove_tar",
31 - "walk_upload": "npm run build_tar && npm run scp-walk && npm run dec-walk && npm run remove_tar" 31 + "walk_upload": "npm run build_tar && npm run scp-walk && npm run dec-walk && npm run remove_tar",
32 + "api:generate": "node scripts/generateApiFromOpenAPI.js"
32 }, 33 },
33 "dependencies": { 34 "dependencies": {
34 "@amap/amap-jsapi-loader": "^1.0.1", 35 "@amap/amap-jsapi-loader": "^1.0.1",
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 /* 1 /*
2 * @Date: 2025-09-04 16:44:18 2 * @Date: 2025-09-04 16:44:18
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-04 16:53:10 4 + * @LastEditTime: 2026-02-09 16:33:11
5 * @FilePath: /map-demo/src/api/checkin.js 5 * @FilePath: /map-demo/src/api/checkin.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
8 import { fn, fetch } from '@/api/fn'; 8 import { fn, fetch } from '@/api/fn';
9 9
10 const Api = { 10 const Api = {
11 - IS_CHECKED: '/srv/?f=walk&a=map&t=is_checked', 11 + IS_CHECKED: '/srv/?f=walk&a=map_activity&t=is_checked',
12 - CHECKIN: '/srv/?f=walk&a=map&t=checkin', 12 + CHECKIN: '/srv/?f=walk&a=map_activity&t=checkin',
13 }; 13 };
14 14
15 /** 15 /**
......
...@@ -7,5 +7,6 @@ ...@@ -7,5 +7,6 @@
7 7
8 | ID | Time | T | Title | Read | 8 | ID | Time | T | Title | Read |
9 |----|------|---|-------|------| 9 |----|------|---|-------|------|
10 +| #4119 | 2:13 PM | 🔵 | page_details data source identified in checkin info component | ~328 |
10 | #3978 | 11:52 AM | 🔵 | Code duplication identified in src/views directory structure | ~320 | 11 | #3978 | 11:52 AM | 🔵 | Code duplication identified in src/views directory structure | ~320 |
11 </claude-mem-context> 12 </claude-mem-context>
...\ No newline at end of file ...\ No newline at end of file
......