项目初始化

This commit is contained in:
Taric Xin
2021-11-26 16:34:35 +08:00
parent 66644bcf0a
commit 5287578452
354 changed files with 45736 additions and 0 deletions

View File

@ -0,0 +1,38 @@
/*
* @Author: Maple
* @Date: 2021-03-22 09:50:07
* @LastEditors: Do not edit
* @LastEditTime: 2021-05-27 11:37:17
* @Description:全局环境服务
*/
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class EnvironmentService {
// 应用ID
private appId = `D40B4EFC33FC4803864934872A11B0CE`;
// 租户ID
private tenantId = `1352892699355607041`;
private env: { appId: string; tenantId: string } = { appId: this.appId, tenantId: this.tenantId };
constructor() {
this.setEnvironment(this.appId, this.tenantId);
}
/**
* 设置环境信息
* @param appId 应用ID
* @param tenantId 租户ID
*/
setEnvironment(appId: string, tenantId: string): void {
this.env = { appId, tenantId };
}
/**
* 获取环境信息
* @returns 环境信息
*/
getEnvironment() {
return this.env;
}
}