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