chatapp-gateway/api/proto/gateway.proto
2026-04-04 01:28:57 +08:00

57 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package chatappgateway.gateway.v1;
option go_package = "chatappgateway/api/proto;gatewaypb";
service ChatAppUser {
rpc Login(LoginRequest) returns (LoginResponse);
}
service ChatAppPay {
rpc QueryOrder(QueryOrderRequest) returns (QueryOrderResponse);
}
message LoginRequest {
string login_type = 1;
string account = 2;
string password = 3;
string country_code = 4;
string verify_code = 5;
string provider = 6;
string provider_token = 7;
string device_id = 8;
string platform = 9;
string app_version = 10;
}
message UserProfile {
string user_id = 1;
string nickname = 2;
string avatar_url = 3;
}
message LoginResponse {
string user_id = 1;
string access_token = 2;
string refresh_token = 3;
int64 expires_in = 4;
bool is_new_user = 5;
UserProfile profile = 6;
}
message QueryOrderRequest {
string order_no = 1;
}
message QueryOrderResponse {
string order_no = 1;
string user_id = 2;
string status = 3;
string amount = 4;
string currency = 5;
string subject = 6;
string pay_method = 7;
string paid_at = 8;
}