- Remove unused method.

This commit is contained in:
caoyanyi
2024-01-03 13:39:43 +08:00
parent c4a4d70e5a
commit 045adc1ee8
2 changed files with 0 additions and 24 deletions
-19
View File
@@ -88,25 +88,6 @@ class gitlabModel extends model
return rtrim($gitlab->url, '/') . '/api/v4%s' . "?private_token={$gitlab->token}" . $sudoParam;
}
/**
* 获取gitlab的用户id和真实名字的键值对。
* Get gitlab user id and realname pairs of one gitlab.
*
* @param int $gitlabID
* @access public
* @return array
*/
public function getUserIdRealnamePairs(int $gitlabID): array
{
return $this->dao->select('oauth.openID as openID,user.realname as realname')
->from(TABLE_OAUTH)->alias('oauth')
->leftJoin(TABLE_USER)->alias('user')
->on("oauth.account = user.account")
->where('providerType')->eq('gitlab')
->andWhere('providerID')->eq($gitlabID)
->fetchPairs();
}
/**
* 获取gitlab的 项目id和名称 键值对。
* Get project pairs of one gitlab.