2025-05-02 21:43:51 +00:00
|
|
|
import { AggregateRoot, UniqueID } from "@/core/common/domain";
|
|
|
|
|
import { Result } from "@/core/common/helpers";
|
2025-02-15 21:30:12 +00:00
|
|
|
|
|
|
|
|
export interface IRoleProps {}
|
|
|
|
|
|
|
|
|
|
export interface IRole {}
|
|
|
|
|
|
|
|
|
|
export class Role extends AggregateRoot<IRoleProps> implements IRole {
|
|
|
|
|
static create(props: IRoleProps, id: UniqueID): Result<Role, Error> {
|
|
|
|
|
const role = new Role(props, id);
|
|
|
|
|
return Result.ok(role);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
toPersistenceData(): any {}
|
|
|
|
|
}
|