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