123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- syntax = "proto3";
- package bxcol;
- option go_package = "./bxcol";
- message AddlabelReq {
- string userId = 1;
- string name = 2;
- }
- message AddlabelRes {
- int64 err_code = 1;
- string err_msg = 2;
- string labid = 3;
- }
- message GetLabelActionReq {
- string userId = 1;
- }
- message GetLabelActionRes {
- int64 err_code = 1;
- string err_msg = 2;
- repeated LabelByUser labels = 3;
- }
- message LabelByUser{
- string lid = 1;
- string lname = 2;
- int64 lcount = 3;
- }
- message LabelActionReq {
- string userId = 1;
- string lids = 2;
- string lname = 3;
- repeated string binfo = 4;
- string laction = 5;
- }
- message LabelActionRes {
- int64 err_code = 1;
- string err_msg = 2;
- bool status = 3;
- }
- message BCActionReq {
- string userId = 1;
- repeated string bids = 2;
- string baction = 3;
- }
- message IsCollActionReq {
- string userId = 1;
- string bids = 2;
- string label = 3;
- }
- message IsCollActionRes {
- int64 err_code = 1;
- string err_msg = 2;
- bool iscoll = 3;
- repeated Labels labels = 4;
- repeated string bids = 5;
- }
- message Labels {
- string id = 1;
- string labelname = 2;
- }
- message ListReq {
- string userId = 1;
- string bids = 2;
- string selectTime = 3;
- string buyerclass = 4;
- int64 pagenum = 5;
- int64 buyerPhone = 6;
- int64 winnerPhone = 7;
- int64 pagesize = 8;
- }
- message ListRes {
- int64 err_code = 1;
- string err_msg = 2;
- ColList ldata = 3;
- }
- message ColList {
- int64 count = 1;
- bool haveNextPage = 2;
- repeated ColData res = 3;
- }
- message ColData {
- string id = 1;
- string title = 2;
- string area = 3;
- string buyerclass = 4;
- string type = 5;
- string s_subscopeclass = 6;
- int64 publishtime = 7;
- string budget = 8;
- string bidamount = 9;
- string buyer = 10;
- string s_winner = 11;
- int64 bidopentime = 12;
- }
- //公共返回
- message CommonRes {
- int64 err_code = 1;
- string err_msg = 2;
- }
- //servie
- service bxcol {
- //新增标签
- rpc Addlabel(AddlabelReq) returns(AddlabelRes);
- //获取标签
- rpc GetLabelAction(GetLabelActionReq) returns(GetLabelActionRes);
- //标签新增或删除
- rpc LabelAction(LabelActionReq) returns(LabelActionRes);
- //招标信息收藏
- rpc BCAction(BCActionReq) returns(LabelActionRes);
- //招标信息是否被收藏
- rpc IsCollAction(IsCollActionReq) returns(IsCollActionRes);
- //获取收藏列表
- rpc List(ListReq) returns(ListRes);
- }
|