This commit is contained in:
张良(004796)
2024-01-19 10:09:02 +08:00
parent 4c50443455
commit cb9464e468

View File

@@ -34,7 +34,7 @@ public class UserGreetAppController {
@GetMapping("/list")
@Operation(summary = "获取当前用户打招呼列表")
@Log(title = "获取当前用户打招呼列表", businessType = BusinessType.OTHER, isSaveDb = false)
public R<List<UserGreetListVo>> list(){
public R<UserGreetVo> list(){
Long userId = LoginHelper.getUserId();
User user = userService.getById(userId);
if(user == null || user.getIsAnchor() == 0){
@@ -46,7 +46,7 @@ public class UserGreetAppController {
vo.setList(list);
vo.setCount(20);
vo.setAllowSend(true);
return R.ok();
return R.ok(vo);
}
@PostMapping("/add")