master
Bowen 3 years ago
parent 34ddc87cbb
commit 34052b8e0d

@ -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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -224,24 +232,25 @@ 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{
// 268 bytes of a gzipped FileDescriptorProto // 273 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0xcd, 0x4a, 0xc4, 0x30, 0x1f, 0x8b, 0x08, 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, 0x8a, 0x39, 0x93, 0x12, 0x0a, 0xbf, 0x7a, 0xc1, 0xef, 0xb1, 0x9c, 0xd3, 0x2f, 0x34, 0xbd, 0xe2, 0x28, 0x31, 0x01, 0x69, 0xb4, 0xd7, 0xdc, 0x3e, 0xce, 0x21,
0x5f, 0x56, 0x01, 0xe1, 0x91, 0xcc, 0xbe, 0x6d, 0x08, 0x4b, 0x58, 0x3f, 0x90, 0xe3, 0xb3, 0x5c, 0x1b, 0x07, 0xc9, 0xf8, 0x7b, 0xcc, 0xf3, 0x22, 0x54, 0xb8, 0x27, 0x7b, 0xa8, 0x2b, 0xc2, 0x1c,
0x1c, 0x75, 0x03, 0xe0, 0x35, 0x1e, 0x5b, 0x01, 0x27, 0x5f, 0xdc, 0x9f, 0x7f, 0x4f, 0x99, 0xf8, 0xd6, 0x77, 0xe4, 0x79, 0xac, 0xb3, 0x59, 0x36, 0x14, 0xbc, 0xc4, 0x39, 0x0a, 0x75, 0xd2, 0xc5,
0x99, 0x32, 0xf1, 0x3b, 0x65, 0xe2, 0xeb, 0x2f, 0x5b, 0xbc, 0xae, 0xf8, 0xce, 0x77, 0xff, 0x01, 0xed, 0xe9, 0xe7, 0x90, 0x88, 0xaf, 0x21, 0x11, 0xdf, 0x43, 0x22, 0x3e, 0x7e, 0x92, 0xc5, 0x73,
0x00, 0x00, 0xff, 0xff, 0x87, 0x34, 0x3f, 0xe3, 0x76, 0x01, 0x00, 0x00, 0xc4, 0xeb, 0xdf, 0xfc, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x27, 0x35, 0x70, 0x8c, 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.
@ -348,6 +357,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)
@ -505,6 +521,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)
} }
@ -732,6 +752,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