fix: 设备组详情补充 auth_type/device_type 字段,统一用户名显示
Build docker and publish / build (20.15.1) (push) Successful in 8m15s

- FamilyMemberItem 新增 auth_type、device_type 字段
- FamilySummary 新增 owner_auth_type 字段
- findUserIdentifiers 返回 identifierInfo(含 auth_type)
- 新增 parseDeviceType() 从 UserAgent 解析设备类型

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-03-26 21:30:51 -07:00
parent 4a2501a3d1
commit e5c8e965af
5 changed files with 54 additions and 8 deletions
@@ -123,7 +123,9 @@ func (l *GetFamilyListLogic) GetFamilyList(req *types.GetFamilyListRequest) (*ty
list := make([]types.FamilySummary, 0, len(families))
for _, family := range families {
ownerIdentifier := identifierMap[family.OwnerUserId]
ownerInfo := identifierMap[family.OwnerUserId]
ownerIdentifier := ownerInfo.Identifier
ownerAuthType := ownerInfo.AuthType
if ownerIdentifier == "" {
ownerIdentifier = strconv.FormatInt(family.OwnerUserId, 10)
}
@@ -132,6 +134,7 @@ func (l *GetFamilyListLogic) GetFamilyList(req *types.GetFamilyListRequest) (*ty
FamilyId: family.Id,
OwnerUserId: family.OwnerUserId,
OwnerIdentifier: ownerIdentifier,
OwnerAuthType: ownerAuthType,
Status: mapFamilyStatus(family.Status),
ActiveMemberCount: countMap[family.Id],
MaxMembers: family.MaxMembers,