feat(character): 新增未登录人设列表及详情接口
支持未登录用户按 rank、标签查看人设列表及详情,同步放行新接口并添加请求体缓存过滤器
This commit is contained in:
@@ -85,4 +85,23 @@ public class CharacterController {
|
||||
characterService.removeUserCharacter(id);
|
||||
return ResultUtils.success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/listWithNotLogin")
|
||||
@Operation(summary = "未登录用户人设列表", description = "未登录用户人设列表接口按 rank 排名")
|
||||
public BaseResponse<List<KeyboardCharacterRespVO>> listWithNotLogin() {
|
||||
return ResultUtils.success(characterService.selectListWithNotLoginRank());
|
||||
}
|
||||
|
||||
@GetMapping("/detailWithNotLogin")
|
||||
@Operation(summary = "未登录用户人设详情", description = "未登录用户人设详情接口")
|
||||
public BaseResponse<KeyboardCharacterRespVO> detailWithNotLogin(@RequestParam("id") Long id) {
|
||||
KeyboardCharacter character = characterService.getById(id);
|
||||
return ResultUtils.success(BeanUtil.copyProperties(character, KeyboardCharacterRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/listByTagWithNotLogin")
|
||||
@Operation(summary = "未登录用户按标签查询人设列表", description = "未登录用户按标签查询人设列表接口")
|
||||
public BaseResponse<List<KeyboardCharacterRespVO>> listByTagWithNotLogin(@RequestParam("tagId") Long tagId) {
|
||||
return ResultUtils.success(characterService.selectListByTagWithNotLogin(tagId));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user