Uecko_ERP/apps/server/src/contexts/auth/domain/aggregates/role.ts

16 lines
406 B
TypeScript
Raw Normal View History

2025-02-21 10:06:27 +00:00
import { AggregateRoot, UniqueID } from "@common/domain";
import { Result } from "@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 {}
}