168 lines
4.8 KiB
Plaintext
168 lines
4.8 KiB
Plaintext
@startuml
|
||
skinparam rectangle {
|
||
BackgroundColor<<ControllerLayer>> #E3F2FD
|
||
BorderColor<<ControllerLayer>> #90CAF9
|
||
BackgroundColor<<ServiceInterfaceLayer>> #F3E5F5
|
||
BorderColor<<ServiceInterfaceLayer>> #B39DDB
|
||
BackgroundColor<<ServiceImplLayer>> #E8F5E9
|
||
BorderColor<<ServiceImplLayer>> #A5D6A7
|
||
BackgroundColor<<MapperLayer>> #FFF3E0
|
||
BorderColor<<MapperLayer>> #FFB74D
|
||
BackgroundColor<<EntityLayer>> #FFEBEE
|
||
BorderColor<<EntityLayer>> #EF9A9A
|
||
}
|
||
|
||
title 基础权限管理分层架构依赖关系
|
||
|
||
' --------- Controller 层 ----------
|
||
package "Controller Layer" <<ControllerLayer>> {
|
||
class ConfigSetController <<C>>
|
||
class DictItemController <<C>>
|
||
class DictTypeController <<C>>
|
||
class LogsController <<C>>
|
||
class MenuController <<C>>
|
||
class PermissionController <<C>>
|
||
class RoleController <<C>>
|
||
class UserController <<C>>
|
||
}
|
||
|
||
' --------- Service 接口层 ----------
|
||
package "Service Interface Layer" <<ServiceInterfaceLayer>> {
|
||
interface ConfigSetService <<I>>
|
||
interface DictItemService <<I>>
|
||
interface DictTypeService <<I>>
|
||
interface LogsService <<I>>
|
||
interface MenusService <<I>>
|
||
interface PermissionMenuService <<I>>
|
||
interface PermissionsService <<I>>
|
||
interface RolePermissionService <<I>>
|
||
interface RolesService <<I>>
|
||
interface TableRelationsService <<I>>
|
||
interface UserRoleService <<I>>
|
||
interface UsersService <<I>>
|
||
}
|
||
|
||
' --------- Service 实现层 ----------
|
||
package "Service Implementation Layer" <<ServiceImplLayer>> {
|
||
class ConfigSetServiceImpl <<C>>
|
||
class DictItemServiceImpl <<C>>
|
||
class DictTypeServiceImpl <<C>>
|
||
class LogsServiceImpl <<C>>
|
||
class MenusServiceImpl <<C>>
|
||
class PermissionMenuServiceImpl <<C>>
|
||
class PermissionsServiceImpl <<C>>
|
||
class RolePermissionServiceImpl <<C>>
|
||
class RolesServiceImpl <<C>>
|
||
class TableRelationsServiceImpl <<C>>
|
||
class UserRoleServiceImpl <<C>>
|
||
class UsersServiceImpl <<C>>
|
||
}
|
||
|
||
' --------- Mapper 层 ----------
|
||
package "Mapper Layer" <<MapperLayer>> {
|
||
interface ConfigSetMapper <<I>>
|
||
interface DictItemMapper <<I>>
|
||
interface DictTypeMapper <<I>>
|
||
interface LogsMapper <<I>>
|
||
interface MenusMapper <<I>>
|
||
interface PermissionMenuMapper <<I>>
|
||
interface PermissionsMapper <<I>>
|
||
interface RolePermissionMapper <<I>>
|
||
interface RolesMapper <<I>>
|
||
interface TableRelationsMapper <<I>>
|
||
interface UserRoleMapper <<I>>
|
||
interface UsersMapper <<I>>
|
||
}
|
||
|
||
' --------- Entity 层 ----------
|
||
package "Entity Layer" <<EntityLayer>> {
|
||
class ConfigSet
|
||
class CreateUser
|
||
class DictItem
|
||
class DictType
|
||
class Logs
|
||
class Menus
|
||
class PermissionMenu
|
||
class Permissions
|
||
class RolePermission
|
||
class Roles
|
||
class TableRelations
|
||
class UpdateUser
|
||
class UserRole
|
||
class Users
|
||
}
|
||
|
||
' ======== 依赖关系,每组典型主线依赖 =========
|
||
' ConfigSet
|
||
ConfigSetController --> ConfigSetService
|
||
ConfigSetService <|.. ConfigSetServiceImpl
|
||
ConfigSetServiceImpl --> ConfigSetMapper
|
||
ConfigSetMapper --> ConfigSet
|
||
|
||
' DictItem
|
||
DictItemController --> DictItemService
|
||
DictItemService <|.. DictItemServiceImpl
|
||
DictItemServiceImpl --> DictItemMapper
|
||
DictItemMapper --> DictItem
|
||
|
||
' DictType
|
||
DictTypeController --> DictTypeService
|
||
DictTypeService <|.. DictTypeServiceImpl
|
||
DictTypeServiceImpl --> DictTypeMapper
|
||
DictTypeMapper --> DictType
|
||
|
||
' Logs
|
||
LogsController --> LogsService
|
||
LogsService <|.. LogsServiceImpl
|
||
LogsServiceImpl --> LogsMapper
|
||
LogsMapper --> Logs
|
||
|
||
' Menu
|
||
MenuController --> MenusService
|
||
MenusService <|.. MenusServiceImpl
|
||
MenusServiceImpl --> MenusMapper
|
||
MenusMapper --> Menus
|
||
|
||
' PermissionMenu
|
||
PermissionController --> PermissionMenuService
|
||
PermissionMenuService <|.. PermissionMenuServiceImpl
|
||
PermissionMenuServiceImpl --> PermissionMenuMapper
|
||
PermissionMenuMapper --> PermissionMenu
|
||
|
||
' Permissions
|
||
PermissionController --> PermissionsService
|
||
PermissionsService <|.. PermissionsServiceImpl
|
||
PermissionsServiceImpl --> PermissionsMapper
|
||
PermissionsMapper --> Permissions
|
||
|
||
' RolePermission
|
||
RoleController --> RolePermissionService
|
||
RolePermissionService <|.. RolePermissionServiceImpl
|
||
RolePermissionServiceImpl --> RolePermissionMapper
|
||
RolePermissionMapper --> RolePermission
|
||
|
||
' Roles
|
||
RoleController --> RolesService
|
||
RolesService <|.. RolesServiceImpl
|
||
RolesServiceImpl --> RolesMapper
|
||
RolesMapper --> Roles
|
||
|
||
' TableRelations
|
||
TableRelationsService <|.. TableRelationsServiceImpl
|
||
TableRelationsServiceImpl --> TableRelationsMapper
|
||
TableRelationsMapper --> TableRelations
|
||
|
||
' UserRole
|
||
UserController --> UserRoleService
|
||
UserRoleService <|.. UserRoleServiceImpl
|
||
UserRoleServiceImpl --> UserRoleMapper
|
||
UserRoleMapper --> UserRole
|
||
|
||
' Users
|
||
UserController --> UsersService
|
||
UsersService <|.. UsersServiceImpl
|
||
UsersServiceImpl --> UsersMapper
|
||
UsersMapper --> Users
|
||
|
||
' CreateUser/UpdateUser (通常为DTO/VO,可与Users并列)
|
||
@enduml |