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.

80 lines
2.1 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/DataexLinksystem/DataexLinksystemProto/ Business/DataexLinksystem/DataexLinksystemProto/DataexLinksystem.proto --go_out=plugins=grpc:Business/DataexLinksystem/DataexLinksystemProto
*/
package DataexLinksystemProto;
option go_package = ".;DataexLinksystemProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "DataexLinksystem";
option objc_class_prefix = "";
service DataexLinksystemManage {
//获取单条
rpc GetDataexLinksystem (ModelArg) returns (Reply) {}
//增加
rpc AddDataexLinksystem (ModelArg) returns (Reply) {}
//批量删除
rpc DeleteDataexLinksystem (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateDataexLinksystem (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageDataexLinksystem (QueryArg) returns (Reply) {}
}
message ModelArg {
//系统ID
string Id = 1;
//系统名称
string SystemName = 2;
//系统编码【可读的缩写平台内统一使用code】
string SystemCode = 3;
//系统类型【1基础数据、2管理平台、3资源平台、4学科工具】
int32 SystemType = 4;
//系统密钥【必须保密】
string SystemKey = 5;
//数据汇集标志【默认-11启动汇集-1关闭汇集】
int32 CollectFlag = 6;
//厂商名称
string ProviderName = 7;
//系统鉴权时间
string AuthTime = 8;
//系统鉴权票据
string AuthToken = 9;
//建立时间
string CreateTime = 10;
//最近修改时间
string ChangeTime = 11;
//删除时间
string DeleteTime = 12;
//删除标志【默认-11删除-1正常】
int32 DeleteFlag = 13;
//启用标志【默认11启用-1禁用】
int32 EnableFlag = 14;
//需要强制更新的列
repeated string ForceUpdateFields = 15;
}
// 查询参数
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;
}