Introduction to the functional sub-modules used by flea-frame-auth

Function sub-module

This part describes the author authorization module functional sub-modules under [flea-frame-auth].

Related table

Currently sub-module contains menus , operations and elements of three types of functional units;
these functions and associated rights [refer to permissions submodule of permissions associated table flea_privilege_rel ].

Table Name Chinese description
flea_menu menu
flea_operation operating
flea_element Element (page)
flea_function_attr Function extension attributes

1. Menu

The table provided by the authorization module can be interpreted as the sum of a series of business logic, a type of functional unit defined in order to complete a specific function.

Field name Chinese description
menu_id Menu number
menu_code Menu code
menu_name Menu name
menu_icon Menu FontAwesome small icon
menu_sort Menu display order (under the same parent menu)
menu_view Menu corresponding page (non-leaf menu can be empty)
menu_level Menu level (1: first level 2; second level 3: third level 4: fourth level)
menu_state Menu status (0: offline, 1: in use)
parent_id Parent menu number
create_date Creation date
done_date Modified date
effective_date effective date
expiry_date Expiration date
remarks Menu description

2. Operation

The table provided by the authorization module can be understood as a relatively single functional unit in business logic, such as adding roles and adding permissions.

Field name Chinese description
operation_id Operation number
operation_code Operation code
operation_name Operation name
operation_desc Operation description
operation_state Operation status (0: delete 1: normal)
create_date Creation date
done_date Modified date
remarks Remarks information

3. Elements

The table provided by the authorization module currently has page element definitions, such as page buttons.

Field name Chinese description
element_id Element number
element_code Element encoding
element_name Element name
element_desc Element description
element_type Element type
element_content Element content
element_state Element status (0: deleted 1: normal)
create_date Creation date
done_date Modified date
remarks Menu description

4. Function extension properties

The table provided by the authorization module configures the extended attributes for the above functional units.

Field name Chinese description
attr_id Attribute number
function_id Function number
function_type Function type (menu, operation, element)
attr_code Attribute code
attr_value Attribute value
state Property status (0: delete 1: normal)
create_date Creation date
done_date Modified date
effective_date effective date
expiry_date Expiration date
remarks Remarks information

If you need to add permission control for a certain function in the future, you only need to do the following:

  • Add related function tables in the function sub-module;
  • Permissions submodule authority table associated with the new definition of a medium associated with type [ rel_type ], and bind the relevant authorization data.

Guess you like

Origin blog.csdn.net/u012855229/article/details/103719604