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.

127 lines
3.0 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/SysDict/SysDictProto/ Business/SysDict/SysDictProto/SysDict.proto --go_out=plugins=grpc:Business/SysDict/SysDictProto
*/
package SysDictProto;
option go_package = ".;SysDictProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "SysDict";
option objc_class_prefix = "";
service SysDictManage {
//获取单条
rpc GetSysDict (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageSysDict (QueryArg) returns (Reply) {}
//根据多个dict_code获取字典信息
rpc PageSysDictMultipleDictCode (MultipleQueryArg) returns (Reply) {}
//获取学段信息列表
rpc GetStage (ModelArg) returns (Reply) {}
//根据学段ID获取学科信息列表
rpc GetSubject (GetSubjectArg) returns (Reply) {}
//根据多个dict_kind获取字典信息
rpc GetMultipleDict (GetMultipleDictArg) returns (Reply) {}
//根据多个学段ID获取学段名称
rpc GetStageName (GetStageNameArg) returns (Reply) {}
//根据多个学科ID获取学科名称
rpc GetSubjectName (GetSubjectNameArg) returns (Reply) {}
}
message GetStageNameArg {
//多个学段ID
repeated string StageId = 1;
//操作人
string ActionPersonId = 2;
//操作IP
string ActionIpAddress = 3;
}
message GetSubjectNameArg{
//多个学科ID
repeated string SubjectId = 1;
//操作人
string ActionPersonId = 2;
//操作IP
string ActionIpAddress = 3;
}
message GetMultipleDictArg{
//多个dict_kind
repeated string MultipleDictKind = 1;
//操作人
string ActionPersonId = 2;
//操作IP
string ActionIpAddress = 3;
}
message GetSubjectArg {
//学段ID
string StageId = 1;
//操作人
string ActionPersonId = 2;
//操作IP
string ActionIpAddress = 3;
}
message MultipleQueryArg{
//字典分类
string DictKind = 1;
repeated string MultipleDictCode = 2;
//操作人
string ActionPersonId = 3;
//操作IP
string ActionIpAddress = 4;
}
message ModelArg {
//主键ID
int32 DictId = 1;
//字典分类
string DictKind = 2;
//字典编码
string DictCode = 3;
//字典值
string DictValue = 4;
//字典备注
string DictRemark = 5;
//上级字典ID
string DictParent = 6;
//排序
int32 SortId = 7;
//是否启用 0未启用 1启用
int32 BUse = 8;
//需要强制更新的列
repeated string ForceUpdateFields = 9;
//操作人
string ActionPersonId = 10;
//操作IP
string ActionIpAddress = 11;
}
// 查询参数
message QueryArg{
int32 Page = 1;
int32 Limit = 2;
//字典分类
string DictKind = 3;
//上级字典ID
string DictParent = 4;
//操作人
string ActionPersonId = 5;
//操作IP
string ActionIpAddress = 6;
}
// 查询请求响应
message Reply{
bool Success = 1;
string Message = 2;
int32 Count = 3;
string List = 4;
}