chat_dataset.proto 1013 字节

syntax = "proto3";

option go_package ="./pb";

package pb;

message ChatDatasetGetReq {
   int64 Id = 1;
}
message ChatDatasetGetResp{
    ChatDatasetItem ChatDataset = 1;
}

message ChatDatasetSaveReq {

}
message ChatDatasetSaveResp{

}

message ChatDatasetDeleteReq {
  int64 Id = 1;
}
message ChatDatasetDeleteResp{

}

message ChatDatasetUpdateReq {
  int64 Id = 1;
}
message ChatDatasetUpdateResp{

}

message ChatDatasetSearchReq {
  int64 PageNumber = 1;
  int64 PageSize = 2;
}
message ChatDatasetSearchResp{
  repeated ChatDatasetItem List =1;
  int64  Total =2;
}
message ChatDatasetItem {

}

service ChatDatasetService {
  rpc ChatDatasetGet(ChatDatasetGetReq) returns(ChatDatasetGetResp);
  rpc ChatDatasetSave(ChatDatasetSaveReq) returns(ChatDatasetSaveResp);
  rpc ChatDatasetDelete(ChatDatasetDeleteReq) returns(ChatDatasetDeleteResp);
  rpc ChatDatasetUpdate(ChatDatasetUpdateReq) returns(ChatDatasetUpdateResp);
  rpc ChatDatasetSearch(ChatDatasetSearchReq) returns(ChatDatasetSearchResp);
}