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/DataexData/DataexDataProto/ Business/DataexData/DataexDataProto/DataexData.proto --go_out=plugins=grpc:Business/DataexData/DataexDataProto
*/
package DataexDataProto ;
option go_package = ".;DataexDataProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "DataexData" ;
option objc_class_prefix = "" ;
service DataexDataManage {
//获取单条
rpc GetDataexData ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddDataexData ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteDataexData ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateDataexData ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageDataexData ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//ID
string Id = 1 ;
//数据提供系统ID【输入参数】
string SystemId = 2 ;
//数据源ID【输入参数】
string DatasourceId = 3 ;
//省编码【GBT2260】
string ProvinceId = 4 ;
//省
string ProvinceName = 5 ;
//地市编码【GBT2260】
string CityId = 6 ;
//地市
string CityName = 7 ;
//县区编码【GBT2260】
string AreaId = 8 ;
//县区
string AreaName = 9 ;
//教育局ID
string BureauId = 10 ;
//大学区ID
string RegionId = 11 ;
//主校ID
string MainId = 12 ;
//数据机构ID【输入参数】
string OrgId = 13 ;
//机构名称
string OrgName = 14 ;
//机构类型
int32 OrgType = 15 ;
//部门ID
string DeptId = 16 ;
//学段ID
string StageId = 17 ;
//年级ID
string GradeId = 18 ;
//班级ID
string ClassId = 19 ;
//数据ID【输入参数】
string DataId = 20 ;
//数据内容【Json格式输入参数】
string DataContent = 21 ;
//文件地址【文件交换】
string FileUri = 22 ;
//数据有效开始时间
string BeginTime = 23 ;
//数据有效结束时间【默认 9999-01-01 00:00:00】
string EndTime = 24 ;
//删除标志【默认-1, 1: 删除, -1: 正常, 输入参数】
int32 DelFlag = 25 ;
//有效标志【默认1, 1: 有效, -1: 无效数据】
int32 EnableFlag = 26 ;
//需要强制更新的列
repeated string ForceUpdateFields = 27 ;
}
// 查询参数
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 ;
}