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/DataexMetadata/DataexMetadataProto/ Business/DataexMetadata/DataexMetadataProto/DataexMetadata.proto --go_out=plugins=grpc:Business/DataexMetadata/DataexMetadataProto
*/
package DataexMetadataProto ;
option go_package = ".;DataexMetadataProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "DataexMetadata" ;
option objc_class_prefix = "" ;
service DataexMetadataManage {
//获取单条
rpc GetDataexMetadata ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddDataexMetadata ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteDataexMetadata ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateDataexMetadata ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageDataexMetadata ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//ID
string Id = 1 ;
//数据源ID
string DatasourceId = 2 ;
//数据项名称【英文】
string ItemName = 3 ;
//数据字典ID
string DicId = 4 ;
//数据项类型
【 1 : 整 数 、 2 : 浮 点 、 3 : 字 符 、 4 : 布 尔 、 5 : 日 期 、 6 : 时 间 、 7 : 日 期 + 时 间 】
string ItemType = 5 ;
//数据最大长度【UTF-8 字符长度】
int32 ItemLength = 6 ;
//数据项模式
string ItemPattern = 7 ;
//数据项说明
string ItemInfo = 8 ;
//是否检测名称【1: 是, -1: 否】
int32 CheckName = 9 ;
//是否检测字典
int32 CheckDic = 10 ;
//是否检测类型
int32 CheckType = 11 ;
//是否检测模式
int32 CheckPattern = 12 ;
//是否检测必填
int32 CheckExist = 13 ;
//建立时间
string CreateTime = 14 ;
//最近修改时间
string ChangeTime = 15 ;
//删除时间
string DeleteTime = 16 ;
//删除标志【默认-1, 1: 删除, -1: 正常】
int32 DeleteFlag = 17 ;
//启用标志【默认1, 1: 启用, -1: 禁用】
int32 EnableFlag = 18 ;
//需要强制更新的列
repeated string ForceUpdateFields = 19 ;
}
// 查询参数
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 ;
}