33 lines
920 B
JavaScript
33 lines
920 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.PermissionData = void 0;
|
|
class PermissionData {
|
|
id;
|
|
code;
|
|
name;
|
|
description;
|
|
createdAt;
|
|
updatedAt;
|
|
constructor(id, code, name, description, createdAt, updatedAt) {
|
|
this.id = id;
|
|
this.code = code;
|
|
this.name = name;
|
|
this.description = description;
|
|
this.createdAt = createdAt;
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
changeName(name) {
|
|
this.name = name;
|
|
}
|
|
changeDescription(description) {
|
|
this.description = description;
|
|
}
|
|
changeCode(code) {
|
|
this.code = code;
|
|
}
|
|
static restore(props) {
|
|
return new PermissionData(props.id, props.code || props.name, props.name, props.description, props.createdAt, props.updatedAt);
|
|
}
|
|
}
|
|
exports.PermissionData = PermissionData;
|
|
//# sourceMappingURL=permission.entity.js.map
|