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 R{ 16 private success: boolean; 17 private message: string; 18 private code: number; 19 private data: any; 20 21 public getSuccess(): boolean{ 22 return this.success; 23 } 24 public setSuccess(success: boolean){ 25 this.success = success; 26 } 27 public getMessage(): string{ 28 return this.message; 29 } 30 public setMessage(message: string){ 31 this.message = message; 32 } 33 public getCode(): number{ 34 return this.code; 35 } 36 public setCode(code: number){ 37 this.code = code; 38 } 39 public getData(): any{ 40 return this.data; 41 } 42 public setData(data: any){ 43 this.data = data; 44 } 45}