package com.red.circle.other.adapter.app.home;


import com.red.circle.common.business.dto.cmd.app.RecommendCmd;
import com.red.circle.other.app.dto.clientobject.home.RecommendUserCO;
import com.red.circle.other.app.service.home.RecommendUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author longli on  2024/3/19
 */

@RestController
@RequestMapping("/home/page")
@RequiredArgsConstructor
public class HomePageController {

  private final RecommendUserService recommendUserService;

  /**
   * 获取首页在线用户信息
   * @param cmd
   * @return
   */
  @GetMapping
  public RecommendUserCO listRecommendUser(RecommendCmd cmd) {

    return recommendUserService.listRecommendUser(cmd);
  }

}
