package org.springblade.gateway.active_gateway.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.support.Query;
import org.springblade.core.redis.cache.BladeRedis;
import org.springblade.core.tool.api.R;
import org.springblade.gateway.active_gateway.service.ProductSortService;
import org.springblade.gateway.active_gateway.vo.ProductSortVO;
import org.springblade.sing.active.entity.ActiveHelp;
import org.springblade.sing.active.service.IActiveHelpService;
import org.springblade.sing.active.vo.ActiveHelpVO;
import org.springblade.sing.active.vo.ActiveProductRecordVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("app/active")
@RestController
@AllArgsConstructor
@Api(value = "排行", tags = "排行接口")
@Slf4j
public class IActiveHelpController {

	private IActiveHelpService activeHelpService;

	@GetMapping("/help")
	@ApiOperationSupport(order = 1)
	@ApiOperation(value = "我的代言", notes = "传入activeHelpVO")
	public R<ActiveHelp> list(ActiveHelpVO activeHelpVO) throws IllegalAccessException {
		return R.data(activeHelpService.queryIndex(activeHelpVO));
	}

}
