You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
980 B

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
class DefaultAddr extends Resource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'provinceId' => $this->aid_p,
'cityId' => $this->aid_c,
'districtId' => $this->aid_a,
'provinceStr' => $this->province,
'cityStr' => $this->city,
'areaStr' => $this->area,
'linkMan' => $this->true_name,
'address' => $this->addr,
'mobile' => $this->mobile,
'code' => $this->postcode,
'isDefault' => $this->is_default,
'sid' => $this->sid,
'did' => $this->did,
'school_name' => $this->school_name,
'dorm_name' => $this->dorm_name,
];
}
}