Browse Source

update k8s_resolver.go

master
DengBiao 1 year ago
parent
commit
906ba0a929
3 changed files with 19 additions and 16 deletions
  1. +9
    -8
      internal/business/domain/user/model/user.go
  2. +9
    -8
      pkg/pb/business.ext.pb.go
  3. +1
    -0
      pkg/proto/business.ext.proto

+ 9
- 8
internal/business/domain/user/model/user.go View File

@@ -25,13 +25,14 @@ func (u *User) ToProto() *pb.User {
} }


return &pb.User{ return &pb.User{
UserId: u.Id,
Nickname: u.Nickname,
Sex: u.Sex,
AvatarUrl: u.AvatarUrl,
Extra: u.Extra,
CreateTime: u.CreateTime.Unix(),
UpdateTime: u.UpdateTime.Unix(),
MasterId: u.MasterId,
UserId: u.Id,
Nickname: u.Nickname,
Sex: u.Sex,
AvatarUrl: u.AvatarUrl,
Extra: u.Extra,
CreateTime: u.CreateTime.Unix(),
UpdateTime: u.UpdateTime.Unix(),
MasterId: u.MasterId,
IsAutoAddedFriends: int64(u.IsAutoAddedFriends),
} }
} }

+ 9
- 8
pkg/pb/business.ext.pb.go View File

@@ -431,14 +431,15 @@ type User struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields


UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
Sex int32 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
CreateTime int64 `protobuf:"varint,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
UpdateTime int64 `protobuf:"varint,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
MasterId int64 `protobuf:"varint,8,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
Sex int32 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
CreateTime int64 `protobuf:"varint,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
UpdateTime int64 `protobuf:"varint,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
MasterId int64 `protobuf:"varint,8,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
IsAutoAddedFriends int64 `protobuf:"varint,9,opt,name=is_auto_added_friends,json=isAutoAddedFriends,proto3" json:"is_auto_added_friends,omitempty"` // 是否自动被添加好友
} }


func (x *User) Reset() { func (x *User) Reset() {


+ 1
- 0
pkg/proto/business.ext.proto View File

@@ -62,6 +62,7 @@ message User {
int64 create_time = 6; // 创建时间 int64 create_time = 6; // 创建时间
int64 update_time = 7; // 更新时间 int64 update_time = 7; // 更新时间
int64 master_id = 8; // 站长id int64 master_id = 8; // 站长id
int64 is_auto_added_friends = 9; // 是否自动被添加好友
} }


message GetUserReq { message GetUserReq {


Loading…
Cancel
Save