sys_role.proto 893 字节

syntax = "proto3";

option go_package ="./pb";

package pb;

message SysRoleGetReq {
   int64 Id = 1;
}
message SysRoleGetResp{
    SysRoleItem SysRole = 1;
}

message SysRoleSaveReq {

}
message SysRoleSaveResp{

}

message SysRoleDeleteReq {
  int64 Id = 1;
}
message SysRoleDeleteResp{

}

message SysRoleUpdateReq {
  int64 Id = 1;
}
message SysRoleUpdateResp{

}

message SysRoleSearchReq {
  int64 PageNumber = 1;
  int64 PageSize = 2;
}
message SysRoleSearchResp{
  repeated SysRoleItem List =1;
  int64  Total =2;
}
message SysRoleItem {

}

service SysRoleService {
  rpc SysRoleGet(SysRoleGetReq) returns(SysRoleGetResp);
  rpc SysRoleSave(SysRoleSaveReq) returns(SysRoleSaveResp);
  rpc SysRoleDelete(SysRoleDeleteReq) returns(SysRoleDeleteResp);
  rpc SysRoleUpdate(SysRoleUpdateReq) returns(SysRoleUpdateResp);
  rpc SysRoleSearch(SysRoleSearchReq) returns(SysRoleSearchResp);
}