package com.cyksj.service.cps;

import cn.hutool.core.date.DateTime;
import com.cyksj.model.entity.CouponDistributePopularize;
import com.cyksj.model.entity.User;
import com.cyksj.model.views.BrokenLineCpsUserWMoneyView;
import com.cyksj.model.views.CpsUserWMoneyStatisticsDataView;

import java.util.List;

/*
 *项目名: netflix
 *文件名: CpsManageService
 *创建者: JavaZou
 *创建时间:2023/5/12 11:18
 */
public interface CpsManageService {
	/**
	 * 获取登录验证码
	 * @param type 1手机号、2邮箱
	 * @param cid 国家或地区id +86
	 * @param login
	 */
	void getLoginCode(Integer type, String login, Integer cid, String verifyCode, String ticket, String randStr);

	User login(Integer type, String login, String code);

	List<CpsUserWMoneyStatisticsDataView> getWMoneyStatisticsDataView(Long cpsUserId, DateTime first, DateTime end);

	BrokenLineCpsUserWMoneyView getWMoneyStatisticsDate(Long cpsUserId, DateTime first, DateTime end);

	void setCouponCode(long cpsUserId, List<CouponDistributePopularize> couponRelates) throws Exception;
}
