diff --git a/desc/douyin.proto b/desc/douyin.proto index 1b8dc60..159f29a 100644 --- a/desc/douyin.proto +++ b/desc/douyin.proto @@ -10,10 +10,27 @@ message SignatureReq { string url = 1; } - message SignatureResp { string signature = 1; string client_key = 2; + string nonce_str = 3; + int64 timestamp = 4; +} + +message GetShareSchemaReq { + string state = 6; + string image_path = 7; + string image_list_path = 8; + string video_path = 9; + string hashtag_list = 10; + string micro_app_info = 11; + string share_to_publish = 12; + string title = 13; + string poi_id = 14; +} + +message GetShareSchemaResp { + string schema = 1; } message AccessTokenReq { @@ -49,6 +66,10 @@ service Douyin { // 用于获取JSSDK调起半屏授权页方法需要的签名 rpc GetSignature(SignatureReq) returns (SignatureResp); + // group: dyApi + // 用于获取 分享Schema + rpc GetShareSchema(GetShareSchemaReq) returns (GetShareSchemaResp); + // group: dyApi // 获取抖音AccessToken rpc GetAccessToken(AccessTokenReq) returns (AccessTokenResp); diff --git a/douyin.proto b/douyin.proto index 8153798..ca1945d 100644 --- a/douyin.proto +++ b/douyin.proto @@ -3,23 +3,26 @@ syntax = "proto3"; package douyin; option go_package="./douyin"; -message BaseIDUint32Resp { - uint32 id = 1; - string msg = 2; +message UUIDReq { + string id = 1; } -message BaseUUIDResp { - string id = 1; - string msg = 2; +message PageInfoReq { + uint64 page = 1; + uint64 page_size = 2; } -message SignatureResp { - string signature = 1; - string client_key = 2; +message IDsReq { + repeated uint64 ids = 1; } -message IDReq { - uint64 id = 1; +message IDsInt32Req { + repeated int32 ids = 1; +} + +message BaseIDInt64Resp { + int64 id = 1; + string msg = 2; } message BaseIDInt32Resp { @@ -27,74 +30,109 @@ message BaseIDInt32Resp { string msg = 2; } -message BaseIDInt64Resp { - int64 id = 1; +message UserInfoReq { + string openid = 1; +} + +message IDUint32Req { + uint32 id = 1; +} + +message BaseIDUint32Resp { + uint32 id = 1; string msg = 2; } -message UUIDReq { - string id = 1; +message BaseResp { + string msg = 1; } -message IDsReq { - repeated uint64 ids = 1; +// base message +message Empty {} + +message IDInt32Req { + int32 id = 1; } -message IDsInt32Req { - repeated int32 ids = 1; +message BaseUUIDResp { + string id = 1; + string msg = 2; } -message IDsInt64Req { - repeated int64 ids = 1; +message GetShareSchemaReq { + string state = 6; + string image_path = 7; + string image_list_path = 8; + string video_path = 9; + string hashtag_list = 10; + string micro_app_info = 11; + string share_to_publish = 12; + string title = 13; + string poi_id = 14; } -message UUIDsReq { - repeated string ids = 1; +message AccessTokenReq { + string code = 1; } -message PageInfoReq { - uint64 page = 1; - uint64 page_size = 2; +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 SignatureReq { - string url = 1; +message UserInfoResp { + UserInfo user_info = 1; } -message AccessTokenResp { - string access_token = 1; +message BaseIDResp { + uint64 id = 1; + string msg = 2; } -message IDInt32Req { - int32 id = 1; +message IDsUint32Req { + repeated uint32 ids = 1; } message IDInt64Req { int64 id = 1; } -message IDUint32Req { - uint32 id = 1; +message IDsInt64Req { + repeated int64 ids = 1; } -message IDsUint32Req { - repeated uint32 ids = 1; +message SignatureResp { + string signature = 1; + string client_key = 2; + string nonce_str = 3; + int64 timestamp = 4; } -message BaseResp { - string msg = 1; +message IDReq { + uint64 id = 1; } -message AccessTokenReq { - string code = 1; +message UUIDsReq { + repeated string ids = 1; } -// base message -message Empty {} +message GetShareSchemaResp { + string schema = 1; +} -message BaseIDResp { - uint64 id = 1; - string msg = 2; +message SignatureReq { + string url = 1; +} + +message AccessTokenResp { + string access_token = 1; } service Douyin { @@ -104,7 +142,13 @@ service Douyin { // 用于获取JSSDK调起半屏授权页方法需要的签名 rpc GetSignature(SignatureReq) returns (SignatureResp); // group: dyApi + // 用于获取 分享Schema + rpc GetShareSchema(GetShareSchemaReq) returns (GetShareSchemaResp); + // group: dyApi // 获取抖音AccessToken rpc GetAccessToken(AccessTokenReq) returns (AccessTokenResp); + // group: dyApi + // 获取抖音用户信息 + rpc GetUserInfo(UserInfoReq) returns (UserInfoResp); } diff --git a/douyinclient/douyin.go b/douyinclient/douyin.go index 03ad5d7..dd8df8e 100644 --- a/douyinclient/douyin.go +++ b/douyinclient/douyin.go @@ -13,33 +13,40 @@ import ( ) type ( - AccessTokenReq = douyin.AccessTokenReq - AccessTokenResp = douyin.AccessTokenResp - BaseIDInt32Resp = douyin.BaseIDInt32Resp - BaseIDInt64Resp = douyin.BaseIDInt64Resp - BaseIDResp = douyin.BaseIDResp - BaseIDUint32Resp = douyin.BaseIDUint32Resp - BaseResp = douyin.BaseResp - BaseUUIDResp = douyin.BaseUUIDResp - Empty = douyin.Empty - IDInt32Req = douyin.IDInt32Req - IDInt64Req = douyin.IDInt64Req - IDReq = douyin.IDReq - IDUint32Req = douyin.IDUint32Req - IDsInt32Req = douyin.IDsInt32Req - IDsInt64Req = douyin.IDsInt64Req - IDsReq = douyin.IDsReq - IDsUint32Req = douyin.IDsUint32Req - PageInfoReq = douyin.PageInfoReq - SignatureReq = douyin.SignatureReq - SignatureResp = douyin.SignatureResp - UUIDReq = douyin.UUIDReq - UUIDsReq = douyin.UUIDsReq + AccessTokenReq = douyin.AccessTokenReq + AccessTokenResp = douyin.AccessTokenResp + BaseIDInt32Resp = douyin.BaseIDInt32Resp + BaseIDInt64Resp = douyin.BaseIDInt64Resp + BaseIDResp = douyin.BaseIDResp + BaseIDUint32Resp = douyin.BaseIDUint32Resp + BaseResp = douyin.BaseResp + BaseUUIDResp = douyin.BaseUUIDResp + Empty = douyin.Empty + GetShareSchemaReq = douyin.GetShareSchemaReq + GetShareSchemaResp = douyin.GetShareSchemaResp + IDInt32Req = douyin.IDInt32Req + IDInt64Req = douyin.IDInt64Req + IDReq = douyin.IDReq + IDUint32Req = douyin.IDUint32Req + IDsInt32Req = douyin.IDsInt32Req + IDsInt64Req = douyin.IDsInt64Req + IDsReq = douyin.IDsReq + IDsUint32Req = douyin.IDsUint32Req + PageInfoReq = douyin.PageInfoReq + SignatureReq = douyin.SignatureReq + SignatureResp = douyin.SignatureResp + UUIDReq = douyin.UUIDReq + UUIDsReq = douyin.UUIDsReq + UserInfo = douyin.UserInfo + UserInfoReq = douyin.UserInfoReq + UserInfoResp = douyin.UserInfoResp Douyin interface { InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error) GetSignature(ctx context.Context, in *SignatureReq, opts ...grpc.CallOption) (*SignatureResp, error) + GetShareSchema(ctx context.Context, in *GetShareSchemaReq, opts ...grpc.CallOption) (*GetShareSchemaResp, error) GetAccessToken(ctx context.Context, in *AccessTokenReq, opts ...grpc.CallOption) (*AccessTokenResp, error) + GetUserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error) } defaultDouyin struct { @@ -63,7 +70,17 @@ func (m *defaultDouyin) GetSignature(ctx context.Context, in *SignatureReq, opts return client.GetSignature(ctx, in, opts...) } +func (m *defaultDouyin) GetShareSchema(ctx context.Context, in *GetShareSchemaReq, opts ...grpc.CallOption) (*GetShareSchemaResp, error) { + client := douyin.NewDouyinClient(m.cli.Conn()) + return client.GetShareSchema(ctx, in, opts...) +} + func (m *defaultDouyin) GetAccessToken(ctx context.Context, in *AccessTokenReq, opts ...grpc.CallOption) (*AccessTokenResp, error) { client := douyin.NewDouyinClient(m.cli.Conn()) return client.GetAccessToken(ctx, in, opts...) } + +func (m *defaultDouyin) GetUserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error) { + client := douyin.NewDouyinClient(m.cli.Conn()) + return client.GetUserInfo(ctx, in, opts...) +} diff --git a/internal/logic/dyApi/get_share_schema_logic.go b/internal/logic/dyApi/get_share_schema_logic.go new file mode 100644 index 0000000..f0e3db3 --- /dev/null +++ b/internal/logic/dyApi/get_share_schema_logic.go @@ -0,0 +1,74 @@ +package dyApi + +import ( + "context" + "fmt" + "github.com/kebin6/simple-douyin-rpc/open" + "github.com/kebin6/simple-douyin-rpc/open/share" + + "github.com/kebin6/simple-douyin-rpc/internal/svc" + "github.com/kebin6/simple-douyin-rpc/types/douyin" + + "github.com/zeromicro/go-zero/core/logx" +) + +const ( + schemaUrl = "snssdk1128://openplatform/share?share_type=%s&client_key=%s&nonce_str=%s×tamp=%d&signature=%s&state=%s&image_path=%s&image_list_path=%s&video_path=%s&hashtag_list=%sµ_app_info=%s&share_to_publish=%s&title=%s&poi_id=%s" +) + +type GetShareSchemaLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewGetShareSchemaLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetShareSchemaLogic { + return &GetShareSchemaLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *GetShareSchemaLogic) GetShareSchema(in *douyin.GetShareSchemaReq) (*douyin.GetShareSchemaResp, error) { + dyCache := l.svcCtx.NewRedisCache(l.ctx, l.svcCtx.Redis) + + dyConfig := l.svcCtx.Config.DouYinConf + dyConfig.Cache = dyCache + dyApi := open.NewOpenAPI(&dyConfig) + clientToken, err := dyApi.GetClientToken() + if err != nil { + return nil, err + } + // 获取 share_id,以便后续可以获取视频发布情况 + shareId, err := share.NewDefaultShareId(clientToken, dyCache).GetShareId() + if err != nil { + return nil, err + } + // 获取签名 + signatureLogic := NewGetSignatureLogic(l.ctx, l.svcCtx) + signatureResp, err := signatureLogic.GetSignature(&douyin.SignatureReq{}) + if err != nil { + return nil, err + } + + shareType := "h5" + clientKey := dyConfig.ClientKey + noceStr := signatureResp.NonceStr + timestamp := signatureResp.Timestamp + signature := signatureResp.Signature + state := shareId + imagePath := in.ImagePath + imageListPath := in.ImageListPath + videoPath := in.VideoPath + hashtagList := in.HashtagList + microAppInfo := in.MicroAppInfo + shareToPublish := in.ShareToPublish + title := in.Title + poiId := in.PoiId + + schema := fmt.Sprintf(schemaUrl, shareType, clientKey, noceStr, timestamp, signature, state, imagePath, imageListPath, videoPath, hashtagList, microAppInfo, shareToPublish, title, poiId) + return &douyin.GetShareSchemaResp{ + Schema: schema, + }, nil +} diff --git a/internal/logic/dyApi/get_signature_logic.go b/internal/logic/dyApi/get_signature_logic.go index 0e92627..7a68586 100644 --- a/internal/logic/dyApi/get_signature_logic.go +++ b/internal/logic/dyApi/get_signature_logic.go @@ -45,18 +45,21 @@ func (l *GetSignatureLogic) GetSignature(in *douyin.SignatureReq) (*douyin.Signa l.svcCtx.Config.DouYinConf.ClientKey, "douyin_ticket", dyCache) jsTicket, err := douYinJSTicketHandler.GetTicket(clientToken) + sign, nonceStr, timestamp := l.Sign(jsTicket, in.Url) return &douyin.SignatureResp{ - Signature: l.sign(jsTicket, in.Url), + Signature: sign, + NonceStr: nonceStr, + Timestamp: timestamp, ClientKey: l.svcCtx.Config.DouYinConf.ClientKey, }, nil } -func (l *GetSignatureLogic) sign(jsapiTicket string, url string) string { - nonceStr := util.GenRandomString(16) - timestamp := time.Now().Unix() +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 进行 MD5 签名,得到 signature hash := md5.Sum([]byte(string1)) - return hex.EncodeToString(hash[:]) + return hex.EncodeToString(hash[:]), nonceStr, timestamp } diff --git a/internal/logic/dyApi/get_user_info_logic.go b/internal/logic/dyApi/get_user_info_logic.go new file mode 100644 index 0000000..1699c27 --- /dev/null +++ b/internal/logic/dyApi/get_user_info_logic.go @@ -0,0 +1,30 @@ +package dyApi + +import ( + "context" + + "github.com/kebin6/simple-douyin-rpc/internal/svc" + "github.com/kebin6/simple-douyin-rpc/types/douyin" + + "github.com/zeromicro/go-zero/core/logx" +) + +type GetUserInfoLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewGetUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserInfoLogic { + return &GetUserInfoLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *GetUserInfoLogic) GetUserInfo(in *douyin.UserInfoReq) (*douyin.UserInfoResp, error) { + // todo: add your logic here and delete this line + + return &douyin.UserInfoResp{}, nil +} diff --git a/internal/server/douyin_server.go b/internal/server/douyin_server.go index 87bde3d..72b5494 100644 --- a/internal/server/douyin_server.go +++ b/internal/server/douyin_server.go @@ -33,7 +33,17 @@ func (s *DouyinServer) GetSignature(ctx context.Context, in *douyin.SignatureReq return l.GetSignature(in) } +func (s *DouyinServer) GetShareSchema(ctx context.Context, in *douyin.GetShareSchemaReq) (*douyin.GetShareSchemaResp, error) { + l := dyApi.NewGetShareSchemaLogic(ctx, s.svcCtx) + return l.GetShareSchema(in) +} + func (s *DouyinServer) GetAccessToken(ctx context.Context, in *douyin.AccessTokenReq) (*douyin.AccessTokenResp, error) { l := dyApi.NewGetAccessTokenLogic(ctx, s.svcCtx) return l.GetAccessToken(in) } + +func (s *DouyinServer) GetUserInfo(ctx context.Context, in *douyin.UserInfoReq) (*douyin.UserInfoResp, error) { + l := dyApi.NewGetUserInfoLogic(ctx, s.svcCtx) + return l.GetUserInfo(in) +} diff --git a/open/share/default_share_id.go b/open/share/default_share_id.go new file mode 100644 index 0000000..6f3d231 --- /dev/null +++ b/open/share/default_share_id.go @@ -0,0 +1,67 @@ +package share + +import ( + "encoding/json" + "fmt" + "github.com/kebin6/simple-douyin-rpc/open/cache" + "github.com/kebin6/simple-douyin-rpc/open/util" + "sync" +) + +const ( + getShareIdURL = "https://open.douyin.com/share-id?access-token=%s" +) + +type DefaultShareId struct { + ClientToken string + cache cache.Cache + shareIdLock *sync.Mutex +} + +func NewDefaultShareId(clientToken string, cache cache.Cache) ShareIdHandle { + if cache == nil { + panic("cache is need") + } + + return &DefaultShareId{ + ClientToken: clientToken, + cache: cache, + shareIdLock: new(sync.Mutex), + } +} + +// ShareId struct. +type ShareId struct { + util.DYError + + ShareId string `json:"share_id"` +} + +type ShareIdResp struct { + Extra util.DYErrorExtra `json:"extra"` + Data ShareId `json:"data"` +} + +func (share *DefaultShareId) GetShareId() (shareIdStr string, err error) { + share.shareIdLock.Lock() + defer share.shareIdLock.Unlock() + + var response []byte + url := fmt.Sprintf(getShareIdURL, share.ClientToken) + response, err = util.HTTPGet(url) + if err != nil { + return + } + var shareIdResp ShareIdResp + err = json.Unmarshal(response, &shareIdResp) + if err != nil { + return + } + + shareIdStr = shareIdResp.Data.ShareId + if shareIdResp.Data.ErrCode != 0 { + err = util.NewCodeDouYinError("GetTicket", shareIdResp.Data.DYError, &shareIdResp.Extra) + return + } + return +} diff --git a/open/share/share_id.go b/open/share/share_id.go new file mode 100644 index 0000000..70eea84 --- /dev/null +++ b/open/share/share_id.go @@ -0,0 +1,5 @@ +package share + +type ShareIdHandle interface { + GetShareId() (shareIdStr string, err error) +} diff --git a/types/douyin/douyin.pb.go b/types/douyin/douyin.pb.go index 60eac8a..47abe38 100644 --- a/types/douyin/douyin.pb.go +++ b/types/douyin/douyin.pb.go @@ -20,17 +20,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type BaseIDUint32Resp struct { +type UUIDReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` } -func (x *BaseIDUint32Resp) Reset() { - *x = BaseIDUint32Resp{} +func (x *UUIDReq) Reset() { + *x = UUIDReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -38,13 +37,13 @@ func (x *BaseIDUint32Resp) Reset() { } } -func (x *BaseIDUint32Resp) String() string { +func (x *UUIDReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDUint32Resp) ProtoMessage() {} +func (*UUIDReq) ProtoMessage() {} -func (x *BaseIDUint32Resp) ProtoReflect() protoreflect.Message { +func (x *UUIDReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -56,36 +55,29 @@ func (x *BaseIDUint32Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDUint32Resp.ProtoReflect.Descriptor instead. -func (*BaseIDUint32Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use UUIDReq.ProtoReflect.Descriptor instead. +func (*UUIDReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{0} } -func (x *BaseIDUint32Resp) GetId() uint32 { +func (x *UUIDReq) GetId() string { if x != nil { return x.Id } - return 0 -} - -func (x *BaseIDUint32Resp) GetMsg() string { - if x != nil { - return x.Msg - } return "" } -type BaseUUIDResp struct { +type PageInfoReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` + 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 *BaseUUIDResp) Reset() { - *x = BaseUUIDResp{} +func (x *PageInfoReq) Reset() { + *x = PageInfoReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -93,13 +85,13 @@ func (x *BaseUUIDResp) Reset() { } } -func (x *BaseUUIDResp) String() string { +func (x *PageInfoReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseUUIDResp) ProtoMessage() {} +func (*PageInfoReq) ProtoMessage() {} -func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message { +func (x *PageInfoReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -111,36 +103,35 @@ func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseUUIDResp.ProtoReflect.Descriptor instead. -func (*BaseUUIDResp) Descriptor() ([]byte, []int) { +// Deprecated: Use PageInfoReq.ProtoReflect.Descriptor instead. +func (*PageInfoReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{1} } -func (x *BaseUUIDResp) GetId() string { +func (x *PageInfoReq) GetPage() uint64 { if x != nil { - return x.Id + return x.Page } - return "" + return 0 } -func (x *BaseUUIDResp) GetMsg() string { +func (x *PageInfoReq) GetPageSize() uint64 { if x != nil { - return x.Msg + return x.PageSize } - return "" + return 0 } -type SignatureResp struct { +type IDsReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature"` - ClientKey string `protobuf:"bytes,2,opt,name=client_key,json=clientKey,proto3" json:"client_key"` + Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *SignatureResp) Reset() { - *x = SignatureResp{} +func (x *IDsReq) Reset() { + *x = IDsReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -148,13 +139,13 @@ func (x *SignatureResp) Reset() { } } -func (x *SignatureResp) String() string { +func (x *IDsReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignatureResp) ProtoMessage() {} +func (*IDsReq) ProtoMessage() {} -func (x *SignatureResp) ProtoReflect() protoreflect.Message { +func (x *IDsReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -166,35 +157,28 @@ func (x *SignatureResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignatureResp.ProtoReflect.Descriptor instead. -func (*SignatureResp) Descriptor() ([]byte, []int) { +// Deprecated: Use IDsReq.ProtoReflect.Descriptor instead. +func (*IDsReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{2} } -func (x *SignatureResp) GetSignature() string { - if x != nil { - return x.Signature - } - return "" -} - -func (x *SignatureResp) GetClientKey() string { +func (x *IDsReq) GetIds() []uint64 { if x != nil { - return x.ClientKey + return x.Ids } - return "" + return nil } -type IDReq struct { +type IDsInt32Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *IDReq) Reset() { - *x = IDReq{} +func (x *IDsInt32Req) Reset() { + *x = IDsInt32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -202,13 +186,13 @@ func (x *IDReq) Reset() { } } -func (x *IDReq) String() string { +func (x *IDsInt32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDReq) ProtoMessage() {} +func (*IDsInt32Req) ProtoMessage() {} -func (x *IDReq) ProtoReflect() protoreflect.Message { +func (x *IDsInt32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -220,29 +204,29 @@ func (x *IDReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDReq.ProtoReflect.Descriptor instead. -func (*IDReq) Descriptor() ([]byte, []int) { +// Deprecated: Use IDsInt32Req.ProtoReflect.Descriptor instead. +func (*IDsInt32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{3} } -func (x *IDReq) GetId() uint64 { +func (x *IDsInt32Req) GetIds() []int32 { if x != nil { - return x.Id + return x.Ids } - return 0 + return nil } -type BaseIDInt32Resp struct { +type BaseIDInt64Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *BaseIDInt32Resp) Reset() { - *x = BaseIDInt32Resp{} +func (x *BaseIDInt64Resp) Reset() { + *x = BaseIDInt64Resp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -250,13 +234,13 @@ func (x *BaseIDInt32Resp) Reset() { } } -func (x *BaseIDInt32Resp) String() string { +func (x *BaseIDInt64Resp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDInt32Resp) ProtoMessage() {} +func (*BaseIDInt64Resp) ProtoMessage() {} -func (x *BaseIDInt32Resp) ProtoReflect() protoreflect.Message { +func (x *BaseIDInt64Resp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -268,36 +252,36 @@ func (x *BaseIDInt32Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDInt32Resp.ProtoReflect.Descriptor instead. -func (*BaseIDInt32Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDInt64Resp.ProtoReflect.Descriptor instead. +func (*BaseIDInt64Resp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{4} } -func (x *BaseIDInt32Resp) GetId() int32 { +func (x *BaseIDInt64Resp) GetId() int64 { if x != nil { return x.Id } return 0 } -func (x *BaseIDInt32Resp) GetMsg() string { +func (x *BaseIDInt64Resp) GetMsg() string { if x != nil { return x.Msg } return "" } -type BaseIDInt64Resp struct { +type BaseIDInt32Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `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 *BaseIDInt64Resp) Reset() { - *x = BaseIDInt64Resp{} +func (x *BaseIDInt32Resp) Reset() { + *x = BaseIDInt32Resp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -305,13 +289,13 @@ func (x *BaseIDInt64Resp) Reset() { } } -func (x *BaseIDInt64Resp) String() string { +func (x *BaseIDInt32Resp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDInt64Resp) ProtoMessage() {} +func (*BaseIDInt32Resp) ProtoMessage() {} -func (x *BaseIDInt64Resp) ProtoReflect() protoreflect.Message { +func (x *BaseIDInt32Resp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -323,35 +307,35 @@ func (x *BaseIDInt64Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDInt64Resp.ProtoReflect.Descriptor instead. -func (*BaseIDInt64Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDInt32Resp.ProtoReflect.Descriptor instead. +func (*BaseIDInt32Resp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{5} } -func (x *BaseIDInt64Resp) GetId() int64 { +func (x *BaseIDInt32Resp) GetId() int32 { if x != nil { return x.Id } return 0 } -func (x *BaseIDInt64Resp) GetMsg() string { +func (x *BaseIDInt32Resp) GetMsg() string { if x != nil { return x.Msg } return "" } -type UUIDReq struct { +type UserInfoReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Openid string `protobuf:"bytes,1,opt,name=openid,proto3" json:"openid"` } -func (x *UUIDReq) Reset() { - *x = UUIDReq{} +func (x *UserInfoReq) Reset() { + *x = UserInfoReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -359,13 +343,13 @@ func (x *UUIDReq) Reset() { } } -func (x *UUIDReq) String() string { +func (x *UserInfoReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UUIDReq) ProtoMessage() {} +func (*UserInfoReq) ProtoMessage() {} -func (x *UUIDReq) ProtoReflect() protoreflect.Message { +func (x *UserInfoReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -377,28 +361,28 @@ func (x *UUIDReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UUIDReq.ProtoReflect.Descriptor instead. -func (*UUIDReq) Descriptor() ([]byte, []int) { +// Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead. +func (*UserInfoReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{6} } -func (x *UUIDReq) GetId() string { +func (x *UserInfoReq) GetOpenid() string { if x != nil { - return x.Id + return x.Openid } return "" } -type IDsReq struct { +type IDUint32Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *IDsReq) Reset() { - *x = IDsReq{} +func (x *IDUint32Req) Reset() { + *x = IDUint32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -406,13 +390,13 @@ func (x *IDsReq) Reset() { } } -func (x *IDsReq) String() string { +func (x *IDUint32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsReq) ProtoMessage() {} +func (*IDUint32Req) ProtoMessage() {} -func (x *IDsReq) ProtoReflect() protoreflect.Message { +func (x *IDUint32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -424,28 +408,29 @@ func (x *IDsReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsReq.ProtoReflect.Descriptor instead. -func (*IDsReq) Descriptor() ([]byte, []int) { +// Deprecated: Use IDUint32Req.ProtoReflect.Descriptor instead. +func (*IDUint32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{7} } -func (x *IDsReq) GetIds() []uint64 { +func (x *IDUint32Req) GetId() uint32 { if x != nil { - return x.Ids + return x.Id } - return nil + return 0 } -type IDsInt32Req struct { +type BaseIDUint32Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *IDsInt32Req) Reset() { - *x = IDsInt32Req{} +func (x *BaseIDUint32Resp) Reset() { + *x = BaseIDUint32Resp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -453,13 +438,13 @@ func (x *IDsInt32Req) Reset() { } } -func (x *IDsInt32Req) String() string { +func (x *BaseIDUint32Resp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsInt32Req) ProtoMessage() {} +func (*BaseIDUint32Resp) ProtoMessage() {} -func (x *IDsInt32Req) ProtoReflect() protoreflect.Message { +func (x *BaseIDUint32Resp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -471,28 +456,35 @@ func (x *IDsInt32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsInt32Req.ProtoReflect.Descriptor instead. -func (*IDsInt32Req) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseIDUint32Resp.ProtoReflect.Descriptor instead. +func (*BaseIDUint32Resp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{8} } -func (x *IDsInt32Req) GetIds() []int32 { +func (x *BaseIDUint32Resp) GetId() uint32 { if x != nil { - return x.Ids + return x.Id } - return nil + return 0 } -type IDsInt64Req struct { +func (x *BaseIDUint32Resp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type BaseResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` } -func (x *IDsInt64Req) Reset() { - *x = IDsInt64Req{} +func (x *BaseResp) Reset() { + *x = BaseResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -500,13 +492,13 @@ func (x *IDsInt64Req) Reset() { } } -func (x *IDsInt64Req) String() string { +func (x *BaseResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsInt64Req) ProtoMessage() {} +func (*BaseResp) ProtoMessage() {} -func (x *IDsInt64Req) ProtoReflect() protoreflect.Message { +func (x *BaseResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -518,28 +510,27 @@ func (x *IDsInt64Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsInt64Req.ProtoReflect.Descriptor instead. -func (*IDsInt64Req) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseResp.ProtoReflect.Descriptor instead. +func (*BaseResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{9} } -func (x *IDsInt64Req) GetIds() []int64 { +func (x *BaseResp) GetMsg() string { if x != nil { - return x.Ids + return x.Msg } - return nil + return "" } -type UUIDsReq struct { +// base message +type Empty struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids"` } -func (x *UUIDsReq) Reset() { - *x = UUIDsReq{} +func (x *Empty) Reset() { + *x = Empty{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -547,13 +538,13 @@ func (x *UUIDsReq) Reset() { } } -func (x *UUIDsReq) String() string { +func (x *Empty) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UUIDsReq) ProtoMessage() {} +func (*Empty) ProtoMessage() {} -func (x *UUIDsReq) ProtoReflect() protoreflect.Message { +func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -565,29 +556,21 @@ func (x *UUIDsReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UUIDsReq.ProtoReflect.Descriptor instead. -func (*UUIDsReq) Descriptor() ([]byte, []int) { +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{10} } -func (x *UUIDsReq) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -type PageInfoReq struct { +type IDInt32Req 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"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *PageInfoReq) Reset() { - *x = PageInfoReq{} +func (x *IDInt32Req) Reset() { + *x = IDInt32Req{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -595,13 +578,13 @@ func (x *PageInfoReq) Reset() { } } -func (x *PageInfoReq) String() string { +func (x *IDInt32Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PageInfoReq) ProtoMessage() {} +func (*IDInt32Req) ProtoMessage() {} -func (x *PageInfoReq) ProtoReflect() protoreflect.Message { +func (x *IDInt32Req) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -613,35 +596,29 @@ func (x *PageInfoReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PageInfoReq.ProtoReflect.Descriptor instead. -func (*PageInfoReq) Descriptor() ([]byte, []int) { +// Deprecated: Use IDInt32Req.ProtoReflect.Descriptor instead. +func (*IDInt32Req) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{11} } -func (x *PageInfoReq) GetPage() uint64 { - if x != nil { - return x.Page - } - return 0 -} - -func (x *PageInfoReq) GetPageSize() uint64 { +func (x *IDInt32Req) GetId() int32 { if x != nil { - return x.PageSize + return x.Id } return 0 } -type SignatureReq struct { +type BaseUUIDResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } -func (x *SignatureReq) Reset() { - *x = SignatureReq{} +func (x *BaseUUIDResp) Reset() { + *x = BaseUUIDResp{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -649,13 +626,13 @@ func (x *SignatureReq) Reset() { } } -func (x *SignatureReq) String() string { +func (x *BaseUUIDResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignatureReq) ProtoMessage() {} +func (*BaseUUIDResp) ProtoMessage() {} -func (x *SignatureReq) ProtoReflect() protoreflect.Message { +func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -667,28 +644,43 @@ func (x *SignatureReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignatureReq.ProtoReflect.Descriptor instead. -func (*SignatureReq) Descriptor() ([]byte, []int) { +// Deprecated: Use BaseUUIDResp.ProtoReflect.Descriptor instead. +func (*BaseUUIDResp) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{12} } -func (x *SignatureReq) GetUrl() string { +func (x *BaseUUIDResp) GetId() string { if x != nil { - return x.Url + return x.Id } return "" } -type AccessTokenResp struct { +func (x *BaseUUIDResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type GetShareSchemaReq 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"` + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state"` + ImagePath string `protobuf:"bytes,7,opt,name=image_path,json=imagePath,proto3" json:"image_path"` + ImageListPath string `protobuf:"bytes,8,opt,name=image_list_path,json=imageListPath,proto3" json:"image_list_path"` + VideoPath string `protobuf:"bytes,9,opt,name=video_path,json=videoPath,proto3" json:"video_path"` + HashtagList string `protobuf:"bytes,10,opt,name=hashtag_list,json=hashtagList,proto3" json:"hashtag_list"` + MicroAppInfo string `protobuf:"bytes,11,opt,name=micro_app_info,json=microAppInfo,proto3" json:"micro_app_info"` + ShareToPublish string `protobuf:"bytes,12,opt,name=share_to_publish,json=shareToPublish,proto3" json:"share_to_publish"` + Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title"` + PoiId string `protobuf:"bytes,14,opt,name=poi_id,json=poiId,proto3" json:"poi_id"` } -func (x *AccessTokenResp) Reset() { - *x = AccessTokenResp{} +func (x *GetShareSchemaReq) Reset() { + *x = GetShareSchemaReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -696,13 +688,13 @@ func (x *AccessTokenResp) Reset() { } } -func (x *AccessTokenResp) String() string { +func (x *GetShareSchemaReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccessTokenResp) ProtoMessage() {} +func (*GetShareSchemaReq) ProtoMessage() {} -func (x *AccessTokenResp) ProtoReflect() protoreflect.Message { +func (x *GetShareSchemaReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -714,28 +706,84 @@ func (x *AccessTokenResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccessTokenResp.ProtoReflect.Descriptor instead. -func (*AccessTokenResp) Descriptor() ([]byte, []int) { +// Deprecated: Use GetShareSchemaReq.ProtoReflect.Descriptor instead. +func (*GetShareSchemaReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{13} } -func (x *AccessTokenResp) GetAccessToken() string { +func (x *GetShareSchemaReq) GetState() string { if x != nil { - return x.AccessToken + return x.State } return "" } -type IDInt32Req struct { +func (x *GetShareSchemaReq) GetImagePath() string { + if x != nil { + return x.ImagePath + } + return "" +} + +func (x *GetShareSchemaReq) GetImageListPath() string { + if x != nil { + return x.ImageListPath + } + return "" +} + +func (x *GetShareSchemaReq) GetVideoPath() string { + if x != nil { + return x.VideoPath + } + return "" +} + +func (x *GetShareSchemaReq) GetHashtagList() string { + if x != nil { + return x.HashtagList + } + return "" +} + +func (x *GetShareSchemaReq) GetMicroAppInfo() string { + if x != nil { + return x.MicroAppInfo + } + return "" +} + +func (x *GetShareSchemaReq) GetShareToPublish() string { + if x != nil { + return x.ShareToPublish + } + return "" +} + +func (x *GetShareSchemaReq) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *GetShareSchemaReq) GetPoiId() string { + if x != nil { + return x.PoiId + } + return "" +} + +type AccessTokenReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"` } -func (x *IDInt32Req) Reset() { - *x = IDInt32Req{} +func (x *AccessTokenReq) Reset() { + *x = AccessTokenReq{} if protoimpl.UnsafeEnabled { mi := &file_douyin_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -743,13 +791,13 @@ func (x *IDInt32Req) Reset() { } } -func (x *IDInt32Req) String() string { +func (x *AccessTokenReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDInt32Req) ProtoMessage() {} +func (*AccessTokenReq) ProtoMessage() {} -func (x *IDInt32Req) ProtoReflect() protoreflect.Message { +func (x *AccessTokenReq) ProtoReflect() protoreflect.Message { mi := &file_douyin_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -761,18 +809,278 @@ func (x *IDInt32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDInt32Req.ProtoReflect.Descriptor instead. -func (*IDInt32Req) Descriptor() ([]byte, []int) { +// Deprecated: Use AccessTokenReq.ProtoReflect.Descriptor instead. +func (*AccessTokenReq) Descriptor() ([]byte, []int) { return file_douyin_proto_rawDescGZIP(), []int{14} } -func (x *IDInt32Req) GetId() int32 { +func (x *AccessTokenReq) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +type UserInfo 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"` +} + +func (x *UserInfo) Reset() { + *x = UserInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_douyin_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfo) ProtoMessage() {} + +func (x *UserInfo) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[15] + 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) +} + +// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead. +func (*UserInfo) 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 { + if x != nil { + return x.UnionId + } + return "" +} + +type UserInfoResp 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"` +} + +func (x *UserInfoResp) Reset() { + *x = UserInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_douyin_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfoResp) ProtoMessage() {} + +func (x *UserInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[16] + 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) +} + +// Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead. +func (*UserInfoResp) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{16} +} + +func (x *UserInfoResp) GetUserInfo() *UserInfo { + if x != nil { + return x.UserInfo + } + return nil +} + +type BaseIDResp 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"` +} + +func (x *BaseIDResp) Reset() { + *x = BaseIDResp{} + if protoimpl.UnsafeEnabled { + mi := &file_douyin_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BaseIDResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BaseIDResp) ProtoMessage() {} + +func (x *BaseIDResp) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[17] + 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) +} + +// Deprecated: Use BaseIDResp.ProtoReflect.Descriptor instead. +func (*BaseIDResp) 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 { + if x != nil { + return x.Msg + } + return "" +} + +type IDsUint32Req struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` +} + +func (x *IDsUint32Req) Reset() { + *x = IDsUint32Req{} + if protoimpl.UnsafeEnabled { + mi := &file_douyin_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IDsUint32Req) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IDsUint32Req) ProtoMessage() {} + +func (x *IDsUint32Req) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[18] + 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) +} + +// Deprecated: Use IDsUint32Req.ProtoReflect.Descriptor instead. +func (*IDsUint32Req) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{18} +} + +func (x *IDsUint32Req) GetIds() []uint32 { + if x != nil { + return x.Ids + } + return nil +} + type IDInt64Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -784,7 +1092,7 @@ type IDInt64Req struct { func (x *IDInt64Req) Reset() { *x = IDInt64Req{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[15] + mi := &file_douyin_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -797,7 +1105,7 @@ func (x *IDInt64Req) String() string { func (*IDInt64Req) ProtoMessage() {} func (x *IDInt64Req) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[15] + mi := &file_douyin_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -810,7 +1118,7 @@ func (x *IDInt64Req) ProtoReflect() protoreflect.Message { // Deprecated: Use IDInt64Req.ProtoReflect.Descriptor instead. func (*IDInt64Req) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{15} + return file_douyin_proto_rawDescGZIP(), []int{19} } func (x *IDInt64Req) GetId() int64 { @@ -820,31 +1128,81 @@ func (x *IDInt64Req) GetId() int64 { return 0 } -type IDUint32Req struct { +type IDsInt64Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` } -func (x *IDUint32Req) Reset() { - *x = IDUint32Req{} +func (x *IDsInt64Req) Reset() { + *x = IDsInt64Req{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[16] + mi := &file_douyin_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDUint32Req) String() string { +func (x *IDsInt64Req) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDUint32Req) ProtoMessage() {} +func (*IDsInt64Req) ProtoMessage() {} + +func (x *IDsInt64Req) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[20] + 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) +} + +// Deprecated: Use IDsInt64Req.ProtoReflect.Descriptor instead. +func (*IDsInt64Req) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{20} +} + +func (x *IDsInt64Req) GetIds() []int64 { + if x != nil { + return x.Ids + } + return nil +} + +type SignatureResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature"` + ClientKey string `protobuf:"bytes,2,opt,name=client_key,json=clientKey,proto3" json:"client_key"` + NonceStr string `protobuf:"bytes,3,opt,name=nonce_str,json=nonceStr,proto3" json:"nonce_str"` + Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp"` +} + +func (x *SignatureResp) Reset() { + *x = SignatureResp{} + if protoimpl.UnsafeEnabled { + mi := &file_douyin_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignatureResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignatureResp) ProtoMessage() {} -func (x *IDUint32Req) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[16] +func (x *SignatureResp) 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 { @@ -855,43 +1213,64 @@ func (x *IDUint32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDUint32Req.ProtoReflect.Descriptor instead. -func (*IDUint32Req) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{16} +// Deprecated: Use SignatureResp.ProtoReflect.Descriptor instead. +func (*SignatureResp) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{21} } -func (x *IDUint32Req) GetId() uint32 { +func (x *SignatureResp) GetSignature() string { if x != nil { - return x.Id + return x.Signature + } + return "" +} + +func (x *SignatureResp) GetClientKey() string { + if x != nil { + return x.ClientKey + } + return "" +} + +func (x *SignatureResp) GetNonceStr() string { + if x != nil { + return x.NonceStr + } + return "" +} + +func (x *SignatureResp) GetTimestamp() int64 { + if x != nil { + return x.Timestamp } return 0 } -type IDsUint32Req struct { +type IDReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` } -func (x *IDsUint32Req) Reset() { - *x = IDsUint32Req{} +func (x *IDReq) Reset() { + *x = IDReq{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[17] + mi := &file_douyin_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDsUint32Req) String() string { +func (x *IDReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IDsUint32Req) ProtoMessage() {} +func (*IDReq) ProtoMessage() {} -func (x *IDsUint32Req) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[17] +func (x *IDReq) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -902,43 +1281,43 @@ func (x *IDsUint32Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDsUint32Req.ProtoReflect.Descriptor instead. -func (*IDsUint32Req) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{17} +// Deprecated: Use IDReq.ProtoReflect.Descriptor instead. +func (*IDReq) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{22} } -func (x *IDsUint32Req) GetIds() []uint32 { +func (x *IDReq) GetId() uint64 { if x != nil { - return x.Ids + return x.Id } - return nil + return 0 } -type BaseResp struct { +type UUIDsReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids"` } -func (x *BaseResp) Reset() { - *x = BaseResp{} +func (x *UUIDsReq) Reset() { + *x = UUIDsReq{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[18] + mi := &file_douyin_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *BaseResp) String() string { +func (x *UUIDsReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseResp) ProtoMessage() {} +func (*UUIDsReq) ProtoMessage() {} -func (x *BaseResp) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[18] +func (x *UUIDsReq) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -949,43 +1328,43 @@ func (x *BaseResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseResp.ProtoReflect.Descriptor instead. -func (*BaseResp) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{18} +// Deprecated: Use UUIDsReq.ProtoReflect.Descriptor instead. +func (*UUIDsReq) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{23} } -func (x *BaseResp) GetMsg() string { +func (x *UUIDsReq) GetIds() []string { if x != nil { - return x.Msg + return x.Ids } - return "" + return nil } -type AccessTokenReq struct { +type GetShareSchemaResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"` + Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema"` } -func (x *AccessTokenReq) Reset() { - *x = AccessTokenReq{} +func (x *GetShareSchemaResp) Reset() { + *x = GetShareSchemaResp{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[19] + mi := &file_douyin_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AccessTokenReq) String() string { +func (x *GetShareSchemaResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccessTokenReq) ProtoMessage() {} +func (*GetShareSchemaResp) ProtoMessage() {} -func (x *AccessTokenReq) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[19] +func (x *GetShareSchemaResp) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -996,42 +1375,43 @@ func (x *AccessTokenReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccessTokenReq.ProtoReflect.Descriptor instead. -func (*AccessTokenReq) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{19} +// Deprecated: Use GetShareSchemaResp.ProtoReflect.Descriptor instead. +func (*GetShareSchemaResp) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{24} } -func (x *AccessTokenReq) GetCode() string { +func (x *GetShareSchemaResp) GetSchema() string { if x != nil { - return x.Code + return x.Schema } return "" } -// base message -type Empty struct { +type SignatureReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url"` } -func (x *Empty) Reset() { - *x = Empty{} +func (x *SignatureReq) Reset() { + *x = SignatureReq{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[20] + mi := &file_douyin_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Empty) String() string { +func (x *SignatureReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Empty) ProtoMessage() {} +func (*SignatureReq) ProtoMessage() {} -func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[20] +func (x *SignatureReq) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1042,37 +1422,43 @@ func (x *Empty) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{20} +// Deprecated: Use SignatureReq.ProtoReflect.Descriptor instead. +func (*SignatureReq) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{25} } -type BaseIDResp struct { +func (x *SignatureReq) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +type AccessTokenResp 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"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"` } -func (x *BaseIDResp) Reset() { - *x = BaseIDResp{} +func (x *AccessTokenResp) Reset() { + *x = AccessTokenResp{} if protoimpl.UnsafeEnabled { - mi := &file_douyin_proto_msgTypes[21] + mi := &file_douyin_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *BaseIDResp) String() string { +func (x *AccessTokenResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BaseIDResp) ProtoMessage() {} +func (*AccessTokenResp) ProtoMessage() {} -func (x *BaseIDResp) ProtoReflect() protoreflect.Message { - mi := &file_douyin_proto_msgTypes[21] +func (x *AccessTokenResp) ProtoReflect() protoreflect.Message { + mi := &file_douyin_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1083,21 +1469,14 @@ func (x *BaseIDResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BaseIDResp.ProtoReflect.Descriptor instead. -func (*BaseIDResp) Descriptor() ([]byte, []int) { - return file_douyin_proto_rawDescGZIP(), []int{21} -} - -func (x *BaseIDResp) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 +// Deprecated: Use AccessTokenResp.ProtoReflect.Descriptor instead. +func (*AccessTokenResp) Descriptor() ([]byte, []int) { + return file_douyin_proto_rawDescGZIP(), []int{26} } -func (x *BaseIDResp) GetMsg() string { +func (x *AccessTokenResp) GetAccessToken() string { if x != nil { - return x.Msg + return x.AccessToken } return "" } @@ -1106,74 +1485,130 @@ 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, 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, 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, 0x4c, - 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, 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, 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, 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, + 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, + 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, + 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, + 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, + 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1d, + 0x0a, 0x0a, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, + 0x0c, 0x68, 0x61, 0x73, 0x68, 0x74, 0x61, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x68, 0x74, 0x61, 0x67, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x41, + 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, + 0x74, 0x6f, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x54, 0x6f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x69, 0x5f, 0x69, 0x64, + 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, - 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, - 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 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, 0x32, 0xb9, 0x01, 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, 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, + 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, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 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 ( @@ -1188,43 +1623,53 @@ func file_douyin_proto_rawDescGZIP() []byte { return file_douyin_proto_rawDescData } -var file_douyin_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_douyin_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_douyin_proto_goTypes = []interface{}{ - (*BaseIDUint32Resp)(nil), // 0: douyin.BaseIDUint32Resp - (*BaseUUIDResp)(nil), // 1: douyin.BaseUUIDResp - (*SignatureResp)(nil), // 2: douyin.SignatureResp - (*IDReq)(nil), // 3: douyin.IDReq - (*BaseIDInt32Resp)(nil), // 4: douyin.BaseIDInt32Resp - (*BaseIDInt64Resp)(nil), // 5: douyin.BaseIDInt64Resp - (*UUIDReq)(nil), // 6: douyin.UUIDReq - (*IDsReq)(nil), // 7: douyin.IDsReq - (*IDsInt32Req)(nil), // 8: douyin.IDsInt32Req - (*IDsInt64Req)(nil), // 9: douyin.IDsInt64Req - (*UUIDsReq)(nil), // 10: douyin.UUIDsReq - (*PageInfoReq)(nil), // 11: douyin.PageInfoReq - (*SignatureReq)(nil), // 12: douyin.SignatureReq - (*AccessTokenResp)(nil), // 13: douyin.AccessTokenResp - (*IDInt32Req)(nil), // 14: douyin.IDInt32Req - (*IDInt64Req)(nil), // 15: douyin.IDInt64Req - (*IDUint32Req)(nil), // 16: douyin.IDUint32Req - (*IDsUint32Req)(nil), // 17: douyin.IDsUint32Req - (*BaseResp)(nil), // 18: douyin.BaseResp - (*AccessTokenReq)(nil), // 19: douyin.AccessTokenReq - (*Empty)(nil), // 20: douyin.Empty - (*BaseIDResp)(nil), // 21: douyin.BaseIDResp + (*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 + (*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 + (*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 } var file_douyin_proto_depIdxs = []int32{ - 20, // 0: douyin.Douyin.initDatabase:input_type -> douyin.Empty - 12, // 1: douyin.Douyin.GetSignature:input_type -> douyin.SignatureReq - 19, // 2: douyin.Douyin.GetAccessToken:input_type -> douyin.AccessTokenReq - 18, // 3: douyin.Douyin.initDatabase:output_type -> douyin.BaseResp - 2, // 4: douyin.Douyin.GetSignature:output_type -> douyin.SignatureResp - 13, // 5: douyin.Douyin.GetAccessToken:output_type -> douyin.AccessTokenResp - 3, // [3:6] is the sub-list for method output_type - 0, // [0:3] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name + 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 + 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 + 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 + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_douyin_proto_init() } @@ -1234,7 +1679,7 @@ func file_douyin_proto_init() { } if !protoimpl.UnsafeEnabled { file_douyin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDUint32Resp); i { + switch v := v.(*UUIDReq); i { case 0: return &v.state case 1: @@ -1246,7 +1691,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseUUIDResp); i { + switch v := v.(*PageInfoReq); i { case 0: return &v.state case 1: @@ -1258,7 +1703,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignatureResp); i { + switch v := v.(*IDsReq); i { case 0: return &v.state case 1: @@ -1270,7 +1715,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDReq); i { + switch v := v.(*IDsInt32Req); i { case 0: return &v.state case 1: @@ -1282,7 +1727,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDInt32Resp); i { + switch v := v.(*BaseIDInt64Resp); i { case 0: return &v.state case 1: @@ -1294,7 +1739,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDInt64Resp); i { + switch v := v.(*BaseIDInt32Resp); i { case 0: return &v.state case 1: @@ -1306,7 +1751,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UUIDReq); i { + switch v := v.(*UserInfoReq); i { case 0: return &v.state case 1: @@ -1318,7 +1763,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsReq); i { + switch v := v.(*IDUint32Req); i { case 0: return &v.state case 1: @@ -1330,7 +1775,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsInt32Req); i { + switch v := v.(*BaseIDUint32Resp); i { case 0: return &v.state case 1: @@ -1342,7 +1787,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsInt64Req); i { + switch v := v.(*BaseResp); i { case 0: return &v.state case 1: @@ -1354,7 +1799,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UUIDsReq); i { + switch v := v.(*Empty); i { case 0: return &v.state case 1: @@ -1366,7 +1811,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PageInfoReq); i { + switch v := v.(*IDInt32Req); i { case 0: return &v.state case 1: @@ -1378,7 +1823,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignatureReq); i { + switch v := v.(*BaseUUIDResp); i { case 0: return &v.state case 1: @@ -1390,7 +1835,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccessTokenResp); i { + switch v := v.(*GetShareSchemaReq); i { case 0: return &v.state case 1: @@ -1402,7 +1847,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDInt32Req); i { + switch v := v.(*AccessTokenReq); i { case 0: return &v.state case 1: @@ -1414,7 +1859,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDInt64Req); i { + switch v := v.(*UserInfo); i { case 0: return &v.state case 1: @@ -1426,7 +1871,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDUint32Req); i { + switch v := v.(*UserInfoResp); i { case 0: return &v.state case 1: @@ -1438,7 +1883,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDsUint32Req); i { + switch v := v.(*BaseIDResp); i { case 0: return &v.state case 1: @@ -1450,7 +1895,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseResp); i { + switch v := v.(*IDsUint32Req); i { case 0: return &v.state case 1: @@ -1462,7 +1907,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccessTokenReq); i { + switch v := v.(*IDInt64Req); i { case 0: return &v.state case 1: @@ -1474,7 +1919,7 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { + switch v := v.(*IDsInt64Req); i { case 0: return &v.state case 1: @@ -1486,7 +1931,67 @@ func file_douyin_proto_init() { } } file_douyin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseIDResp); i { + switch v := v.(*SignatureResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_douyin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_douyin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UUIDsReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_douyin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetShareSchemaResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_douyin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignatureReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_douyin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccessTokenResp); i { case 0: return &v.state case 1: @@ -1504,7 +2009,7 @@ func file_douyin_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_douyin_proto_rawDesc, NumEnums: 0, - NumMessages: 22, + NumMessages: 27, NumExtensions: 0, NumServices: 1, }, diff --git a/types/douyin/douyin_grpc.pb.go b/types/douyin/douyin_grpc.pb.go index 920ff14..9d0d05a 100644 --- a/types/douyin/douyin_grpc.pb.go +++ b/types/douyin/douyin_grpc.pb.go @@ -28,8 +28,14 @@ type DouyinClient interface { // 用于获取JSSDK调起半屏授权页方法需要的签名 GetSignature(ctx context.Context, in *SignatureReq, opts ...grpc.CallOption) (*SignatureResp, error) // group: dyApi + // 用于获取 分享Schema + GetShareSchema(ctx context.Context, in *GetShareSchemaReq, opts ...grpc.CallOption) (*GetShareSchemaResp, error) + // group: dyApi // 获取抖音AccessToken GetAccessToken(ctx context.Context, in *AccessTokenReq, opts ...grpc.CallOption) (*AccessTokenResp, error) + // group: dyApi + // 获取抖音用户信息 + GetUserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error) } type douyinClient struct { @@ -58,6 +64,15 @@ func (c *douyinClient) GetSignature(ctx context.Context, in *SignatureReq, opts return out, nil } +func (c *douyinClient) GetShareSchema(ctx context.Context, in *GetShareSchemaReq, opts ...grpc.CallOption) (*GetShareSchemaResp, error) { + out := new(GetShareSchemaResp) + err := c.cc.Invoke(ctx, "/douyin.Douyin/GetShareSchema", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *douyinClient) GetAccessToken(ctx context.Context, in *AccessTokenReq, opts ...grpc.CallOption) (*AccessTokenResp, error) { out := new(AccessTokenResp) err := c.cc.Invoke(ctx, "/douyin.Douyin/GetAccessToken", in, out, opts...) @@ -67,6 +82,15 @@ func (c *douyinClient) GetAccessToken(ctx context.Context, in *AccessTokenReq, o return out, nil } +func (c *douyinClient) GetUserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error) { + out := new(UserInfoResp) + err := c.cc.Invoke(ctx, "/douyin.Douyin/GetUserInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // DouyinServer is the server API for Douyin service. // All implementations must embed UnimplementedDouyinServer // for forward compatibility @@ -77,8 +101,14 @@ type DouyinServer interface { // 用于获取JSSDK调起半屏授权页方法需要的签名 GetSignature(context.Context, *SignatureReq) (*SignatureResp, error) // group: dyApi + // 用于获取 分享Schema + GetShareSchema(context.Context, *GetShareSchemaReq) (*GetShareSchemaResp, error) + // group: dyApi // 获取抖音AccessToken GetAccessToken(context.Context, *AccessTokenReq) (*AccessTokenResp, error) + // group: dyApi + // 获取抖音用户信息 + GetUserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error) mustEmbedUnimplementedDouyinServer() } @@ -92,9 +122,15 @@ func (UnimplementedDouyinServer) InitDatabase(context.Context, *Empty) (*BaseRes func (UnimplementedDouyinServer) GetSignature(context.Context, *SignatureReq) (*SignatureResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSignature not implemented") } +func (UnimplementedDouyinServer) GetShareSchema(context.Context, *GetShareSchemaReq) (*GetShareSchemaResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetShareSchema not implemented") +} func (UnimplementedDouyinServer) GetAccessToken(context.Context, *AccessTokenReq) (*AccessTokenResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccessToken not implemented") } +func (UnimplementedDouyinServer) GetUserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") +} func (UnimplementedDouyinServer) mustEmbedUnimplementedDouyinServer() {} // UnsafeDouyinServer may be embedded to opt out of forward compatibility for this service. @@ -144,6 +180,24 @@ func _Douyin_GetSignature_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } +func _Douyin_GetShareSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetShareSchemaReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DouyinServer).GetShareSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/douyin.Douyin/GetShareSchema", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DouyinServer).GetShareSchema(ctx, req.(*GetShareSchemaReq)) + } + return interceptor(ctx, in, info, handler) +} + func _Douyin_GetAccessToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AccessTokenReq) if err := dec(in); err != nil { @@ -162,6 +216,24 @@ func _Douyin_GetAccessToken_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _Douyin_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DouyinServer).GetUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/douyin.Douyin/GetUserInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DouyinServer).GetUserInfo(ctx, req.(*UserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + // Douyin_ServiceDesc is the grpc.ServiceDesc for Douyin service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -177,10 +249,18 @@ var Douyin_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetSignature", Handler: _Douyin_GetSignature_Handler, }, + { + MethodName: "GetShareSchema", + Handler: _Douyin_GetShareSchema_Handler, + }, { MethodName: "GetAccessToken", Handler: _Douyin_GetAccessToken_Handler, }, + { + MethodName: "GetUserInfo", + Handler: _Douyin_GetUserInfo_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "douyin.proto",