deviceno
Build docker and publish / build (20.15.1) (push) Successful in 7m26s

This commit is contained in:
2026-03-17 09:12:56 -07:00
parent 4b528184ea
commit 282e1e4087
7 changed files with 8 additions and 8 deletions
@@ -82,7 +82,7 @@ func (l *GetFamilyDetailLogic) GetFamilyDetail(req *types.GetFamilyDetailRequest
memberItem := types.FamilyMemberItem{
UserId: member.UserId,
Identifier: identifier,
DeviceID: deviceNoMap[member.UserId],
DeviceNo : deviceNoMap[member.UserId],
Role: member.Role,
RoleName: mapFamilyRoleName(member.Role),
Status: member.Status,
@@ -37,7 +37,7 @@ func (l *GetUserDetailLogic) GetUserDetail(req *types.GetDetailRequest) (*types.
tool.DeepCopy(&resp, userInfo)
for i, d := range userInfo.UserDevices {
if i < len(resp.UserDevices) {
resp.UserDevices[i].DeviceID = tool.DeviceIdToHash(d.Id)
resp.UserDevices[i].DeviceNo = tool.DeviceIdToHash(d.Id)
}
}
if referCode := strings.TrimSpace(resp.ReferCode); referCode != "" {
@@ -166,7 +166,7 @@ func (l *GetUserListLogic) GetUserList(req *types.GetUserListRequest) (*types.Ge
// 填充 DeviceID
for i, d := range item.UserDevices {
if i < len(u.UserDevices) {
u.UserDevices[i].DeviceID = tool.DeviceIdToHash(d.Id)
u.UserDevices[i].DeviceNo = tool.DeviceIdToHash(d.Id)
}
}
@@ -36,7 +36,7 @@ func (l *GetUserSubscribeDevicesLogic) GetUserSubscribeDevices(req *types.GetUse
tool.DeepCopy(&userRespList, list)
for i, d := range list {
if i < len(userRespList) {
userRespList[i].DeviceID = tool.DeviceIdToHash(d.Id)
userRespList[i].DeviceNo = tool.DeviceIdToHash(d.Id)
}
}
return &types.GetUserSubscribeDevicesResponse{