Procházet zdrojové kódy

feat(types): 在IUser接口添加institutionName和area字段

LuoHaoxuan před 3 roky
rodič
revize
e1fa71fd53
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7 0
      types/src/interface/user.ts

+ 7 - 0
types/src/interface/user.ts

@@ -59,6 +59,11 @@ export interface ISummary {
   everydayOnlineTime: IEverydayOnlineTimeItem[];
 }
 
+export interface IUserArea {
+  province: string; // 省份
+  municipality: string; // 城市
+}
+
 export interface IUser {
   ID: string;
   ssoID: string;
@@ -73,6 +78,8 @@ export interface IUser {
   abnormalLoginAlert: boolean;
   defaultEnterprise: string;
   summaryInfo: ISummary;
+  institutionName: string; // 用户输入的机构名称
+  area: IUserArea; // 用户选择的省份、城市、地区
 }
 
 export interface IAPInstitution {