All checks were successful
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/douyin_ecpm_calculation_service/Dockerfile, douyin_ecpm_calculation_service, douyin_ecpm_calculation_service) (push) Successful in 38s
Auth & User Management Service CI / build-services (app/ranking_management/Dockerfile, ranking_management, ranking_management) (push) Successful in 42s
Auth & User Management Service CI / start-services (push) Successful in 9s
Auth & User Management Service CI / build-services (app/user_management/Dockerfile, user_manager, user_management) (push) Successful in 41s
45 lines
727 B
Protocol Buffer
45 lines
727 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package auth_service;
|
|
option go_package = "./auth_service";
|
|
|
|
message Request {
|
|
string ping = 1;
|
|
}
|
|
|
|
message Response {
|
|
string pong = 1;
|
|
}
|
|
|
|
message Code2SessionRequest{
|
|
string AppId = 1;
|
|
string Code = 2;
|
|
string AnonymousCode = 3;
|
|
}
|
|
|
|
message Code2SessionResponse{
|
|
string OpenId = 1;
|
|
string UnionId = 2;
|
|
uint64 UserId = 3;
|
|
uint32 AppId = 4;
|
|
bool IsNew = 5;
|
|
}
|
|
|
|
message GetAccessTokenRequest{
|
|
string AppId = 1;
|
|
}
|
|
|
|
message GetAccessTokenResponse{
|
|
string AccessToken = 1;
|
|
}
|
|
|
|
|
|
|
|
service auth_service {
|
|
rpc Ping(Request) returns(Response);
|
|
|
|
rpc Code2Session(Code2SessionRequest) returns(Code2SessionResponse);
|
|
|
|
rpc GetAccessToken(GetAccessTokenRequest) returns(GetAccessTokenResponse);
|
|
}
|