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

import com.red.circle.console.app.dto.clienobject.user.UserCheckInLogCO;
import com.red.circle.console.app.service.app.user.UserCheckInLogService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.user.UserCheckInLogQryCmd;
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-06-08
 */
@RestController
@RequestMapping("/user/check/inLog")
@RequiredArgsConstructor
public class UserCheckInLogRestController extends BaseController {

  private final UserCheckInLogService userCheckInLogService;

  /**
   * 获取用户签到日志数据.
   */
  @GetMapping
  public PageResult<UserCheckInLogCO> getCheckInLog(UserCheckInLogQryCmd query) {
    return userCheckInLogService.getCheckInLog(query);
  }

}
