package com.red.circle.console.adapter.app.user;


import com.red.circle.console.app.service.app.user.UserExpandService;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.dto.user.UserExpandDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author houyong
 * @since 2020-12-23
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/user/expand")
public class UserExpandRestController extends BaseController {

  private final UserExpandService userExpandService;

  /**
   * 获取用户扩张信息.
   */
  @GetMapping
  public UserExpandDTO getUserExpand(Long userId) {
    return userExpandService.getById(userId);
  }

}
