<?php

namespace App\Http\Controllers\Manage\Manage\Transformers;

class ManageTransformer
{
    public function transform($manageItem)
    {
        return [
            'id' => $manageItem->id,
            'account' => $manageItem->account,
            'password' => $manageItem->password,
            'nickname' => $manageItem->nickname,
            'role' => $manageItem->role,
            'latest_login_time' => (string)$manageItem->latest_login_time,
            'latest_login_ip' => $manageItem->latest_login_ip,
            'is_enabled' => $manageItem->is_enabled,
            'remark' => $manageItem->remark,
            'register_ip' => $manageItem->register_ip,
        ];
    }
}