 struct User {}
 
 // 协议
-protocol IUser {
+protocol UserProtocol {
     func insert(_ user: User)
     func get(_ id: Int) -> User
 }
 
-struct SQLServerUser: IUser {
+struct SQLServerUser: UserProtocol {
     func insert(_ user: User) {
         print("\(#function) user")
     }

struct DataAccess {
    static var database: Database = .access
    
    static func createUser() -> IUser {
        switch database {
        case .sqlServer:
            return SQLServerUser()

    }
}

struct AccessDepartment: DepartmentProtocol {
    func insert(_ department: Department) {
        print("\(#function) department")
    }
