message_business.proto 1.1 KB

syntax = "proto3";

option go_package ="./pb";

package pb;

message MessageBusinessGetReq {
   int64 Id = 1;
}
message MessageBusinessGetResp{
    MessageBusinessItem User = 1;
}

message MessageBusinessSaveReq {

}
message MessageBusinessSaveResp{

}

message MessageBusinessDeleteReq {
  int64 Id = 1;
}
message MessageBusinessDeleteResp{

}

message MessageBusinessUpdateReq {
  int64 Id = 1;
}
message MessageBusinessUpdateResp{

}

message MessageBusinessSearchReq {
  int64 PageNumber = 1;
  int64 PageSize = 2;
}
message MessageBusinessSearchResp{
  repeated MessageBusinessItem List =1;
  int64  Total =2;
}
message MessageBusinessItem {

}

service MessageBusinessService {
  rpc MessageBusinessGet(MessageBusinessGetReq) returns(MessageBusinessGetResp);
  rpc MessageBusinessSave(MessageBusinessSaveReq) returns(MessageBusinessSaveResp);
  rpc MessageBusinessDelete(MessageBusinessDeleteReq) returns(MessageBusinessDeleteResp);
  rpc MessageBusinessUpdate(MessageBusinessUpdateReq) returns(MessageBusinessUpdateResp);
  rpc MessageBusinessSearch(MessageBusinessSearchReq) returns(MessageBusinessSearchResp);
}