bilibili-API-collect icon indicating copy to clipboard operation
bilibili-API-collect copied to clipboard

Proto文件有格式错误

Open zly2006 opened this issue 1 year ago • 2 comments

Error: Field number 1 has already been used in "bilibili.app.view.v1.GetUserReq" by field "aid".

Path: bilibili-API-collect/grpc_api/bilibili/app/view/v1/view.proto

//
message GetUserReq {
    //
    int64 aid = 1;
    //
    int64 up_mid = 1;
}

zly2006 avatar Feb 07 '24 12:02 zly2006

这块的 proto 有很大变动(7.67), 相关接口还没有正式投入使用吧还是原来就弄错了? 正常来说上线的接口出于兼容性不会改的.

//
message GetUserReq {
    //
    repeated int64 mids = 1;
    //
    int64 aid = 2;
    // 
    int64 up_mid = 3;
    //
    bool only_fans = 4;
}

//
message GetUserReply {
    // 
    repeated User like_list = 1;
    // 
    string title = 2;
}

PR Welcome

cxw620 avatar Feb 07 '24 13:02 cxw620

这块的 proto 有很大变动(7.67), 相关接口还没有正式投入使用吧还是原来就弄错了? 正常来说上线的接口出于兼容性不会改的.

//
message GetUserReq {
    //
    repeated int64 mids = 1;
    //
    int64 aid = 2;
    // 
    int64 up_mid = 3;
    //
    bool only_fans = 4;
}

//
message GetUserReply {
    // 
    repeated User like_list = 1;
    // 
    string title = 2;
}

PR Welcome

你这个是正确的 我之前copy好像copy错了 直接pr吧

stmtc233 avatar Feb 07 '24 13:02 stmtc233