Permission submodule
This part describes the author authorization module rights under sub-modules [flea-frame-auth].
Related table
Table Name | Chinese description |
---|---|
flea_privilege | Authority |
flea_privilege_rel | Permission association (menu, operation, element) |
flea_privilege_group | Rights Groups |
flea_privilege_group_rel | Permission group association (permission) |
1. Permission
The table provided by the authorization module can be understood as the range and extent of the user's operable resources in the system.
Field name | Chinese description |
---|---|
privilege_id | Authority number |
privilege_name | Authority name |
privilege_desc | Permission description |
group_id | Authority group number |
privilege_state | Permission status (0: delete 1: normal) |
create_date | Creation date |
done_date | Modified date |
remarks | Menu description |
2. Permission association
Table authorization module, the current definition of the three functions associated, respectively, menus , operation and elements ;
association type [ relat_type ] can define.
Field name | Chinese description |
---|---|
privilege_rel_id | Authorization association number |
privilege_id | Authority number |
rel_id | Association number |
rel_type | Association type |
rel_state | Association status (0: deleted 1: normal) |
create_date | Creation date |
done_date | Modified date |
remarks | Menu description |
rel_ext_a | Associated extension field A |
rel_ext_b | Associated extension field B |
rel_ext_c | Associated extension field C |
rel_ext_x | Associated extension field X |
rel_ext_y | Associated extension field Y |
rel_ext_z | Associated extension field Z |
3. Permission Group
The table provided by the authorization module can be understood as a collection of permissions of the same type;
there is a many-to-one relationship between permissions and permission groups. The group_id in the permission table records the number of the permission group, the default value is -1;
the function of the permission group association, That is, the functions associated with all the permissions under it, not the functions associated with the permission group alone.
Field name | Chinese description |
---|---|
privilege_group_id | Authority group number |
privilege_group_name | Authority group name |
privilege_group_desc | Permission group description |
privilege_group_state | Authorization group status (0: delete 1: normal) |
create_date | Creation date |
done_date | Modified date |
remarks | Menu description |
4. Permission group association
Table authorization module, the current can be associated permissions .
Field name | Chinese description |
---|---|
privilege_group_rel_id | Authorization group association number |
privilege_group_id | Authority group number |
rel_id | Association number |
rel_type | Association type |
rel_state | Association status (0: deleted 1: normal) |
create_date | Creation date |
done_date | Modified date |
remarks | Menu description |
rel_ext_a | Associated extension field A |
rel_ext_b | Associated extension field B |
rel_ext_c | Associated extension field C |
rel_ext_x | Associated extension field X |
rel_ext_y | Associated extension field Y |
rel_ext_z | Associated extension field Z |
The following concepts are introduced for the permissions associated with permission groups :
- The group is mutually exclusive , and the permissions in the permission group are mutually restricted in the scope and degree of operable resources. When performing role authorization, only one permission in the group can be selected to grant the role.