user_subscribe.proto 1.0 KB

syntax = "proto3";

option go_package ="./pb";

package pb;

message UserSubscribeGetReq {
   int64 Id = 1;
}
message UserSubscribeGetResp{
    UserSubscribeItem User = 1;
}

message UserSubscribeSaveReq {

}
message UserSubscribeSaveResp{

}

message UserSubscribeDeleteReq {
  int64 Id = 1;
}
message UserSubscribeDeleteResp{

}

message UserSubscribeUpdateReq {
  int64 Id = 1;
}
message UserSubscribeUpdateResp{

}

message UserSubscribeSearchReq {
  int64 PageNumber = 1;
  int64 PageSize = 2;
}
message UserSubscribeSearchResp{
  repeated UserSubscribeItem List =1;
  int64  Total =2;
}
message UserSubscribeItem {

}

service UserSubscribeService {
  rpc UserSubscribeGet(UserSubscribeGetReq) returns(UserSubscribeGetResp);
  rpc UserSubscribeSave(UserSubscribeSaveReq) returns(UserSubscribeSaveResp);
  rpc UserSubscribeDelete(UserSubscribeDeleteReq) returns(UserSubscribeDeleteResp);
  rpc UserSubscribeUpdate(UserSubscribeUpdateReq) returns(UserSubscribeUpdateResp);
  rpc UserSubscribeSearch(UserSubscribeSearchReq) returns(UserSubscribeSearchResp);
}