初始化模版工程
This commit is contained in:
18
utils/getAuth.ts
Normal file
18
utils/getAuth.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @description 从当前服务里获取到当前登录的userId
|
||||
* @returns userId | undefined
|
||||
*/
|
||||
export async function getUserId() {
|
||||
// 从当前服务里获取到当前登录的userId
|
||||
|
||||
// 默认值是undefined
|
||||
return void 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Get ProjectId
|
||||
* @returns projectId | undefined
|
||||
*/
|
||||
export function getProjectId() {
|
||||
return process.env.PROJECT_ID ?? void 0;
|
||||
}
|
||||
Reference in New Issue
Block a user