1/* 2 * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15export default class LoginResult{ 16 private token?: string; 17 private id?: string; 18 private username?: string; 19 private realName?: string; 20 private avatar?: string; 21 22 public getToken(): string{ 23 return this.token!; 24 } 25 public setToken(token: string){ 26 this.token = token; 27 } 28 public getId(): string{ 29 return this.id!; 30 } 31 public setId(id: string){ 32 this.id = id; 33 } 34 public getUsername(): string{ 35 return this.username!; 36 } 37 public setUsername(username: string){ 38 this.username = username; 39 } 40 public getRealName(): string{ 41 return this.realName!; 42 } 43 public setRealName(realName: string){ 44 this.realName = realName; 45 } 46 public getAvatar(): string{ 47 return this.avatar!; 48 } 49 public setAvatar(avatar: string){ 50 this.avatar = avatar; 51 } 52}