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


import com.red.circle.console.app.dto.clienobject.user.UserDiamondOriginCO;
import com.red.circle.console.app.service.app.user.UserDiamondOriginService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.wallet.inner.model.cmd.UserDiamondOriginQryCmd;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
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-05-08
 */
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/user/integral/origin", produces = MediaType.APPLICATION_JSON_VALUE)
public class UserDiamondOriginController extends BaseController {

  private final UserDiamondOriginService userDiamondOriginService;

  /**
   * 用户积分详情列表.
   */
  /*@GetMapping("/page")
  public PageResult<UserDiamondOriginCO> pageUserDiamondOrigin(
      UserDiamondOriginQryCmd query) {
    return userDiamondOriginService.pageUserDiamondOriginDetails(query);
  }*/

  /**
   * 工作积分流水列表.
   */
  @GetMapping("/stream/page")
  public PageResult<UserDiamondOriginCO> pageUserDiamondOriginStream(
      UserDiamondOriginQryCmd query) {
    return userDiamondOriginService.pageUserDiamondOriginDetails(query);
  }

}
