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.
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/DataexJyt2012/DataexJyt2012Proto/ Business/DataexJyt2012/DataexJyt2012Proto/DataexJyt2012.proto --go_out=plugins=grpc:Business/DataexJyt2012/DataexJyt2012Proto
*/
package DataexJyt2012Proto ;
option go_package = ".;DataexJyt2012Proto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "DataexJyt2012" ;
option objc_class_prefix = "" ;
service DataexJyt2012Manage {
//获取单条
rpc GetDataexJyt2012 ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddDataexJyt2012 ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteDataexJyt2012 ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateDataexJyt2012 ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageDataexJyt2012 ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//ID
string Id = 1 ;
//字典/字典项名称
string DicName = 2 ;
//
string DicValue = 3 ;
//字典类型【1: 国标数据、关联数据源, 2: 国标字典、关联元数据】
int32 DicType = 4 ;
//字典相信说明
string DicInfo = 5 ;
//是否是字典【1: 是, -1: 否】
int32 RootFlag = 6 ;
//是否国标【1: 是, -1: 自定义】
int32 JytFlag = 7 ;
//字典ID【字典项父节点】
string ParentId = 8 ;
//建立时间
string CreateTime = 9 ;
//最近修改时间
string ChangeTime = 10 ;
//删除时间
string DeleteTime = 11 ;
//删除标志【默认-1, 1: 删除, -1: 正常】
int32 DeleteFlag = 12 ;
//启用标志【默认1, 1: 启用, -1: 禁用】
int32 EnableFlag = 13 ;
//需要强制更新的列
repeated string ForceUpdateFields = 14 ;
}
// 查询参数
message QueryArg {
int32 Page = 1 ;
int32 Limit = 2 ;
}
// 查询请求响应
message Reply {
bool Success = 1 ;
string Message = 2 ;
int32 Count = 3 ;
string List = 4 ;
}
//删除参数
message DeleteIdsArg {
//一个或多个ID
repeated string Ids = 1 ;
}