package com.red.circle.other.app.inner.endpoint.material.props;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.app.inner.service.material.props.PropsStealthBrowseClientService;
import com.red.circle.other.inner.endpoint.material.props.api.PropsStealthBrowseClientApi;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 隐藏道具端点.
 *
 * @author pengliang on 2023/8/10
 */
@Validated
@RestController
@RequestMapping(value = PropsStealthBrowseClientApi.API_PREFIX, produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class PropsStealthBrowseClientEndpoint implements PropsStealthBrowseClientApi {

  private final PropsStealthBrowseClientService propsStealthBrowseClientService;

  @Override
  public ResultResponse<Boolean> existsNotExpire(Long userId) {
    return ResultResponse.success(propsStealthBrowseClientService.existsNotExpire(userId));
  }

}
