feat: hồ sơ khách (ngày sinh, tỉnh/phường theo mã), gộp menu + nút tắt, thông báo theo uuid
- PUT v1/client/update: gender theo enum ClientGender (0 Nam/1 Nữ), thêm
birthday (cột mới), province_code/ward_code validate theo bảng provinces/wards
(phường phải thuộc tỉnh). Migration nạp dữ liệu hành chính 2025 từ
province_ward_import.sql (chỉ bảng trống), API GET v1/provinces[/{code}/wards].
- CustomerObserver/OrderObserver log giá trị cũ bằng getRawOriginal: getOriginal
trả enum object, nối chuỗi gây 500 khi khách đổi giới tính.
- ClientResource: các cờ trả boolean, CCCD chỉ trả cccd_updated (không lộ ảnh/số).
- GET v1/setting/menu trả cả items + quick_links, bỏ v1/setting/quick-links.
- Thông báo admin/khách tra theo uuid thay vì id tự tăng.
- Chặn gửi template marketing cho khách đã tắt nhận email marketing.
- Xoá ProvinceWardSeeder và Customer::$updatable không dùng.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
12d5b4951c
commit
bf78f3b810
@@ -50,23 +50,25 @@ class ClientController extends Controller
|
||||
* @OA\Property(property="customer", type="object",
|
||||
* @OA\Property(property="fullname", type="string", example="Nguyen Van A"),
|
||||
* @OA\Property(property="email", type="string", example="client@example.com"),
|
||||
* @OA\Property(property="phone", type="string", example="0987654321"),
|
||||
* @OA\Property(property="phone", type="string", example="*******321", description="Chỉ hiển thị 3 số cuối"),
|
||||
* @OA\Property(property="address", type="string", example="123 Street"),
|
||||
* @OA\Property(property="city", type="string", example="Hanoi"),
|
||||
* @OA\Property(property="ward", type="string", example="Ward 1"),
|
||||
* @OA\Property(property="province", type="string", example="Hanoi"),
|
||||
* @OA\Property(property="gender", type="string", example="Nam"),
|
||||
* @OA\Property(property="ward", type="string", example="Phường Bình Trị Đông"),
|
||||
* @OA\Property(property="ward_code", type="string", nullable=true, example="27460"),
|
||||
* @OA\Property(property="province", type="string", example="Hồ Chí Minh"),
|
||||
* @OA\Property(property="province_code", type="string", nullable=true, example="79"),
|
||||
* @OA\Property(property="gender", type="integer", nullable=true, example=0, description="0 = Nam, 1 = Nữ"),
|
||||
* @OA\Property(property="gender_label", type="string", example="Nam"),
|
||||
* @OA\Property(property="birthday", type="string", format="date", nullable=true, example="1995-06-20"),
|
||||
* @OA\Property(property="date", type="string", format="date-time", example="2024-01-01 12:00:00"),
|
||||
* @OA\Property(property="company", type="string", example="Company Ltd"),
|
||||
* @OA\Property(property="avatar", type="string", example="/uploads/avatar.jpg"),
|
||||
* @OA\Property(property="cmnd_after", type="string", example="cmnd_back.jpg"),
|
||||
* @OA\Property(property="cmnd_before", type="string", example="cmnd_front.jpg"),
|
||||
* @OA\Property(property="cmnd", type="string", example="123456789"),
|
||||
* @OA\Property(property="cccd_updated", type="boolean", example=true),
|
||||
* @OA\Property(property="fb_link", type="string", nullable=true),
|
||||
* @OA\Property(property="active_2fa", type="integer", example=0),
|
||||
* @OA\Property(property="off_mail_marketing", type="integer", example=0),
|
||||
* @OA\Property(property="is_recharge_zalo", type="integer", example=0),
|
||||
* @OA\Property(property="is_verify_telegram", type="integer", example=0)
|
||||
* @OA\Property(property="active_2fa", type="boolean", example=false),
|
||||
* @OA\Property(property="off_mail_marketing", type="boolean", example=false),
|
||||
* @OA\Property(property="is_recharge_zalo", type="boolean", example=false),
|
||||
* @OA\Property(property="is_verify_telegram", type="boolean", example=false)
|
||||
* ),
|
||||
* @OA\Property(property="credit", type="object",
|
||||
* @OA\Property(property="credit", type="number", example=1000000),
|
||||
|
||||
Reference in New Issue
Block a user