syntax = "proto3";



package com.ywt.gapi.base.idCard;

option java_multiple_files = true;
option java_package = "com.ywt.gapi.base.idCard";
option java_outer_classname = "BaseIdCardProto";

message ValidateIdCardRequest {
    string idCardNo = 1;
    string realName = 2;
}

message ValidateIdCardResponse {
    int32 code = 1;
    string info = 2;
    bool valid = 3;
}

service IdCardService {
    // 校验身份证
    rpc validateIdCard(ValidateIdCardRequest) returns (ValidateIdCardResponse);
}