master
Bowen 3 years ago
parent 35aa6f404b
commit 526aa93b2b

@ -32,6 +32,7 @@ type User struct {
UpdatedAt string `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedAt string `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -105,6 +106,13 @@ func (m *User) GetAvatar() string {
return "" return ""
} }
func (m *User) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
type UserRequest struct { type UserRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
@ -232,25 +240,26 @@ func init() {
func init() { proto.RegisterFile("users.proto", fileDescriptor_030765f334c86cea) } func init() { proto.RegisterFile("users.proto", fileDescriptor_030765f334c86cea) }
var fileDescriptor_030765f334c86cea = []byte{ var fileDescriptor_030765f334c86cea = []byte{
// 286 bytes of a gzipped FileDescriptorProto // 289 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 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ff, 0xf8, 0x79, 0x4f, 0x0e, 0xa5, 0x01, 0x00,
0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -357,6 +366,13 @@ func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i -= len(m.XXX_unrecognized) i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized)
} }
if len(m.Token) > 0 {
i -= len(m.Token)
copy(dAtA[i:], m.Token)
i = encodeVarintUsers(dAtA, i, uint64(len(m.Token)))
i--
dAtA[i] = 0x32
}
if len(m.Avatar) > 0 { if len(m.Avatar) > 0 {
i -= len(m.Avatar) i -= len(m.Avatar)
copy(dAtA[i:], m.Avatar) copy(dAtA[i:], m.Avatar)
@ -519,6 +535,10 @@ func (m *User) Size() (n int) {
if l > 0 { if l > 0 {
n += 1 + l + sovUsers(uint64(l)) n += 1 + l + sovUsers(uint64(l))
} }
l = len(m.Token)
if l > 0 {
n += 1 + l + sovUsers(uint64(l))
}
if m.XXX_unrecognized != nil { if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized) n += len(m.XXX_unrecognized)
} }
@ -749,6 +769,38 @@ func (m *User) Unmarshal(dAtA []byte) error {
} }
m.Avatar = string(dAtA[iNdEx:postIndex]) m.Avatar = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowUsers
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthUsers
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthUsers
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Token = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipUsers(dAtA[iNdEx:]) skippy, err := skipUsers(dAtA[iNdEx:])

@ -8,6 +8,7 @@ message User {
string updated_at = 3; string updated_at = 3;
string name = 4; string name = 4;
string avatar = 5; string avatar = 5;
string token = 6;
} }
message UserRequest { message UserRequest {

Loading…
Cancel
Save