package com.pig4cloud.pig.statistics.api.feign;

import com.pig4cloud.pig.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.common.feign.annotation.NoToken;
import com.pig4cloud.pig.statistics.api.entity.user.MktStatActiveUser;
import com.pig4cloud.pig.statistics.api.entity.user.MktStatNewUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteStatUserDataService", value = ServiceNameConstants.STATISTICS_SERVICE)
public interface RemoteStatUserDataService {

	@NoToken
	@PostMapping("/user/new/save")
	R<Boolean> saveMktStatNewUser(@RequestBody MktStatNewUser data);

	@NoToken
	@PostMapping("/user/active/save")
	R<Boolean> saveMktStatActiveUser(@RequestBody MktStatActiveUser data);

	@NoToken
	@PostMapping("/user/new/update")
	R<Boolean> updateMktStatNewUser(@RequestBody MktStatNewUser data);

	@NoToken
	@PostMapping("/user/active/update")
	R<Boolean> updateMktStatActiveUser(@RequestBody MktStatActiveUser data);

}