fix npm run build
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
"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
|
||||
Reference in New Issue
Block a user