package com.microservices.system.mapper;

import com.microservices.common.datasource.annotation.Slave;
import com.microservices.system.domain.ForgeUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表 数据层
 *
 * @author microservices
 */
@Slave
@Mapper
public interface ForgeUserMapper {
    Long selectUserIdByGitLinkToken(String gitLinkToken);

    /**
     * 查询GitLink平台用户
     *
     * @param id GitLink平台用户主键
     * @return GitLink平台用户
     */
    public ForgeUser selectGitLinkUserById(Long id);

    String selectGitLinkTokenByUserId(@Param("gitLinkUserId") Long gitLinkUserId);
}
