From 81d52412db92d6ed07460045d4a13616218508de Mon Sep 17 00:00:00 2001 From: Kane Date: Sun, 19 Feb 2023 21:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/ts/后端辅助工具/.eslintrc.js | 2 +- .../后端辅助工具/src/DataType/Class.ts | 25 +++++++++++-------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/code/ts/后端辅助工具/.eslintrc.js b/code/ts/后端辅助工具/.eslintrc.js index 3f23819..5275090 100644 --- a/code/ts/后端辅助工具/.eslintrc.js +++ b/code/ts/后端辅助工具/.eslintrc.js @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2023-02-09 15:26:18 * @LastEditors: Kane - * @LastEditTime: 2023-02-10 10:25:42 + * @LastEditTime: 2023-02-18 23:36:07 * @FilePath: /后端辅助工具/.eslintrc.js * @Description: * diff --git a/code/ts/后端辅助工具/src/DataType/Class.ts b/code/ts/后端辅助工具/src/DataType/Class.ts index 0ee9487..f792edb 100644 --- a/code/ts/后端辅助工具/src/DataType/Class.ts +++ b/code/ts/后端辅助工具/src/DataType/Class.ts @@ -10,12 +10,19 @@ */ class CpicximStuff { - constructor(name: string, code: string, p13UID: string) - { - this._stuffName = name; - this._stuffCode = code; - this._p13UID = p13UID; - }; + // constructor(name: string, code: string, p13UID: string) + // { + // this._stuffName = name; + // this._stuffCode = code; + // this._p13UID = p13UID; + // }; + + public constructor( + private _stuffName: string, + private _stuffCode: string, + private p13UID: string + ) + { } get stuffName(): string { @@ -26,10 +33,6 @@ class CpicximStuff { this._stuffName = stuffName; } - - private _stuffName: string; - private _stuffCode: string; - private _p13UID: string; }; -export {CpicximStuff}; \ No newline at end of file +export { CpicximStuff }; \ No newline at end of file