Skip to content

BaseAdmin

BaseAdmin

  • Page management base class

fields

app

The application AdminApp object registered by the current admin object.

  • Note that app is not the top level and may be registered by other AdminApp or AdminSite.)

site

The AdminSite site where the current management object is registered, the top-level Admin object.

unique_id

The unique ID of the current management object.

  • Customizable settings, if not set, it will be automatically generated according to the default rules.
  • Unique IDs should not change when a project is started or stopped, and should be unique per Admin class within a project.

Admin ClassDiagram

  • FastAPI-Amis-Admin core class diagram
classDiagram %% admin class RouterMixin RouterMixin: +APIRouter router RouterAdmin --|> RouterMixin class BaseAdmin BaseAdmin: +AdminAPP app RouterAdmin --|> BaseAdmin PageSchemaAdmin --|> BaseAdmin PageSchemaAdmin: +PageSchema page_schema PageSchemaAdmin: +PageSchema group_schema LinkAdmin --|> PageSchemaAdmin IframeAdmin --|> PageSchemaAdmin IframeAdmin: +Iframe iframe PageAdmin --|> PageSchemaAdmin PageAdmin --|> RouterAdmin PageAdmin: +Page page BaseFormAdmin --|> PageAdmin BaseFormAdmin: +Form form BaseFormAdmin: +BaseModel schema FormAdmin --|> BaseFormAdmin TemplateAdmin --|> PageAdmin TemplateAdmin: +Jinja2Templates templates %% model ModelFormAdmin --|> FormAdmin ModelFormAdmin --|> SQLModelSelector ModelAction --|> BaseFormAdmin ModelAction --|> BaseModelAction ModelAction: +ModelAdmin admin ModelAction: +Action action class SQLModelSelector SQLModelSelector: +SQLModel model BaseCrud --|> RouterMixin SQLModelCrud ..|> BaseCrud SQLModelCrud --|> SQLModelSelector BaseModelAdmin --|> SQLModelCrud ModelAdmin --|> BaseModelAdmin ModelAdmin --|> PageAdmin %% group,app,site AdminGroup --|> PageSchemaAdmin AdminAPP --|> AdminGroup AdminAPP --|> PageAdmin AdminAPP: +AsyncDatabase db AdminAPP: +AdminSite site AdminSite --|> AdminAPP AdminSite: +FastAPI fastapi AdminSite: +Settings settings

Admin & Amis

  • fastapi-amis-admin class and amis component class diagram
classDiagram AdminSite --> App App --|> AmisNode App *-- PageSchema PageSchema --|> AmisNode PageSchema *-- PageSchema AdminApp --> App AdminApp --> Tabs Tabs *-- TabsItem TabsItem --|> AmisNode Page --|> AmisNode PageAdmin --> Page Form --|> AmisNode FormItem --|> AmisNode Form *-- FormItem FormAdmin --> Form Table --|> AmisNode CRUD --|> AmisNode TableCRUD --|> Table TableCRUD --|> CRUD Table *-- TableColumn TableColumn --|> AmisNode Action --|> AmisNode ModelAction --> Form ModelAction --> Action ModelAdmin --> TableCRUD ModelAdmin --> Action