fix: 资产解析接口 BoundCardInfo 添加运营商字段
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m18s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m18s
This commit is contained in:
@@ -70,6 +70,9 @@ type BoundCardInfo struct {
|
|||||||
RealNameAt *time.Time `json:"real_name_at" description:"该卡最近一次完成实名的时间,未实名时为 null"`
|
RealNameAt *time.Time `json:"real_name_at" description:"该卡最近一次完成实名的时间,未实名时为 null"`
|
||||||
SlotPosition int `json:"slot_position,omitempty" description:"插槽位置"`
|
SlotPosition int `json:"slot_position,omitempty" description:"插槽位置"`
|
||||||
IsCurrent bool `json:"is_current" description:"是否为当前使用的卡"`
|
IsCurrent bool `json:"is_current" description:"是否为当前使用的卡"`
|
||||||
|
CarrierID uint `json:"carrier_id,omitempty" description:"运营商ID"`
|
||||||
|
CarrierType string `json:"carrier_type,omitempty" description:"运营商类型"`
|
||||||
|
CarrierName string `json:"carrier_name,omitempty" description:"运营商名称"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AssetRealtimeStatusResponse 资产实时状态(只读DB/Redis)
|
// AssetRealtimeStatusResponse 资产实时状态(只读DB/Redis)
|
||||||
|
|||||||
@@ -194,6 +194,9 @@ func (s *Service) buildDeviceResolveResponse(ctx context.Context, device *model.
|
|||||||
RealNameAt: c.FirstRealnameAt,
|
RealNameAt: c.FirstRealnameAt,
|
||||||
SlotPosition: slotMap[c.ID],
|
SlotPosition: slotMap[c.ID],
|
||||||
IsCurrent: isCurrentMap[c.ID],
|
IsCurrent: isCurrentMap[c.ID],
|
||||||
|
CarrierID: c.CarrierID,
|
||||||
|
CarrierType: c.CarrierType,
|
||||||
|
CarrierName: c.CarrierName,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -369,6 +372,9 @@ func (s *Service) GetRealtimeStatus(ctx context.Context, assetType string, id ui
|
|||||||
RealNameStatus: c.RealNameStatus,
|
RealNameStatus: c.RealNameStatus,
|
||||||
SlotPosition: slotMap[c.ID],
|
SlotPosition: slotMap[c.ID],
|
||||||
IsCurrent: isCurrentMap[c.ID],
|
IsCurrent: isCurrentMap[c.ID],
|
||||||
|
CarrierID: c.CarrierID,
|
||||||
|
CarrierType: c.CarrierType,
|
||||||
|
CarrierName: c.CarrierName,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user