Skip to content

Commit 7241060

Browse files
committed
feat(FlowUserController): rename syncBangumiCollections and getBangumiCollectionSyncStatus methods for clarity
1 parent e3568c7 commit 7241060

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flow-client/src/main/java/com/ligg/flowclient/controller/FlowUserController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public Result<Void> updateCollection(
110110
*/
111111
@PostMapping("/collections/sync")
112112
@IpEndpointRateLimit(keyPrefix = "animeflow:account:sync-bgm-collection:ip:", seconds = 60, maxRequests = 5)
113-
public Result<UserBgmCollectionSyncStatusVo> syncBangumiCollections(
113+
public Result<UserBgmCollectionSyncStatusVo> syncCollections(
114114
@RequestAttribute(AuthorizationInterceptor.ACCESS_TOKEN_REQUEST_ATTRIBUTE) String accessToken,
115115
@RequestParam(defaultValue = "2") int subjectType) {
116116
Long userId = jwtTokenService.validateAccessToken(accessToken);
@@ -122,7 +122,7 @@ public Result<UserBgmCollectionSyncStatusVo> syncBangumiCollections(
122122
* 查询 Bangumi 收藏同步任务状态。
123123
*/
124124
@GetMapping("/collections/sync")
125-
public Result<UserBgmCollectionSyncStatusVo> getBangumiCollectionSyncStatus(
125+
public Result<UserBgmCollectionSyncStatusVo> getCollectionSyncStatus(
126126
@RequestAttribute(AuthorizationInterceptor.ACCESS_TOKEN_REQUEST_ATTRIBUTE) String accessToken) {
127127
Long userId = jwtTokenService.validateAccessToken(accessToken);
128128
UserBgmCollectionSyncStatusVo status = userBgmCollectionSyncService.getSyncStatus(userId);

0 commit comments

Comments
 (0)