syntax = "proto3"; package chatapp.common.v1; option go_package = "gitea.haiyihy.com/hy/chatappcommon/proto;commonpb"; service ChatAppUserService { rpc Register(RegisterRequest) returns (RegisterResponse); } service ChatAppPayService { rpc Pay(PayRequest) returns (PayResponse); } message RegisterRequest { string account = 1; string password = 2; string country_code = 3; string verify_code = 4; string nickname = 5; string device_id = 6; string platform = 7; string app_version = 8; } message UserProfile { string user_id = 1; string nickname = 2; string avatar_url = 3; } message RegisterResponse { string user_id = 1; string access_token = 2; bool is_new_user = 3; UserProfile profile = 4; } message PayRequest { string order_no = 1; string user_id = 2; string amount = 3; string currency = 4; string pay_method = 5; string subject = 6; } message PayResponse { string payment_id = 1; string order_no = 2; string user_id = 3; string status = 4; string amount = 5; string currency = 6; string pay_method = 7; string subject = 8; string created_at = 9; }