feat(net-tools): 修改GitlabService入参格式
All checks were successful
/ release (push) Successful in 27s

This commit is contained in:
zhaoyingbo 2024-11-17 03:10:02 +00:00
parent b03fb6ab51
commit 7e97b8a8f5

View File

@ -23,7 +23,15 @@ class GitlabService {
* @param {string} authKey -
* @param {string} requestId - ID
*/
constructor(baseUrl: string, authKey: string, requestId: string) {
constructor({
baseUrl = "",
authKey = "",
requestId = "",
}: {
baseUrl: string
authKey: string
requestId: string
}) {
this.badge = new Badge(baseUrl, authKey, requestId)
this.commit = new Commit(baseUrl, authKey, requestId)
this.discussions = new Discussions(baseUrl, authKey, requestId)