package com.zanxiang.game.module.sdk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zanxiang.game.module.mybatis.entity.User;
import com.zanxiang.game.module.mybatis.entity.UserAgentLog;
import reactor.util.function.Tuple3;

/**
 * @author : lingfeng
 * @time : 2023-07-20
 * @description : 用户渠道记录
 */
public interface IUserAgentLogService extends IService<UserAgentLog> {

    /**
     * 注册代理日志
     *
     * @param user 用户
     * @return boolean
     */
    boolean regAgentLog(User user);

    /**
     * 代理更新日志
     *
     * @param oldAgentChannel 用户信息
     * @param newAgentId      新代理id
     * @param newChannel      新渠道
     * @return boolean
     */
    boolean agentUpdateLog(Tuple3<Long, Long, String> oldAgentChannel, Long newAgentId, String newChannel);
}
