package com.kxs.system.api.feign;

import com.kxs.common.core.constant.SecurityConstants;
import com.kxs.common.core.util.R;
import com.kxs.system.api.dto.kxsapp.camp.CampAddBcqtTeamDTO;
import com.kxs.system.api.dto.kxsapp.camp.CampOpenNumStatDTO;
import com.kxs.system.api.dto.kxsapp.camp.PrizePoolDTO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.PostExchange;

/**
 * 定时任务调用系统模块的服务
 *
 * @author 没秃顶的码农
 * @date 2023/11/12
 */
public interface RemoteSysService {


	/**
	 * 下单后训练营奖金池刷新
	 *
	 * @param param 参数
	 * @param from  从
	 */
	@PostExchange("/camp/prizePoolIsRefreshed")
	void prizePoolIsRefreshed(@RequestBody PrizePoolDTO param, @RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 创建百城千团
	 */
	@PostExchange("/camp/addBcqtTeam")
	R addBcqtTeam(@RequestBody CampAddBcqtTeamDTO param, @RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 百城千团 定时统计活动期间人员激活  定时任务
	 */
	@PostExchange("/camp/setUserActivityTimeStat")
	void setUserActivityTimeStat(@RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 百城千团 定时任务,关闭活动结束的team和用户状态
	 */
	@PostExchange("/camp/setUserActiviteStatus")
	void setUserActiviteStatus(@RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 训练营开机数量统计
	 *
	 * @param param 请求参数
	 */
	@PostExchange("/camp/campOpenNumStat")
	void campOpenNumStat(@RequestBody CampOpenNumStatDTO param, @RequestHeader(SecurityConstants.FROM) String fromIn);
}
