update area_code

This commit is contained in:
hawklin2017 2026-05-06 20:56:35 +08:00
parent 64cc500c0d
commit ae00605f22
3 changed files with 8 additions and 1 deletions

View File

@ -46,6 +46,7 @@ func UserDB2Pb(user *relationtb.User) *sdkws.UserInfo {
FirstName: user.FirstName,
LastName: user.LastName,
Phone: user.Phone,
AreaCode: user.AreaCode,
PhoneVisibility: user.PhoneVisibility,
CallAcceptSetting: user.CallAcceptSetting,
MsgReceiveSetting: user.MsgReceiveSetting,
@ -70,6 +71,7 @@ func UserPb2DB(user *sdkws.UserInfo) *relationtb.User {
FirstName: user.FirstName,
LastName: user.LastName,
FullName: fullName,
AreaCode: user.AreaCode,
CallRingtoneURL: user.CallRingtoneURL,
}
}
@ -85,6 +87,7 @@ func UserPb2DBMap(user *sdkws.UserInfo) map[string]any {
"ex": user.Ex,
"first_name": user.FirstName,
"last_name": user.LastName,
"area_code": user.AreaCode,
"app_manager_level": user.AppMangerLevel,
"global_recv_msg_opt": user.GlobalRecvMsgOpt,
"call_ringtone_url": user.CallRingtoneURL,
@ -141,6 +144,9 @@ func UserPb2DBMapEx(user *sdkws.UserInfoWithEx) map[string]any {
if user.Phone != nil {
val["phone"] = user.Phone.Value
}
if user.AreaCode != nil {
val["area_code"] = user.AreaCode.Value
}
if user.PhoneVisibility != nil {
val["phone_visibility"] = user.PhoneVisibility.Value
}

View File

@ -54,6 +54,7 @@ type User struct {
LastName string `bson:"last_name"`
FullName string `bson:"full_name"`
Phone string `bson:"phone"`
AreaCode string `bson:"area_code"`
PhoneVisibility int32 `bson:"phone_visibility"`
CallAcceptSetting int32 `bson:"call_accept_setting"`
MsgReceiveSetting int32 `bson:"msg_receive_setting"`

@ -1 +1 @@
Subproject commit 8bdb641d1356efc61620c0d37647a86f5dc94973
Subproject commit 3b211f91d0e6b98797f91ba34fa64a7b47df5645