From 70213bfccb031289d755de1d10b42258ad894dc9 Mon Sep 17 00:00:00 2001 From: Guo Zhang Date: Mon, 5 Feb 2024 18:01:19 +0800 Subject: [PATCH] feat: new framework of the specification --- .gitignore | 3 +++ _config.yml | 1 + _toc.yml | 17 ++++++++++++-- bounded_contexts/README.md | 1 + bounded_contexts/iam.md | 7 ++++++ commitees/README.md | 1 - departments/README.md | 1 - duties/README.md | 19 ---------------- duties/duty.md | 19 ++++++++++++++++ duties/duty_relation.md | 7 ++++++ groups/README.md | 1 + groups/group.md | 14 ++++++++++++ groups/group_relation.md | 10 +++++++++ index.md | 1 + ranks/rank.md | 46 ++++++++++++++++++++++++++++++++++++++ ranks/sequence.md | 15 ------------- staff/employee.md | 1 + staff/employer.md | 1 + staff/group.md | 3 --- 19 files changed, 127 insertions(+), 41 deletions(-) create mode 100644 .gitignore create mode 100644 bounded_contexts/README.md create mode 100644 bounded_contexts/iam.md delete mode 100644 commitees/README.md delete mode 100644 departments/README.md create mode 100644 duties/duty.md create mode 100644 duties/duty_relation.md create mode 100644 groups/README.md create mode 100644 groups/group.md create mode 100644 groups/group_relation.md create mode 100644 index.md create mode 100644 ranks/rank.md delete mode 100644 ranks/sequence.md create mode 100644 staff/employee.md create mode 100644 staff/employer.md delete mode 100644 staff/group.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5e975e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +_build/ +.vscode/ +.idea/ diff --git a/_config.yml b/_config.yml index c51091e..8c1c997 100644 --- a/_config.yml +++ b/_config.yml @@ -1,2 +1,3 @@ name: quanttide-specification-of-human-resources title: 量潮人力资源标准 +author: 量潮科技 diff --git a/_toc.yml b/_toc.yml index 2d49a19..e0032a7 100644 --- a/_toc.yml +++ b/_toc.yml @@ -2,8 +2,21 @@ format: jb-book root: index.md chapters: - file: staff/README.md - - file: departments/README.md - - file: commitees/README.md + sections: + - file: staff/employee.md + - file: staff/employer.md + - file: groups/README.md + sections: + - file: groups/group.md + - file: groups/group_relation.md - file: positions/README.md - file: ranks/README.md + sections: + - file: ranks/rank.md - file: duties/README.md + sections: + - file: duties/duty.md + - file: duties/duty_relation.md + - file: bounded_contexts/README.md + sections: + - file: bounded_contexts/iam.md diff --git a/bounded_contexts/README.md b/bounded_contexts/README.md new file mode 100644 index 0000000..bcedf18 --- /dev/null +++ b/bounded_contexts/README.md @@ -0,0 +1 @@ +# 上下文边界 diff --git a/bounded_contexts/iam.md b/bounded_contexts/iam.md new file mode 100644 index 0000000..9b668eb --- /dev/null +++ b/bounded_contexts/iam.md @@ -0,0 +1,7 @@ +# 数字身份领域 + +领域模型的关联关系: + +- 员工`Employee` <- 组织成员`OrgMember`:一对一 +- 雇主`Employer` <- 组织所有者`OrgOwner`:一对一 +- 员工组`EmployeeGroup` <- 组织成员组`OrgMemberGroup`:一对一 diff --git a/commitees/README.md b/commitees/README.md deleted file mode 100644 index 8973178..0000000 --- a/commitees/README.md +++ /dev/null @@ -1 +0,0 @@ -# 委员会 diff --git a/departments/README.md b/departments/README.md deleted file mode 100644 index 9f3d9e4..0000000 --- a/departments/README.md +++ /dev/null @@ -1 +0,0 @@ -# 部门 diff --git a/duties/README.md b/duties/README.md index 2578c17..a97ef40 100644 --- a/duties/README.md +++ b/duties/README.md @@ -1,20 +1 @@ # 职责 - -## 领域模型定义 - -- `id` -- `number`: -- `title`: -- `description`: -- `type`: - -### `PositionDuty` - -### `RankDuty` - -### `GroupDuty` - -## 关联关系 - -职责可以被视为一个聚合根,它可以包含一些子职责或子任务,这些子职责或子任务可以被视为职责的一部分。 -有向无环图或有向树。 diff --git a/duties/duty.md b/duties/duty.md new file mode 100644 index 0000000..b6c00cb --- /dev/null +++ b/duties/duty.md @@ -0,0 +1,19 @@ +# 职责 + +**职责(`Duty`)**指的是一个员工或岗位在组织中所承担的任务、义务和责任。这包括他们在工作中需要完成的具体工作内容、所负责的项目或业务领域、以及对组织和团队的贡献。 + +字段定义如下: + +- **ID(`id`)**:用于唯一标识职责的标识符。 +- **标题(`title`)**:描述职责的动名词短语。 +- **描述(`description`)**:对职责的详细描述,具体说明员工或岗位在组织中承担的任务、义务和责任,包括具体工作内容、所负责的项目或业务领域,以及对组织和团队的贡献。 + +示例数据如下: + +```json +{ + "id": 1, + "title": "培训与开发", + "description": "负责组织和实施员工培训计划,包括课程设计、培训资源管理以及员工技能提升。与部门领导协作,确保员工具备所需技能以应对工作挑战。" +} +``` diff --git a/duties/duty_relation.md b/duties/duty_relation.md new file mode 100644 index 0000000..9927b97 --- /dev/null +++ b/duties/duty_relation.md @@ -0,0 +1,7 @@ +# 职责关联关系 + +**职责关联关系(`DutyRelation`)**指的是职责和职责的层次关系。 + +- **ID(`id`)**:唯一标识符。 +- **父职责(`parent`)**: +- **子职责(`child`)**: diff --git a/groups/README.md b/groups/README.md new file mode 100644 index 0000000..0d2f65c --- /dev/null +++ b/groups/README.md @@ -0,0 +1 @@ +# 员工组 diff --git a/groups/group.md b/groups/group.md new file mode 100644 index 0000000..c4ce5ec --- /dev/null +++ b/groups/group.md @@ -0,0 +1,14 @@ +# 员工组 + +**员工组(`EmployeeGroup`)**是员工的集合。 + +- **ID(`id`)**:系统生成的唯一标识符。 +- **标识(`name`)**:用户自定义的标识,租户内唯一,方便计算机程序识别。 +- **名称(`verbose_name`)**:用户自定义的名称,方便用户称呼。 +- **类型(`type`)**:系统定义的员工组类型。 + +## 员工组类型 + +- **部门(`department`)**:指组织内按照功能或业务线划分的部门,如财务部、市场部等。 +- **委员会(`committee`)**:指组织内负责特定决策或治理功能的委员会,如人力资源委员会、审计委员会等。 +- **项目组(`project_group`)**:指为完成特定项目而组建的团队,团队成员可能来自组织内的不同部门。 diff --git a/groups/group_relation.md b/groups/group_relation.md new file mode 100644 index 0000000..6c90f1b --- /dev/null +++ b/groups/group_relation.md @@ -0,0 +1,10 @@ +# 员工组关联关系 + +**员工组关联关系(`EmployeeGroup`)** + +字段定义如下: + +- **ID(`id`)**:系统定义的唯一标识符。 +- **父员工组(`parent`)**: +- **子员工组(`child`)**: + diff --git a/index.md b/index.md new file mode 100644 index 0000000..b6d4af6 --- /dev/null +++ b/index.md @@ -0,0 +1 @@ +# 简介 diff --git a/ranks/rank.md b/ranks/rank.md new file mode 100644 index 0000000..8de3395 --- /dev/null +++ b/ranks/rank.md @@ -0,0 +1,46 @@ +# 职级 + +**职级(`Rank`)**是指在组织、公司或机构中,根据工作性质、责任大小、所需资格和能力等因素,对职位或岗位进行分类的等级制度。职级通常用来表示一个职位在组织中的相对重要性和复杂性。 + +字段定义如下: + +- **ID(`id`)**: +- **标识(`name`)**: +- **序列(`category`)**: +- **等级(`level`)**: + +示例数据如下: + +```json +{ + "id": 1, + "name": "T1", + "category": { + "id": 1, + "name": "T", + "verboseName": "技术序列" + }, + "level": 1 +} +``` + +## 职级序列 + +**职级序列(`RankCategory`)**是用户自定义的职级类别。 + +字段定义如下: + +- **ID(`id`)**:系统定义的唯一标识符。 +- **标识(`name`)**:用户自定义的标识字段,租户内唯一。 +- **名称(`verboseName`)**:用户自定义的名称。 +- **父职级序列(`parent`)**:上级职级序列。 + +示例数据如下: + +```json +{ + "id": 1, + "name": "T", + "verboseName": "技术序列" +} +``` diff --git a/ranks/sequence.md b/ranks/sequence.md deleted file mode 100644 index 0bc68b0..0000000 --- a/ranks/sequence.md +++ /dev/null @@ -1,15 +0,0 @@ -# 职级序列 - -统称: - -- L,Level,等级 - -专业序列: - -- M,Manager,管理 -- T,Tech,技术 -- P,Product,产品 -- S,Sale,市场 -- R,Research,科研 -- F,Functional,职能 -- C,Consulter,顾问 \ No newline at end of file diff --git a/staff/employee.md b/staff/employee.md new file mode 100644 index 0000000..d69af05 --- /dev/null +++ b/staff/employee.md @@ -0,0 +1 @@ +# 员工 diff --git a/staff/employer.md b/staff/employer.md new file mode 100644 index 0000000..d9c00ef --- /dev/null +++ b/staff/employer.md @@ -0,0 +1 @@ +# 雇主 diff --git a/staff/group.md b/staff/group.md deleted file mode 100644 index 36d3ffc..0000000 --- a/staff/group.md +++ /dev/null @@ -1,3 +0,0 @@ -# 员工组 - -详见[部门](../departments/README.md)和[委员会](../commitees/README.md)