规范代码

This commit is contained in:
Kane Wang 2023-03-06 11:26:47 +08:00
parent ef78c2e42e
commit e99d092862
3 changed files with 39 additions and 40 deletions

View File

@ -2,7 +2,7 @@
* @Author: Kane
* @Date: 2023-02-28 14:48:30
* @LastEditors: Kane
* @FilePath: /task_schedule/src/data/cpicxim/StuffInfo.ts
* @FilePath: /task_schedule/src/data/cpicxim/StaffInfo.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
@ -12,21 +12,21 @@ class StaffInfo
{
constructor(
p13uid: string,
staff_code: string,
staff_name: string,
department_code: string,
department_name: string,
section_office_code: string,
section_office_name: string
staffCode: string,
staffName: string,
departmentCode: string,
departmentName: string,
sectionOfficeCode: string,
sectionOfficeName: string
)
{
this._stuffCode = staff_code;
this._stuffName = staff_name;
this._stuffCode = staffCode;
this._stuffName = staffName;
this._p13uid = p13uid;
this._department_code = department_code;
this._department_name = department_name;
this._section_office_code = section_office_code;
this._section_office_name = section_office_name;
this._departmentCode = departmentCode;
this._departmentName = departmentName;
this._sectionOfficeCode = sectionOfficeCode;
this._sectionOfficeName = sectionOfficeName;
}
public get stuffCode(): string
@ -34,9 +34,9 @@ class StaffInfo
return this._stuffCode;
}
public set stuffCode(stuff_code: string)
public set stuffCode(stuffCode: string)
{
this._stuffCode = stuff_code;
this._stuffCode = stuffCode;
}
public get stuffName(): string
@ -44,9 +44,9 @@ class StaffInfo
return this._stuffName;
}
public set stuffName(stuff_name: string)
public set stuffName(stuffName: string)
{
this._stuffName = stuff_name;
this._stuffName = stuffName;
}
public get P13UID(): string
@ -59,34 +59,33 @@ class StaffInfo
this._p13uid = p13uid;
}
public set departmentCode(department_code: string)
public set departmentCode(departmentCode: string)
{
this._department_code = department_code;
this._departmentCode = departmentCode;
}
public get departmentCode()
public get departmentCode(): string
{
return this._department_code;
return this._departmentCode;
}
public set departmentName(department_name: string)
public set departmentName(departmentName: string)
{
this._department_name = department_name;
this._departmentName = departmentName;
}
public get departmentName()
public get departmentName(): string
{
return this._department_name;
return this._departmentName;
}
private _stuffCode: string;
private _stuffName: string;
private _p13uid: string;
private _department_code: string;
private _department_name: string;
private _section_office_code: string;
private _section_office_name: string;
private _departmentCode: string;
private _departmentName: string;
private readonly _sectionOfficeCode: string;
private readonly _sectionOfficeName: string;
}
export { StaffInfo };