From 37706bc7ce8d14244e14bd6ce8d3adac8434e127 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 14 Apr 2026 10:08:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B5=84=E4=BA=A7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=BD=93=E5=89=8D=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=94=A8=E6=88=B7=E7=BB=91=E5=AE=9A=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/handler/app/client_asset.go | 3 +++ internal/model/dto/client_asset_dto.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/internal/handler/app/client_asset.go b/internal/handler/app/client_asset.go index f2b3903..c0a88a7 100644 --- a/internal/handler/app/client_asset.go +++ b/internal/handler/app/client_asset.go @@ -148,7 +148,10 @@ func (h *ClientAssetHandler) GetAssetInfo(c *fiber.Ctx) error { return err } + phone, _ := middleware.GetCustomerPhone(c) + resp := &dto.AssetInfoResponse{ + BoundPhone: phone, AssetType: resolved.Asset.AssetType, AssetID: resolved.Asset.AssetID, Identifier: resolved.Identifier, diff --git a/internal/model/dto/client_asset_dto.go b/internal/model/dto/client_asset_dto.go index 34bd989..9b5e4e4 100644 --- a/internal/model/dto/client_asset_dto.go +++ b/internal/model/dto/client_asset_dto.go @@ -14,6 +14,9 @@ type AssetInfoRequest struct { // AssetInfoResponse B1 资产信息响应 // 根据 asset_type 不同,设备专属字段或卡专属字段会分别填充(另一侧为零值/omit) type AssetInfoResponse struct { + // === 登录用户信息 === + BoundPhone string `json:"bound_phone" description:"当前登录用户绑定的手机号"` + // === 基础信息(通用) === AssetType string `json:"asset_type" description:"资产类型(card:卡, device:设备)"` AssetID uint `json:"asset_id" description:"资产ID"`