You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

syntax = "proto3";
//在web层重新生成pb.go的方法
/*
protoc -I Business/BaseMenu/BaseMenuProto/ Business/BaseMenu/BaseMenuProto/BaseMenu.proto --go_out=plugins=grpc:Business/BaseMenu/BaseMenuProto
*/
package BaseMenuProto;
option go_package = ".;BaseMenuProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseMenu";
option objc_class_prefix = "";
service BaseMenuManage {
//获取单条
rpc GetBaseMenu (ModelArg) returns (Reply) {}
//增加
rpc AddBaseMenu (ModelArg) returns (Reply) {}
//批量删除
rpc DeleteBaseMenu (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateBaseMenu (ModelArg) returns (Reply) {}
//查询(不分页)
rpc PageBaseMenu (QueryArg) returns (Reply) {}
//设置菜单排序
rpc SetMenuSort(SetMenuSortArg) returns (Reply) {}
}
message SetMenuSortArg{
//菜单ID
string MenuId = 1;
//调整顺序的方向 1:向上 2:向下
int32 Direction = 2;
}
message ModelArg {
//菜单ID
string MenuId = 1;
//整数ID
int32 IdInt = 2;
//系统ID
string AppId = 3;
//父节点ID
string ParentId = 4;
//身份ID
int32 IdentityId = 5;
//菜单名称
string MenuName = 6;
//菜单编码
string MenuCode = 7;
//菜单的URL
string MenuUrl = 8;
//菜单图标
string MenuIcon = 9;
//排序号
int32 SortId = 10;
//是否启用 0未启用 1启用
int32 BUse = 11;
//最后更新时间戳
string LastUpdatedTime = 12;
//需要强制更新的列
repeated string ForceUpdateFields = 13;
}
// 查询参数
message QueryArg{
//系统ID
string AppId = 1;
//身份ID
int32 IdentityId = 2;
}
// 查询请求响应
message Reply{
bool Success = 1;
string Message = 2;
int32 Count = 3;
string List = 4;
}
//删除参数
message DeleteIdsArg {
//一个或多个ID
repeated string Ids = 1;
}