(string) $this->nickname, 'avatar' => (string) $this->avatar, 'gender' => (string) $this->gender, 'birthday' => (string) $this->birthday?->toDateString(), 'code' => (string) $this->code, 'balance' => '1000.00', //todo 用户余额 'points' => (int) $this->points, ]; } }