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/DataexDatasource/DataexDatasourceProto/ Business/DataexDatasource/DataexDatasourceProto/DataexDatasource.proto --go_out=plugins=grpc:Business/DataexDatasource/DataexDatasourceProto
*/
package DataexDatasourceProto ;
option go_package = ".;DataexDatasourceProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "DataexDatasource" ;
option objc_class_prefix = "" ;
service DataexDatasourceManage {
//获取单条
rpc GetDataexDatasource ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddDataexDatasource ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteDataexDatasource ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateDataexDatasource ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageDataexDatasource ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//数据源ID
string Id = 1 ;
//数据提供系统ID【外键】
string SystemId = 2 ;
//数据源名称
string DatasourceName = 3 ;
//数据源编码
string DatasourceCode = 4 ;
//数据源说明
string DatasourceDetail = 5 ;
//可修改【1: 是, -1: 否】
int32 SetFlag = 6 ;
//可汇集【1: 是, -1: 否】
int32 CollectFlag = 7 ;
//提供数据范围【1: 本机构, 2: 本机构以及下属机构, -1: 不限制】
int32 ProvideType = 8 ;
//提供数据机构ID【-1: 默认根机构】
string ProvideOrgid = 9 ;
//数据存储类型【1: DB, 2: ES, 3: Kafka】
int32 DatastoreType = 10 ;
//数据字典ID
string DicId = 11 ;
//建立时间
string CreateTime = 12 ;
//最近修改时间
string ChangeTime = 13 ;
//删除时间
string DeleteTime = 14 ;
//删除标志【默认-1, 1: 删除, -1: 正常】
int32 DeleteFlag = 15 ;
//启用标志【默认1, 1: 启用, -1: 禁用】
int32 EnableFlag = 16 ;
//需要强制更新的列
repeated string ForceUpdateFields = 17 ;
}
// 查询参数
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 ;
}