refactor(map_activity): 重命名 posterAPI 为 getPosterDetailAPI
- 将 posterAPI 重命名为 getPosterDetailAPI,命名更清晰 - 修复 PosterCheckin 页面的 API 导入路径(@/api/map → @/api/map_activity) - 更新 CHANGELOG 记录海报接口联调功能 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
2 changed files
with
8 additions
and
8 deletions
| ... | @@ -26,7 +26,7 @@ export const checkinAPI = params => fn(fetch.post(Api.Checkin, params)) | ... | @@ -26,7 +26,7 @@ export const checkinAPI = params => fn(fetch.post(Api.Checkin, params)) |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * @description 地图活动详情 | 28 | * @description 地图活动详情 |
| 29 | - * @remark | 29 | + * @remark |
| 30 | * @param {Object} params 请求参数 | 30 | * @param {Object} params 请求参数 |
| 31 | * @param {string} params.id (可选) 活动ID | 31 | * @param {string} params.id (可选) 活动ID |
| 32 | * @returns {Promise<{ | 32 | * @returns {Promise<{ |
| ... | @@ -52,10 +52,10 @@ export const detailAPI = params => fn(fetch.get(Api.Detail, params)) | ... | @@ -52,10 +52,10 @@ export const detailAPI = params => fn(fetch.get(Api.Detail, params)) |
| 52 | 52 | ||
| 53 | /** | 53 | /** |
| 54 | * @description 是否已经打卡 | 54 | * @description 是否已经打卡 |
| 55 | - * @remark | 55 | + * @remark |
| 56 | * @param {Object} params 请求参数 | 56 | * @param {Object} params 请求参数 |
| 57 | * @param {string} params.detail_id (可选) 打卡点ID | 57 | * @param {string} params.detail_id (可选) 打卡点ID |
| 58 | - * @param {string} params.openid (可选) | 58 | + * @param {string} params.openid (可选) |
| 59 | * @param {string} params.activity_id (可选) 活动ID | 59 | * @param {string} params.activity_id (可选) 活动ID |
| 60 | * @returns {Promise<{ | 60 | * @returns {Promise<{ |
| 61 | * code: number; // 状态码 | 61 | * code: number; // 状态码 |
| ... | @@ -69,7 +69,7 @@ export const isCheckedAPI = params => fn(fetch.get(Api.IsChecked, params)) | ... | @@ -69,7 +69,7 @@ export const isCheckedAPI = params => fn(fetch.get(Api.IsChecked, params)) |
| 69 | 69 | ||
| 70 | /** | 70 | /** |
| 71 | * @description 地图活动列表 | 71 | * @description 地图活动列表 |
| 72 | - * @remark | 72 | + * @remark |
| 73 | * @param {Object} params 请求参数 | 73 | * @param {Object} params 请求参数 |
| 74 | * @returns {Promise<{ | 74 | * @returns {Promise<{ |
| 75 | * code: number; // 状态码 | 75 | * code: number; // 状态码 |
| ... | @@ -88,7 +88,7 @@ export const listAPI = params => fn(fetch.get(Api.List, params)) | ... | @@ -88,7 +88,7 @@ export const listAPI = params => fn(fetch.get(Api.List, params)) |
| 88 | 88 | ||
| 89 | /** | 89 | /** |
| 90 | * @description 获取海报 | 90 | * @description 获取海报 |
| 91 | - * @remark | 91 | + * @remark |
| 92 | * @param {Object} params 请求参数 | 92 | * @param {Object} params 请求参数 |
| 93 | * @param {string} params.activity_id (可选) 活动ID | 93 | * @param {string} params.activity_id (可选) 活动ID |
| 94 | * @param {string} params.detail_id (可选) 关卡ID | 94 | * @param {string} params.detail_id (可选) 关卡ID |
| ... | @@ -101,8 +101,8 @@ export const listAPI = params => fn(fetch.get(Api.List, params)) | ... | @@ -101,8 +101,8 @@ export const listAPI = params => fn(fetch.get(Api.List, params)) |
| 101 | id: integer; // 关卡ID | 101 | id: integer; // 关卡ID |
| 102 | name: string; // 关卡名称 | 102 | name: string; // 关卡名称 |
| 103 | background_url: string; // 关卡背景图 | 103 | background_url: string; // 关卡背景图 |
| 104 | - main_slogan: string; // | 104 | + main_slogan: string; // |
| 105 | - sub_slogan: string; // | 105 | + sub_slogan: string; // |
| 106 | is_checked: boolean; // 是否已经打卡 | 106 | is_checked: boolean; // 是否已经打卡 |
| 107 | }>; | 107 | }>; |
| 108 | family: { | 108 | family: { |
| ... | @@ -118,7 +118,7 @@ export const listAPI = params => fn(fetch.get(Api.List, params)) | ... | @@ -118,7 +118,7 @@ export const listAPI = params => fn(fetch.get(Api.List, params)) |
| 118 | * }; | 118 | * }; |
| 119 | * }>} | 119 | * }>} |
| 120 | */ | 120 | */ |
| 121 | -export const posterAPI = params => fn(fetch.get(Api.Poster, params)) | 121 | +export const getPosterDetailAPI = params => fn(fetch.get(Api.Poster, params)) |
| 122 | 122 | ||
| 123 | /** | 123 | /** |
| 124 | * @description 上传海报背景 | 124 | * @description 上传海报背景 | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment