diff --git a/desc/douyin.proto b/desc/douyin.proto index 159f29a..87da248 100644 --- a/desc/douyin.proto +++ b/desc/douyin.proto @@ -7,7 +7,7 @@ option go_package="./douyin"; message Empty {} message SignatureReq { - string url = 1; + optional string url = 1; } message SignatureResp { diff --git a/douyin.proto b/douyin.proto index ca1945d..f107a64 100644 --- a/douyin.proto +++ b/douyin.proto @@ -3,59 +3,58 @@ syntax = "proto3"; package douyin; option go_package="./douyin"; -message UUIDReq { - string id = 1; +message IDReq { + uint64 id = 1; } -message PageInfoReq { - uint64 page = 1; - uint64 page_size = 2; +message IDsInt32Req { + repeated int32 ids = 1; } -message IDsReq { - repeated uint64 ids = 1; +message BaseResp { + string msg = 1; } -message IDsInt32Req { - repeated int32 ids = 1; +message SignatureReq { + optional string url = 1; } -message BaseIDInt64Resp { - int64 id = 1; - string msg = 2; +message UserInfoResp { + UserInfo user_info = 1; } -message BaseIDInt32Resp { - int32 id = 1; - string msg = 2; +message IDsUint32Req { + repeated uint32 ids = 1; } message UserInfoReq { string openid = 1; } -message IDUint32Req { - uint32 id = 1; +message IDInt32Req { + int32 id = 1; } -message BaseIDUint32Resp { - uint32 id = 1; +message BaseIDInt32Resp { + int32 id = 1; string msg = 2; } -message BaseResp { - string msg = 1; +message IDUint32Req { + uint32 id = 1; } -// base message -message Empty {} +message UUIDsReq { + repeated string ids = 1; +} -message IDInt32Req { - int32 id = 1; +message PageInfoReq { + uint64 page = 1; + uint64 page_size = 2; } -message BaseUUIDResp { - string id = 1; +message BaseIDUint32Resp { + uint32 id = 1; string msg = 2; } @@ -75,37 +74,25 @@ message AccessTokenReq { string code = 1; } -message UserInfo { - string avatar = 1; - string city = 2; - string country = 3; - string e_account_role = 4; - string gender = 5; - string nickname = 6; - string open_id = 7; - string province = 8; - string union_id = 9; -} - -message UserInfoResp { - UserInfo user_info = 1; +message AccessTokenResp { + string access_token = 1; } -message BaseIDResp { - uint64 id = 1; - string msg = 2; +message IDInt64Req { + int64 id = 1; } -message IDsUint32Req { - repeated uint32 ids = 1; +message IDsInt64Req { + repeated int64 ids = 1; } -message IDInt64Req { +message BaseIDInt64Resp { int64 id = 1; + string msg = 2; } -message IDsInt64Req { - repeated int64 ids = 1; +message UUIDReq { + string id = 1; } message SignatureResp { @@ -115,24 +102,37 @@ message SignatureResp { int64 timestamp = 4; } -message IDReq { +// base message +message Empty {} + +message IDsReq { + repeated uint64 ids = 1; +} + +message BaseIDResp { uint64 id = 1; + string msg = 2; } -message UUIDsReq { - repeated string ids = 1; +message BaseUUIDResp { + string id = 1; + string msg = 2; } message GetShareSchemaResp { string schema = 1; } -message SignatureReq { - string url = 1; -} - -message AccessTokenResp { - string access_token = 1; +message UserInfo { + string avatar = 1; + string city = 2; + string country = 3; + string e_account_role = 4; + string gender = 5; + string nickname = 6; + string open_id = 7; + string province = 8; + string union_id = 9; } service Douyin { diff --git a/internal/logic/dyApi/get_signature_logic.go b/internal/logic/dyApi/get_signature_logic.go index 7a68586..f7b6958 100644 --- a/internal/logic/dyApi/get_signature_logic.go +++ b/internal/logic/dyApi/get_signature_logic.go @@ -54,11 +54,14 @@ func (l *GetSignatureLogic) GetSignature(in *douyin.SignatureReq) (*douyin.Signa }, nil } -func (l *GetSignatureLogic) Sign(jsapiTicket string, url string) (sign string, nonceStr string, timestamp int64) { +func (l *GetSignatureLogic) Sign(jsapiTicket string, url *string) (sign string, nonceStr string, timestamp int64) { nonceStr = util.GenRandomString(16) timestamp = time.Now().Unix() // 对所有待签名参数按照字段名的 ASCII 码从小到大排序(字典序)后,使用 URL 键值对的格式(即 key1=value1&key2=value2…)拼接成字符串 string1 - string1 := "jsapi_ticket=" + jsapiTicket + "&noncestr=" + nonceStr + "×tamp=" + strconv.FormatInt(timestamp, 10) + "&url=" + url + string1 := "jsapi_ticket=" + jsapiTicket + "&noncestr=" + nonceStr + "×tamp=" + strconv.FormatInt(timestamp, 10) + if url != nil { + string1 += "&url=" + *url + } // 对 string1 进行 MD5 签名,得到 signature hash := md5.Sum([]byte(string1)) return hex.EncodeToString(hash[:]), nonceStr, timestamp diff --git a/types/douyin/douyin.pb.go b/types/douyin/douyin.pb.go index 47abe38..48b60b0 100644 --- a/types/douyin/douyin.pb.go +++ b/types/douyin/douyin.pb.go @@ -20,16 +20,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type UUIDReq struct { +type IDReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *UUIDReq) Reset() { - *x = UUIDReq{} +func (x *IDReq) Reset() { + *x = IDReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -37,13 +37,13 @@ func (x *UUIDReq) Reset() { } } -func (x *UUIDReq) String() string { +func (x *IDReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UUIDReq) ProtoMessage() {} +func (*IDReq) ProtoMessage() {} -func (x *UUIDReq) ProtoReflect() protoreflect.Message { +func (x *IDReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -55,29 +55,28 @@ func (x *UUIDReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UUIDReq.ProtoReflect.Descriptor instead. -func (*UUIDReq) Descriptor() ([]byte, []int) { +// Deprecated: Use IDReq.ProtoReflect.Descriptor instead. +func (*IDReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{0} } -func (x *UUIDReq) GetId() string { +func (x *IDReq) GetId() uint64 { if x != nil { return x.Id } - return "" + return 0 } -type PageInfoReq struct { +type IDsInt32Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` - PageSize uint64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"` + Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *PageInfoReq) Reset() { - *x = PageInfoReq{} +func (x *IDsInt32Req) Reset() { + *x = IDsInt32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -85,13 +84,13 @@ func (x *PageInfoReq) Reset() { } } -func (x *PageInfoReq) String() string { +func (x *IDsInt32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PageInfoReq) ProtoMessage() {} +func (*IDsInt32Req) ProtoMessage() {} -func (x *PageInfoReq) ProtoReflect() protoreflect.Message { +func (x *IDsInt32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -103,35 +102,28 @@ func (x *PageInfoReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PageInfoReq.ProtoReflect.Descriptor instead. -func (*PageInfoReq) Descriptor() ([]byte, []int) { +// Deprecated: Use IDsInt32Req.ProtoReflect.Descriptor instead. +func (*IDsInt32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{1} } -func (x *PageInfoReq) GetPage() uint64 { - if x != nil { - return x.Page - } - return 0 -} - -func (x *PageInfoReq) GetPageSize() uint64 { +func (x *IDsInt32Req) GetIds() []int32 { if x != nil { - return x.PageSize + return x.Ids } - return 0 + return nil } -type IDsReq struct { +type BaseResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` } -func (x *IDsReq) Reset() { - *x = IDsReq{} +func (x *BaseResp) Reset() { + *x = BaseResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -139,13 +131,13 @@ func (x *IDsReq) Reset() { } } -func (x *IDsReq) String() string { +func (x *BaseResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsReq) ProtoMessage() {} +func (*BaseResp) ProtoMessage() {} -func (x *IDsReq) ProtoReflect() protoreflect.Message { +func (x *BaseResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -157,28 +149,28 @@ func (x *IDsReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsReq.ProtoReflect.Descriptor instead. -func (*IDsReq) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseResp.ProtoReflect.Descriptor instead. +func (*BaseResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{2} } -func (x *IDsReq) GetIds() []uint64 { +func (x *BaseResp) GetMsg() string { if x != nil { - return x.Ids + return x.Msg } - return nil + return "" } -type IDsInt32Req struct { +type SignatureReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Url *string `protobuf:"bytes,1,opt,name=url,proto3,oneof" json:"url"` } -func (x *IDsInt32Req) Reset() { - *x = IDsInt32Req{} +func (x *SignatureReq) Reset() { + *x = SignatureReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -186,13 +178,13 @@ func (x *IDsInt32Req) Reset() { } } -func (x *IDsInt32Req) String() string { +func (x *SignatureReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsInt32Req) ProtoMessage() {} +func (*SignatureReq) ProtoMessage() {} -func (x *IDsInt32Req) ProtoReflect() protoreflect.Message { +func (x *SignatureReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -204,29 +196,28 @@ func (x *IDsInt32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsInt32Req.ProtoReflect.Descriptor instead. -func (*IDsInt32Req) Descriptor() ([]byte, []int) { +// Deprecated: Use SignatureReq.ProtoReflect.Descriptor instead. +func (*SignatureReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{3} } -func (x *IDsInt32Req) GetIds() []int32 { - if x != nil { - return x.Ids +func (x *SignatureReq) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } - return nil + return "" } -type BaseIDInt64Resp struct { +type UserInfoResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` + UserInfo *UserInfo `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info"` } -func (x *BaseIDInt64Resp) Reset() { - *x = BaseIDInt64Resp{} +func (x *UserInfoResp) Reset() { + *x = UserInfoResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -234,13 +225,13 @@ func (x *BaseIDInt64Resp) Reset() { } } -func (x *BaseIDInt64Resp) String() string { +func (x *UserInfoResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDInt64Resp) ProtoMessage() {} +func (*UserInfoResp) ProtoMessage() {} -func (x *BaseIDInt64Resp) ProtoReflect() protoreflect.Message { +func (x *UserInfoResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -252,36 +243,28 @@ func (x *BaseIDInt64Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDInt64Resp.ProtoReflect.Descriptor instead. -func (*BaseIDInt64Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead. +func (*UserInfoResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{4} } -func (x *BaseIDInt64Resp) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *BaseIDInt64Resp) GetMsg() string { +func (x *UserInfoResp) GetUserInfo() *UserInfo { if x != nil { - return x.Msg + return x.UserInfo } - return "" + return nil } -type BaseIDInt32Resp struct { +type IDsUint32Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` + Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *BaseIDInt32Resp) Reset() { - *x = BaseIDInt32Resp{} +func (x *IDsUint32Req) Reset() { + *x = IDsUint32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -289,13 +272,13 @@ func (x *BaseIDInt32Resp) Reset() { } } -func (x *BaseIDInt32Resp) String() string { +func (x *IDsUint32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDInt32Resp) ProtoMessage() {} +func (*IDsUint32Req) ProtoMessage() {} -func (x *BaseIDInt32Resp) ProtoReflect() protoreflect.Message { +func (x *IDsUint32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -307,23 +290,16 @@ func (x *BaseIDInt32Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDInt32Resp.ProtoReflect.Descriptor instead. -func (*BaseIDInt32Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use IDsUint32Req.ProtoReflect.Descriptor instead. +func (*IDsUint32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{5} } -func (x *BaseIDInt32Resp) GetId() int32 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *BaseIDInt32Resp) GetMsg() string { +func (x *IDsUint32Req) GetIds() []uint32 { if x != nil { - return x.Msg + return x.Ids } - return "" + return nil } type UserInfoReq struct { @@ -373,16 +349,16 @@ func (x *UserInfoReq) GetOpenid() string { return "" } -type IDUint32Req struct { +type IDInt32Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *IDUint32Req) Reset() { - *x = IDUint32Req{} +func (x *IDInt32Req) Reset() { + *x = IDInt32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -390,13 +366,13 @@ func (x *IDUint32Req) Reset() { } } -func (x *IDUint32Req) String() string { +func (x *IDInt32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDUint32Req) ProtoMessage() {} +func (*IDInt32Req) ProtoMessage() {} -func (x *IDUint32Req) ProtoReflect() protoreflect.Message { +func (x *IDInt32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -408,29 +384,29 @@ func (x *IDUint32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDUint32Req.ProtoReflect.Descriptor instead. -func (*IDUint32Req) Descriptor() ([]byte, []int) { +// Deprecated: Use IDInt32Req.ProtoReflect.Descriptor instead. +func (*IDInt32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{7} } -func (x *IDUint32Req) GetId() uint32 { +func (x *IDInt32Req) GetId() int32 { if x != nil { return x.Id } return 0 } -type BaseIDUint32Resp struct { +type BaseIDInt32Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *BaseIDUint32Resp) Reset() { - *x = BaseIDUint32Resp{} +func (x *BaseIDInt32Resp) Reset() { + *x = BaseIDInt32Resp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -438,13 +414,13 @@ func (x *BaseIDUint32Resp) Reset() { } } -func (x *BaseIDUint32Resp) String() string { +func (x *BaseIDInt32Resp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDUint32Resp) ProtoMessage() {} +func (*BaseIDInt32Resp) ProtoMessage() {} -func (x *BaseIDUint32Resp) ProtoReflect() protoreflect.Message { +func (x *BaseIDInt32Resp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -456,35 +432,35 @@ func (x *BaseIDUint32Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDUint32Resp.ProtoReflect.Descriptor instead. -func (*BaseIDUint32Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDInt32Resp.ProtoReflect.Descriptor instead. +func (*BaseIDInt32Resp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{8} } -func (x *BaseIDUint32Resp) GetId() uint32 { +func (x *BaseIDInt32Resp) GetId() int32 { if x != nil { return x.Id } return 0 } -func (x *BaseIDUint32Resp) GetMsg() string { +func (x *BaseIDInt32Resp) GetMsg() string { if x != nil { return x.Msg } return "" } -type BaseResp struct { +type IDUint32Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *BaseResp) Reset() { - *x = BaseResp{} +func (x *IDUint32Req) Reset() { + *x = IDUint32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -492,13 +468,13 @@ func (x *BaseResp) Reset() { } } -func (x *BaseResp) String() string { +func (x *IDUint32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseResp) ProtoMessage() {} +func (*IDUint32Req) ProtoMessage() {} -func (x *BaseResp) ProtoReflect() protoreflect.Message { +func (x *IDUint32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -510,27 +486,28 @@ func (x *BaseResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseResp.ProtoReflect.Descriptor instead. -func (*BaseResp) Descriptor() ([]byte, []int) { +// Deprecated: Use IDUint32Req.ProtoReflect.Descriptor instead. +func (*IDUint32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{9} } -func (x *BaseResp) GetMsg() string { +func (x *IDUint32Req) GetId() uint32 { if x != nil { - return x.Msg + return x.Id } - return "" + return 0 } -// base message -type Empty struct { +type UUIDsReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids"` } -func (x *Empty) Reset() { - *x = Empty{} +func (x *UUIDsReq) Reset() { + *x = UUIDsReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -538,13 +515,13 @@ func (x *Empty) Reset() { } } -func (x *Empty) String() string { +func (x *UUIDsReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Empty) ProtoMessage() {} +func (*UUIDsReq) ProtoMessage() {} -func (x *Empty) ProtoReflect() protoreflect.Message { +func (x *UUIDsReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -556,21 +533,29 @@ func (x *Empty) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { +// Deprecated: Use UUIDsReq.ProtoReflect.Descriptor instead. +func (*UUIDsReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{10} } -type IDInt32Req struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` +func (x *UUIDsReq) GetIds() []string { + if x != nil { + return x.Ids + } + return nil } -func (x *IDInt32Req) Reset() { - *x = IDInt32Req{} +type PageInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` + PageSize uint64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"` +} + +func (x *PageInfoReq) Reset() { + *x = PageInfoReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -578,13 +563,13 @@ func (x *IDInt32Req) Reset() { } } -func (x *IDInt32Req) String() string { +func (x *PageInfoReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDInt32Req) ProtoMessage() {} +func (*PageInfoReq) ProtoMessage() {} -func (x *IDInt32Req) ProtoReflect() protoreflect.Message { +func (x *PageInfoReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -596,29 +581,36 @@ func (x *IDInt32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDInt32Req.ProtoReflect.Descriptor instead. -func (*IDInt32Req) Descriptor() ([]byte, []int) { +// Deprecated: Use PageInfoReq.ProtoReflect.Descriptor instead. +func (*PageInfoReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{11} } -func (x *IDInt32Req) GetId() int32 { +func (x *PageInfoReq) GetPage() uint64 { if x != nil { - return x.Id + return x.Page } return 0 } -type BaseUUIDResp struct { +func (x *PageInfoReq) GetPageSize() uint64 { + if x != nil { + return x.PageSize + } + return 0 +} + +type BaseIDUint32Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *BaseUUIDResp) Reset() { - *x = BaseUUIDResp{} +func (x *BaseIDUint32Resp) Reset() { + *x = BaseIDUint32Resp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -626,13 +618,13 @@ func (x *BaseUUIDResp) Reset() { } } -func (x *BaseUUIDResp) String() string { +func (x *BaseIDUint32Resp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseUUIDResp) ProtoMessage() {} +func (*BaseIDUint32Resp) ProtoMessage() {} -func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message { +func (x *BaseIDUint32Resp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -644,19 +636,19 @@ func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseUUIDResp.ProtoReflect.Descriptor instead. -func (*BaseUUIDResp) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDUint32Resp.ProtoReflect.Descriptor instead. +func (*BaseIDUint32Resp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{12} } -func (x *BaseUUIDResp) GetId() string { +func (x *BaseIDUint32Resp) GetId() uint32 { if x != nil { return x.Id } - return "" + return 0 } -func (x *BaseUUIDResp) GetMsg() string { +func (x *BaseIDUint32Resp) GetMsg() string { if x != nil { return x.Msg } @@ -821,24 +813,16 @@ func (x *AccessTokenReq) GetCode() string { return "" } -type UserInfo struct { +type AccessTokenResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar"` - City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city"` - Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country"` - EAccountRole string `protobuf:"bytes,4,opt,name=e_account_role,json=eAccountRole,proto3" json:"e_account_role"` - Gender string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender"` - Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname"` - OpenId string `protobuf:"bytes,7,opt,name=open_id,json=openId,proto3" json:"open_id"` - Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province"` - UnionId string `protobuf:"bytes,9,opt,name=union_id,json=unionId,proto3" json:"union_id"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"` } -func (x *UserInfo) Reset() { - *x = UserInfo{} +func (x *AccessTokenResp) Reset() { + *x = AccessTokenResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -846,13 +830,13 @@ func (x *UserInfo) Reset() { } } -func (x *UserInfo) String() string { +func (x *AccessTokenResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UserInfo) ProtoMessage() {} +func (*AccessTokenResp) ProtoMessage() {} -func (x *UserInfo) ProtoReflect() protoreflect.Message { +func (x *AccessTokenResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -864,84 +848,28 @@ func (x *UserInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead. -func (*UserInfo) Descriptor() ([]byte, []int) { +// Deprecated: Use AccessTokenResp.ProtoReflect.Descriptor instead. +func (*AccessTokenResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{15} } -func (x *UserInfo) GetAvatar() string { - if x != nil { - return x.Avatar - } - return "" -} - -func (x *UserInfo) GetCity() string { - if x != nil { - return x.City - } - return "" -} - -func (x *UserInfo) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UserInfo) GetEAccountRole() string { - if x != nil { - return x.EAccountRole - } - return "" -} - -func (x *UserInfo) GetGender() string { - if x != nil { - return x.Gender - } - return "" -} - -func (x *UserInfo) GetNickname() string { - if x != nil { - return x.Nickname - } - return "" -} - -func (x *UserInfo) GetOpenId() string { - if x != nil { - return x.OpenId - } - return "" -} - -func (x *UserInfo) GetProvince() string { - if x != nil { - return x.Province - } - return "" -} - -func (x *UserInfo) GetUnionId() string { +func (x *AccessTokenResp) GetAccessToken() string { if x != nil { - return x.UnionId + return x.AccessToken } return "" } -type UserInfoResp struct { +type IDInt64Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserInfo *UserInfo `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *UserInfoResp) Reset() { - *x = UserInfoResp{} +func (x *IDInt64Req) Reset() { + *x = IDInt64Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -949,13 +877,13 @@ func (x *UserInfoResp) Reset() { } } -func (x *UserInfoResp) String() string { +func (x *IDInt64Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UserInfoResp) ProtoMessage() {} +func (*IDInt64Req) ProtoMessage() {} -func (x *UserInfoResp) ProtoReflect() protoreflect.Message { +func (x *IDInt64Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -967,29 +895,28 @@ func (x *UserInfoResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead. -func (*UserInfoResp) Descriptor() ([]byte, []int) { +// Deprecated: Use IDInt64Req.ProtoReflect.Descriptor instead. +func (*IDInt64Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{16} } -func (x *UserInfoResp) GetUserInfo() *UserInfo { +func (x *IDInt64Req) GetId() int64 { if x != nil { - return x.UserInfo + return x.Id } - return nil + return 0 } -type BaseIDResp struct { +type IDsInt64Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` + Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *BaseIDResp) Reset() { - *x = BaseIDResp{} +func (x *IDsInt64Req) Reset() { + *x = IDsInt64Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -997,13 +924,13 @@ func (x *BaseIDResp) Reset() { } } -func (x *BaseIDResp) String() string { +func (x *IDsInt64Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDResp) ProtoMessage() {} +func (*IDsInt64Req) ProtoMessage() {} -func (x *BaseIDResp) ProtoReflect() protoreflect.Message { +func (x *IDsInt64Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1015,35 +942,29 @@ func (x *BaseIDResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDResp.ProtoReflect.Descriptor instead. -func (*BaseIDResp) Descriptor() ([]byte, []int) { +// Deprecated: Use IDsInt64Req.ProtoReflect.Descriptor instead. +func (*IDsInt64Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{17} } -func (x *BaseIDResp) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *BaseIDResp) GetMsg() string { +func (x *IDsInt64Req) GetIds() []int64 { if x != nil { - return x.Msg + return x.Ids } - return "" + return nil } -type IDsUint32Req struct { +type BaseIDInt64Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *IDsUint32Req) Reset() { - *x = IDsUint32Req{} +func (x *BaseIDInt64Resp) Reset() { + *x = BaseIDInt64Resp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1051,13 +972,13 @@ func (x *IDsUint32Req) Reset() { } } -func (x *IDsUint32Req) String() string { +func (x *BaseIDInt64Resp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsUint32Req) ProtoMessage() {} +func (*BaseIDInt64Resp) ProtoMessage() {} -func (x *IDsUint32Req) ProtoReflect() protoreflect.Message { +func (x *BaseIDInt64Resp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1069,90 +990,50 @@ func (x *IDsUint32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsUint32Req.ProtoReflect.Descriptor instead. -func (*IDsUint32Req) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDInt64Resp.ProtoReflect.Descriptor instead. +func (*BaseIDInt64Resp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{18} } -func (x *IDsUint32Req) GetIds() []uint32 { +func (x *BaseIDInt64Resp) GetId() int64 { if x != nil { - return x.Ids - } - return nil -} - -type IDInt64Req struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` -} - -func (x *IDInt64Req) Reset() { - *x = IDInt64Req{} - if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDInt64Req) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IDInt64Req) ProtoMessage() {} - -func (x *IDInt64Req) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + return x.Id } - return mi.MessageOf(x) -} - -// Deprecated: Use IDInt64Req.ProtoReflect.Descriptor instead. -func (*IDInt64Req) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{19} + return 0 } -func (x *IDInt64Req) GetId() int64 { +func (x *BaseIDInt64Resp) GetMsg() string { if x != nil { - return x.Id + return x.Msg } - return 0 + return "" } -type IDsInt64Req struct { +type UUIDReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` } -func (x *IDsInt64Req) Reset() { - *x = IDsInt64Req{} +func (x *UUIDReq) Reset() { + *x = UUIDReq{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[20] + mi := &file_douyin_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDsInt64Req) String() string { +func (x *UUIDReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsInt64Req) ProtoMessage() {} +func (*UUIDReq) ProtoMessage() {} -func (x *IDsInt64Req) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[20] +func (x *UUIDReq) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1163,16 +1044,16 @@ func (x *IDsInt64Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsInt64Req.ProtoReflect.Descriptor instead. -func (*IDsInt64Req) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{20} +// Deprecated: Use UUIDReq.ProtoReflect.Descriptor instead. +func (*UUIDReq) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{19} } -func (x *IDsInt64Req) GetIds() []int64 { +func (x *UUIDReq) GetId() string { if x != nil { - return x.Ids + return x.Id } - return nil + return "" } type SignatureResp struct { @@ -1189,7 +1070,7 @@ type SignatureResp struct { func (x *SignatureResp) Reset() { *x = SignatureResp{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[21] + mi := &file_douyin_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1202,7 +1083,7 @@ func (x *SignatureResp) String() string { func (*SignatureResp) ProtoMessage() {} func (x *SignatureResp) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[21] + mi := &file_douyin_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1215,7 +1096,7 @@ func (x *SignatureResp) ProtoReflect() protoreflect.Message { // Deprecated: Use SignatureResp.ProtoReflect.Descriptor instead. func (*SignatureResp) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{21} + return file_douyin_proto_rawDescGZIP(), []int{20} } func (x *SignatureResp) GetSignature() string { @@ -1236,26 +1117,65 @@ func (x *SignatureResp) GetNonceStr() string { if x != nil { return x.NonceStr } - return "" + return "" +} + +func (x *SignatureResp) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +// base message +type Empty struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Empty) Reset() { + *x = Empty{} + if protoimpl.UnsafeEnabled { + mi := &file_douyin_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Empty) ProtoMessage() {} + +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x *SignatureResp) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{21} } -type IDReq struct { +type IDsReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *IDReq) Reset() { - *x = IDReq{} +func (x *IDsReq) Reset() { + *x = IDsReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1263,13 +1183,13 @@ func (x *IDReq) Reset() { } } -func (x *IDReq) String() string { +func (x *IDsReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDReq) ProtoMessage() {} +func (*IDsReq) ProtoMessage() {} -func (x *IDReq) ProtoReflect() protoreflect.Message { +func (x *IDsReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1281,28 +1201,29 @@ func (x *IDReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDReq.ProtoReflect.Descriptor instead. -func (*IDReq) Descriptor() ([]byte, []int) { +// Deprecated: Use IDsReq.ProtoReflect.Descriptor instead. +func (*IDsReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{22} } -func (x *IDReq) GetId() uint64 { +func (x *IDsReq) GetIds() []uint64 { if x != nil { - return x.Id + return x.Ids } - return 0 + return nil } -type UUIDsReq struct { +type BaseIDResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *UUIDsReq) Reset() { - *x = UUIDsReq{} +func (x *BaseIDResp) Reset() { + *x = BaseIDResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1310,13 +1231,13 @@ func (x *UUIDsReq) Reset() { } } -func (x *UUIDsReq) String() string { +func (x *BaseIDResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UUIDsReq) ProtoMessage() {} +func (*BaseIDResp) ProtoMessage() {} -func (x *UUIDsReq) ProtoReflect() protoreflect.Message { +func (x *BaseIDResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1328,28 +1249,36 @@ func (x *UUIDsReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UUIDsReq.ProtoReflect.Descriptor instead. -func (*UUIDsReq) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDResp.ProtoReflect.Descriptor instead. +func (*BaseIDResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{23} } -func (x *UUIDsReq) GetIds() []string { +func (x *BaseIDResp) GetId() uint64 { if x != nil { - return x.Ids + return x.Id } - return nil + return 0 } -type GetShareSchemaResp struct { +func (x *BaseIDResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type BaseUUIDResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *GetShareSchemaResp) Reset() { - *x = GetShareSchemaResp{} +func (x *BaseUUIDResp) Reset() { + *x = BaseUUIDResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1357,13 +1286,13 @@ func (x *GetShareSchemaResp) Reset() { } } -func (x *GetShareSchemaResp) String() string { +func (x *BaseUUIDResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetShareSchemaResp) ProtoMessage() {} +func (*BaseUUIDResp) ProtoMessage() {} -func (x *GetShareSchemaResp) ProtoReflect() protoreflect.Message { +func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1375,28 +1304,35 @@ func (x *GetShareSchemaResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetShareSchemaResp.ProtoReflect.Descriptor instead. -func (*GetShareSchemaResp) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseUUIDResp.ProtoReflect.Descriptor instead. +func (*BaseUUIDResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{24} } -func (x *GetShareSchemaResp) GetSchema() string { +func (x *BaseUUIDResp) GetId() string { if x != nil { - return x.Schema + return x.Id } return "" } -type SignatureReq struct { +func (x *BaseUUIDResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type GetShareSchemaResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url"` + Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema"` } -func (x *SignatureReq) Reset() { - *x = SignatureReq{} +func (x *GetShareSchemaResp) Reset() { + *x = GetShareSchemaResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1404,13 +1340,13 @@ func (x *SignatureReq) Reset() { } } -func (x *SignatureReq) String() string { +func (x *GetShareSchemaResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignatureReq) ProtoMessage() {} +func (*GetShareSchemaResp) ProtoMessage() {} -func (x *SignatureReq) ProtoReflect() protoreflect.Message { +func (x *GetShareSchemaResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1422,28 +1358,36 @@ func (x *SignatureReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignatureReq.ProtoReflect.Descriptor instead. -func (*SignatureReq) Descriptor() ([]byte, []int) { +// Deprecated: Use GetShareSchemaResp.ProtoReflect.Descriptor instead. +func (*GetShareSchemaResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{25} } -func (x *SignatureReq) GetUrl() string { +func (x *GetShareSchemaResp) GetSchema() string { if x != nil { - return x.Url + return x.Schema } return "" } -type AccessTokenResp struct { +type UserInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"` + Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar"` + City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city"` + Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country"` + EAccountRole string `protobuf:"bytes,4,opt,name=e_account_role,json=eAccountRole,proto3" json:"e_account_role"` + Gender string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender"` + Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname"` + OpenId string `protobuf:"bytes,7,opt,name=open_id,json=openId,proto3" json:"open_id"` + Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province"` + UnionId string `protobuf:"bytes,9,opt,name=union_id,json=unionId,proto3" json:"union_id"` } -func (x *AccessTokenResp) Reset() { - *x = AccessTokenResp{} +func (x *UserInfo) Reset() { + *x = UserInfo{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1451,13 +1395,13 @@ func (x *AccessTokenResp) Reset() { } } -func (x *AccessTokenResp) String() string { +func (x *UserInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccessTokenResp) ProtoMessage() {} +func (*UserInfo) ProtoMessage() {} -func (x *AccessTokenResp) ProtoReflect() protoreflect.Message { +func (x *UserInfo) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1469,14 +1413,70 @@ func (x *AccessTokenResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccessTokenResp.ProtoReflect.Descriptor instead. -func (*AccessTokenResp) Descriptor() ([]byte, []int) { +// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead. +func (*UserInfo) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{26} } -func (x *AccessTokenResp) GetAccessToken() string { +func (x *UserInfo) GetAvatar() string { if x != nil { - return x.AccessToken + return x.Avatar + } + return "" +} + +func (x *UserInfo) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *UserInfo) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *UserInfo) GetEAccountRole() string { + if x != nil { + return x.EAccountRole + } + return "" +} + +func (x *UserInfo) GetGender() string { + if x != nil { + return x.Gender + } + return "" +} + +func (x *UserInfo) GetNickname() string { + if x != nil { + return x.Nickname + } + return "" +} + +func (x *UserInfo) GetOpenId() string { + if x != nil { + return x.OpenId + } + return "" +} + +func (x *UserInfo) GetProvince() string { + if x != nil { + return x.Province + } + return "" +} + +func (x *UserInfo) GetUnionId() string { + if x != nil { + return x.UnionId } return "" } @@ -1485,37 +1485,39 @@ var File_douyin_proto protoreflect.FileDescriptor var file_douyin_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, - 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x22, 0x19, 0x0a, 0x07, 0x55, 0x55, 0x49, 0x44, 0x52, 0x65, - 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x3e, 0x0a, 0x0b, 0x50, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, - 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, - 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, - 0x65, 0x22, 0x1a, 0x0a, 0x06, 0x49, 0x44, 0x73, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x69, - 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x1f, 0x0a, - 0x0b, 0x49, 0x44, 0x73, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, - 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x33, - 0x0a, 0x0f, 0x42, 0x61, 0x73, 0x65, 0x49, 0x44, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6d, 0x73, 0x67, 0x22, 0x33, 0x0a, 0x0f, 0x42, 0x61, 0x73, 0x65, 0x49, 0x44, 0x49, 0x6e, 0x74, + 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x22, 0x17, 0x0a, 0x05, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x1f, 0x0a, 0x0b, 0x49, 0x44, 0x73, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, 0x10, + 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x03, 0x69, 0x64, 0x73, + 0x22, 0x1c, 0x0a, 0x08, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, + 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x2d, + 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x15, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, + 0x72, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x3d, 0x0a, + 0x0c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, + 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x20, 0x0a, 0x0c, + 0x49, 0x44, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, + 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x25, + 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, + 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, + 0x70, 0x65, 0x6e, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x0a, 0x49, 0x44, 0x49, 0x6e, 0x74, 0x33, 0x32, + 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x0f, 0x42, 0x61, 0x73, 0x65, 0x49, 0x44, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x25, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x64, 0x22, - 0x1d, 0x0a, 0x0b, 0x49, 0x44, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x34, - 0x0a, 0x10, 0x42, 0x61, 0x73, 0x65, 0x49, 0x44, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6d, 0x73, 0x67, 0x22, 0x1c, 0x0a, 0x08, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, - 0x73, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1c, 0x0a, 0x0a, 0x49, - 0x44, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x22, 0x30, 0x0a, 0x0c, 0x42, 0x61, 0x73, - 0x65, 0x55, 0x55, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x1d, 0x0a, 0x0b, 0x49, 0x44, 0x55, 0x69, + 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x08, 0x55, 0x55, 0x49, 0x44, 0x73, + 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x3e, 0x0a, 0x0b, 0x50, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x61, 0x67, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x34, 0x0a, 0x10, 0x42, 0x61, 0x73, 0x65, 0x49, 0x44, 0x55, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xaf, 0x02, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, @@ -1538,77 +1540,76 @@ var file_douyin_proto_rawDesc = []byte{ 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x69, 0x49, 0x64, 0x22, 0x24, 0x0a, 0x0e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x22, 0xfa, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x22, 0x3d, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x2d, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, - 0x2e, 0x0a, 0x0a, 0x42, 0x61, 0x73, 0x65, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, - 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, - 0x20, 0x0a, 0x0c, 0x49, 0x44, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x71, 0x12, - 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x03, 0x69, 0x64, - 0x73, 0x22, 0x1c, 0x0a, 0x0a, 0x49, 0x44, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x65, 0x71, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x1f, 0x0a, 0x0b, 0x49, 0x44, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x65, 0x71, 0x12, 0x10, - 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, - 0x22, 0x87, 0x01, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x12, - 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x72, 0x12, 0x1c, 0x0a, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x17, 0x0a, 0x05, 0x49, 0x44, - 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x08, 0x55, 0x55, 0x49, 0x44, 0x73, 0x52, 0x65, 0x71, 0x12, - 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, - 0x73, 0x22, 0x2c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, - 0x20, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, - 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, - 0x6c, 0x22, 0x34, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xbc, 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x75, 0x79, - 0x69, 0x6e, 0x12, 0x2f, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x12, 0x0d, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x10, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x14, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x6f, 0x75, 0x79, - 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x47, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x12, 0x19, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, - 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x41, 0x0a, 0x0e, 0x47, 0x65, 0x74, - 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x2e, 0x64, 0x6f, - 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x41, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x38, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x13, 0x2e, 0x64, 0x6f, - 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, - 0x1a, 0x14, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x64, 0x6f, 0x75, 0x79, - 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x64, 0x65, 0x22, 0x34, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x1c, 0x0a, 0x0a, 0x49, 0x44, 0x49, + 0x6e, 0x74, 0x36, 0x34, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1f, 0x0a, 0x0b, 0x49, 0x44, 0x73, 0x49, 0x6e, + 0x74, 0x36, 0x34, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x33, 0x0a, 0x0f, 0x42, 0x61, 0x73, 0x65, + 0x49, 0x44, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, + 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x19, 0x0a, + 0x07, 0x55, 0x55, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x87, 0x01, 0x0a, 0x0d, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x5f, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x6e, 0x63, + 0x65, 0x53, 0x74, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x0a, 0x06, 0x49, + 0x44, 0x73, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x04, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x2e, 0x0a, 0x0a, 0x42, 0x61, 0x73, 0x65, 0x49, + 0x44, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x30, 0x0a, 0x0c, 0x42, 0x61, 0x73, 0x65, 0x55, + 0x55, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x2c, 0x0a, 0x12, 0x47, 0x65, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xfa, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x63, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x5f, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x6e, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x32, 0xbc, 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x12, + 0x2f, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, + 0x0d, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x10, + 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x3b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x12, 0x14, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x47, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, + 0x19, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x64, 0x6f, 0x75, + 0x79, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x41, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, + 0x6e, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, + 0x1a, 0x17, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x38, 0x0a, 0x0b, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x13, 0x2e, 0x64, 0x6f, 0x75, 0x79, 0x69, + 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, + 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1625,46 +1626,46 @@ func file_douyin_proto_rawDescGZIP() []byte { var file_douyin_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_douyin_proto_goTypes = []interface{}{ - (*UUIDReq)(nil), // 0: douyin.UUIDReq - (*PageInfoReq)(nil), // 1: douyin.PageInfoReq - (*IDsReq)(nil), // 2: douyin.IDsReq - (*IDsInt32Req)(nil), // 3: douyin.IDsInt32Req - (*BaseIDInt64Resp)(nil), // 4: douyin.BaseIDInt64Resp - (*BaseIDInt32Resp)(nil), // 5: douyin.BaseIDInt32Resp + (*IDReq)(nil), // 0: douyin.IDReq + (*IDsInt32Req)(nil), // 1: douyin.IDsInt32Req + (*BaseResp)(nil), // 2: douyin.BaseResp + (*SignatureReq)(nil), // 3: douyin.SignatureReq + (*UserInfoResp)(nil), // 4: douyin.UserInfoResp + (*IDsUint32Req)(nil), // 5: douyin.IDsUint32Req (*UserInfoReq)(nil), // 6: douyin.UserInfoReq - (*IDUint32Req)(nil), // 7: douyin.IDUint32Req - (*BaseIDUint32Resp)(nil), // 8: douyin.BaseIDUint32Resp - (*BaseResp)(nil), // 9: douyin.BaseResp - (*Empty)(nil), // 10: douyin.Empty - (*IDInt32Req)(nil), // 11: douyin.IDInt32Req - (*BaseUUIDResp)(nil), // 12: douyin.BaseUUIDResp + (*IDInt32Req)(nil), // 7: douyin.IDInt32Req + (*BaseIDInt32Resp)(nil), // 8: douyin.BaseIDInt32Resp + (*IDUint32Req)(nil), // 9: douyin.IDUint32Req + (*UUIDsReq)(nil), // 10: douyin.UUIDsReq + (*PageInfoReq)(nil), // 11: douyin.PageInfoReq + (*BaseIDUint32Resp)(nil), // 12: douyin.BaseIDUint32Resp (*GetShareSchemaReq)(nil), // 13: douyin.GetShareSchemaReq (*AccessTokenReq)(nil), // 14: douyin.AccessTokenReq - (*UserInfo)(nil), // 15: douyin.UserInfo - (*UserInfoResp)(nil), // 16: douyin.UserInfoResp - (*BaseIDResp)(nil), // 17: douyin.BaseIDResp - (*IDsUint32Req)(nil), // 18: douyin.IDsUint32Req - (*IDInt64Req)(nil), // 19: douyin.IDInt64Req - (*IDsInt64Req)(nil), // 20: douyin.IDsInt64Req - (*SignatureResp)(nil), // 21: douyin.SignatureResp - (*IDReq)(nil), // 22: douyin.IDReq - (*UUIDsReq)(nil), // 23: douyin.UUIDsReq - (*GetShareSchemaResp)(nil), // 24: douyin.GetShareSchemaResp - (*SignatureReq)(nil), // 25: douyin.SignatureReq - (*AccessTokenResp)(nil), // 26: douyin.AccessTokenResp + (*AccessTokenResp)(nil), // 15: douyin.AccessTokenResp + (*IDInt64Req)(nil), // 16: douyin.IDInt64Req + (*IDsInt64Req)(nil), // 17: douyin.IDsInt64Req + (*BaseIDInt64Resp)(nil), // 18: douyin.BaseIDInt64Resp + (*UUIDReq)(nil), // 19: douyin.UUIDReq + (*SignatureResp)(nil), // 20: douyin.SignatureResp + (*Empty)(nil), // 21: douyin.Empty + (*IDsReq)(nil), // 22: douyin.IDsReq + (*BaseIDResp)(nil), // 23: douyin.BaseIDResp + (*BaseUUIDResp)(nil), // 24: douyin.BaseUUIDResp + (*GetShareSchemaResp)(nil), // 25: douyin.GetShareSchemaResp + (*UserInfo)(nil), // 26: douyin.UserInfo } var file_douyin_proto_depIdxs = []int32{ - 15, // 0: douyin.UserInfoResp.user_info:type_name -> douyin.UserInfo - 10, // 1: douyin.Douyin.initDatabase:input_type -> douyin.Empty - 25, // 2: douyin.Douyin.GetSignature:input_type -> douyin.SignatureReq + 26, // 0: douyin.UserInfoResp.user_info:type_name -> douyin.UserInfo + 21, // 1: douyin.Douyin.initDatabase:input_type -> douyin.Empty + 3, // 2: douyin.Douyin.GetSignature:input_type -> douyin.SignatureReq 13, // 3: douyin.Douyin.GetShareSchema:input_type -> douyin.GetShareSchemaReq 14, // 4: douyin.Douyin.GetAccessToken:input_type -> douyin.AccessTokenReq 6, // 5: douyin.Douyin.GetUserInfo:input_type -> douyin.UserInfoReq - 9, // 6: douyin.Douyin.initDatabase:output_type -> douyin.BaseResp - 21, // 7: douyin.Douyin.GetSignature:output_type -> douyin.SignatureResp - 24, // 8: douyin.Douyin.GetShareSchema:output_type -> douyin.GetShareSchemaResp - 26, // 9: douyin.Douyin.GetAccessToken:output_type -> douyin.AccessTokenResp - 16, // 10: douyin.Douyin.GetUserInfo:output_type -> douyin.UserInfoResp + 2, // 6: douyin.Douyin.initDatabase:output_type -> douyin.BaseResp + 20, // 7: douyin.Douyin.GetSignature:output_type -> douyin.SignatureResp + 25, // 8: douyin.Douyin.GetShareSchema:output_type -> douyin.GetShareSchemaResp + 15, // 9: douyin.Douyin.GetAccessToken:output_type -> douyin.AccessTokenResp + 4, // 10: douyin.Douyin.GetUserInfo:output_type -> douyin.UserInfoResp 6, // [6:11] is the sub-list for method output_type 1, // [1:6] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -1679,7 +1680,7 @@ func file_douyin_proto_init() { } if !protoimpl.UnsafeEnabled { file_douyin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UUIDReq); i { + switch v := v.(*IDReq); i { case 0: return &v.state case 1: @@ -1691,7 +1692,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PageInfoReq); i { + switch v := v.(*IDsInt32Req); i { case 0: return &v.state case 1: @@ -1703,7 +1704,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsReq); i { + switch v := v.(*BaseResp); i { case 0: return &v.state case 1: @@ -1715,7 +1716,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsInt32Req); i { + switch v := v.(*SignatureReq); i { case 0: return &v.state case 1: @@ -1727,7 +1728,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDInt64Resp); i { + switch v := v.(*UserInfoResp); i { case 0: return &v.state case 1: @@ -1739,7 +1740,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDInt32Resp); i { + switch v := v.(*IDsUint32Req); i { case 0: return &v.state case 1: @@ -1763,7 +1764,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDUint32Req); i { + switch v := v.(*IDInt32Req); i { case 0: return &v.state case 1: @@ -1775,7 +1776,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDUint32Resp); i { + switch v := v.(*BaseIDInt32Resp); i { case 0: return &v.state case 1: @@ -1787,7 +1788,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseResp); i { + switch v := v.(*IDUint32Req); i { case 0: return &v.state case 1: @@ -1799,7 +1800,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { + switch v := v.(*UUIDsReq); i { case 0: return &v.state case 1: @@ -1811,7 +1812,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDInt32Req); i { + switch v := v.(*PageInfoReq); i { case 0: return &v.state case 1: @@ -1823,7 +1824,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseUUIDResp); i { + switch v := v.(*BaseIDUint32Resp); i { case 0: return &v.state case 1: @@ -1859,7 +1860,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserInfo); i { + switch v := v.(*AccessTokenResp); i { case 0: return &v.state case 1: @@ -1871,7 +1872,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserInfoResp); i { + switch v := v.(*IDInt64Req); i { case 0: return &v.state case 1: @@ -1883,7 +1884,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDResp); i { + switch v := v.(*IDsInt64Req); i { case 0: return &v.state case 1: @@ -1895,7 +1896,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsUint32Req); i { + switch v := v.(*BaseIDInt64Resp); i { case 0: return &v.state case 1: @@ -1907,7 +1908,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDInt64Req); i { + switch v := v.(*UUIDReq); i { case 0: return &v.state case 1: @@ -1919,7 +1920,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsInt64Req); i { + switch v := v.(*SignatureResp); i { case 0: return &v.state case 1: @@ -1931,7 +1932,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignatureResp); i { + switch v := v.(*Empty); i { case 0: return &v.state case 1: @@ -1943,7 +1944,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDReq); i { + switch v := v.(*IDsReq); i { case 0: return &v.state case 1: @@ -1955,7 +1956,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UUIDsReq); i { + switch v := v.(*BaseIDResp); i { case 0: return &v.state case 1: @@ -1967,7 +1968,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetShareSchemaResp); i { + switch v := v.(*BaseUUIDResp); i { case 0: return &v.state case 1: @@ -1979,7 +1980,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignatureReq); i { + switch v := v.(*GetShareSchemaResp); i { case 0: return &v.state case 1: @@ -1991,7 +1992,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccessTokenResp); i { + switch v := v.(*UserInfo); i { case 0: return &v.state case 1: @@ -2003,6 +2004,7 @@ func file_douyin_proto_init() { } } } + file_douyin_proto_msgTypes[3].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{