All checks were successful
Auth & User Management Service CI / build-services (app/douyin_ecpm_calculation_service/Dockerfile, douyin_ecpm_calculation_service, douyin_ecpm_calculation_service) (push) Successful in 36s
Auth & User Management Service CI / build-services (app/ranking_management/Dockerfile, ranking_management, ranking_management) (push) Successful in 41s
Auth & User Management Service CI / build-services (app/auth_service/Dockerfile, auth_service, auth_service) (push) Successful in 41s
Auth & User Management Service CI / build-services (app/user_management/Dockerfile, user_manager, user_management) (push) Successful in 38s
Auth & User Management Service CI / start-services (push) Successful in 5s
更新用户id为Sonyflake 添加gitea actions(ci/cd) 配置文件读取方式改为从ETCD读取 修改go module名称与gitea一致
55 lines
1.8 KiB
Go
55 lines
1.8 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.7.6
|
|
// Source: auth_service.proto
|
|
|
|
package auth_service_client
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/auth_service/auth_service"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
Code2SessionRequest = auth_service.Code2SessionRequest
|
|
Code2SessionResponse = auth_service.Code2SessionResponse
|
|
GetAccessTokenRequest = auth_service.GetAccessTokenRequest
|
|
GetAccessTokenResponse = auth_service.GetAccessTokenResponse
|
|
Request = auth_service.Request
|
|
Response = auth_service.Response
|
|
|
|
AuthService interface {
|
|
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
|
Code2Session(ctx context.Context, in *Code2SessionRequest, opts ...grpc.CallOption) (*Code2SessionResponse, error)
|
|
GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*GetAccessTokenResponse, error)
|
|
}
|
|
|
|
defaultAuthService struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewAuthService(cli zrpc.Client) AuthService {
|
|
return &defaultAuthService{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultAuthService) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
client := auth_service.NewAuthServiceClient(m.cli.Conn())
|
|
return client.Ping(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultAuthService) Code2Session(ctx context.Context, in *Code2SessionRequest, opts ...grpc.CallOption) (*Code2SessionResponse, error) {
|
|
client := auth_service.NewAuthServiceClient(m.cli.Conn())
|
|
return client.Code2Session(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultAuthService) GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*GetAccessTokenResponse, error) {
|
|
client := auth_service.NewAuthServiceClient(m.cli.Conn())
|
|
return client.GetAccessToken(ctx, in, opts...)
|
|
}
|