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.
70 lines
1.5 KiB
70 lines
1.5 KiB
syntax = "proto3";
|
|
|
|
//在web层重新生成pb.go的方法
|
|
/*
|
|
protoc -I Business/DwTableField/DwTableFieldProto/ Business/DwTableField/DwTableFieldProto/DwTableField.proto --go_out=plugins=grpc:Business/DwTableField/DwTableFieldProto
|
|
*/
|
|
package DwTableFieldProto;
|
|
|
|
option go_package = ".;DwTableFieldProto";
|
|
|
|
option java_multiple_files = true;
|
|
option java_package = "com.dsideal.dsmin.base";
|
|
option java_outer_classname = "DwTableField";
|
|
option objc_class_prefix = "";
|
|
|
|
service DwTableFieldManage {
|
|
//获取单条
|
|
rpc GetDwTableField (ModelArg) returns (Reply) {}
|
|
//增加
|
|
rpc AddDwTableField (ModelArg) returns (Reply) {}
|
|
//批量删除
|
|
rpc DeleteDwTableField (DeleteIdsArg) returns (Reply) {}
|
|
//修改
|
|
rpc UpdateDwTableField (ModelArg) returns (Reply) {}
|
|
//查询(分页)
|
|
rpc PageDwTableField (QueryArg) returns (Reply) {}
|
|
}
|
|
|
|
message ModelArg {
|
|
//
|
|
int32 Id = 1;
|
|
//哪张表
|
|
int32 TableId = 2;
|
|
//字段名称
|
|
string FieldName = 3;
|
|
//数据类型
|
|
string DataType = 4;
|
|
//字段长度
|
|
int32 FieldLength = 5;
|
|
//小数点后长度
|
|
int32 DecimalPointLength = 6;
|
|
//描述
|
|
string Comment = 7;
|
|
//是否为主键
|
|
int32 IsPk = 8;
|
|
//排序号
|
|
int32 SortId = 9;
|
|
//需要强制更新的列
|
|
repeated string ForceUpdateFields = 10;
|
|
}
|
|
|
|
// 查询参数
|
|
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;
|
|
}
|