@jrosadob/ms-logs
Version:
ms-logs
37 lines • 1.45 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogDto = void 0;
class LogDto {
get primaryKey() {
if (this.primaryKeyGuid === null && this.primaryKeyNumber === null) {
return null;
}
if (this.primaryKeyGuid === null) {
return this.primaryKeyNumber;
}
else {
return this.primaryKeyGuid;
}
}
set primaryKey(value) {
if (typeof value === 'string') {
this.primaryKeyGuid = value;
}
if (typeof value === 'number') {
this.primaryKeyNumber = value;
}
}
copyProperties(source) {
this.entity = source.entity === null ? this.entity : source.entity;
this.primaryKey = source.primaryKey === null ? this.primaryKey : source.primaryKey;
this.action = source.action === null ? this.action : source.action;
this.reason = source.reason === null ? this.reason : source.reason;
this.typeId = source.typeId === null ? this.typeId : source.typeId;
this.userId = source.userId === null ? this.userId : source.userId;
this.roleId = source.roleId === null ? this.roleId : source.roleId;
this.bossId = source.bossId === null ? this.bossId : source.bossId;
this.statusId = source.statusId === null ? this.statusId : source.statusId;
}
}
exports.LogDto = LogDto;
//# sourceMappingURL=log.dto.js.map