|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// protoc-gen-go v1.21.0
|
|
|
// protoc v3.11.4
|
|
|
// source: DataexData.proto
|
|
|
|
|
|
//在web层重新生成pb.go的方法
|
|
|
|
|
|
//
|
|
|
//protoc -I Business/DataexData/DataexDataProto/ Business/DataexData/DataexDataProto/DataexData.proto --go_out=plugins=grpc:Business/DataexData/DataexDataProto
|
|
|
|
|
|
package DataexDataProto
|
|
|
|
|
|
import (
|
|
|
context "context"
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
status "google.golang.org/grpc/status"
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
reflect "reflect"
|
|
|
sync "sync"
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
// of the legacy proto package is being used.
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
type ModelArg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
//ID
|
|
|
Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
|
|
|
//数据提供系统ID【输入参数】
|
|
|
SystemId string `protobuf:"bytes,2,opt,name=SystemId,proto3" json:"SystemId,omitempty"`
|
|
|
//数据源ID【输入参数】
|
|
|
DatasourceId string `protobuf:"bytes,3,opt,name=DatasourceId,proto3" json:"DatasourceId,omitempty"`
|
|
|
//省编码【GBT2260】
|
|
|
ProvinceId string `protobuf:"bytes,4,opt,name=ProvinceId,proto3" json:"ProvinceId,omitempty"`
|
|
|
//省
|
|
|
ProvinceName string `protobuf:"bytes,5,opt,name=ProvinceName,proto3" json:"ProvinceName,omitempty"`
|
|
|
//地市编码【GBT2260】
|
|
|
CityId string `protobuf:"bytes,6,opt,name=CityId,proto3" json:"CityId,omitempty"`
|
|
|
//地市
|
|
|
CityName string `protobuf:"bytes,7,opt,name=CityName,proto3" json:"CityName,omitempty"`
|
|
|
//县区编码【GBT2260】
|
|
|
AreaId string `protobuf:"bytes,8,opt,name=AreaId,proto3" json:"AreaId,omitempty"`
|
|
|
//县区
|
|
|
AreaName string `protobuf:"bytes,9,opt,name=AreaName,proto3" json:"AreaName,omitempty"`
|
|
|
//教育局ID
|
|
|
BureauId string `protobuf:"bytes,10,opt,name=BureauId,proto3" json:"BureauId,omitempty"`
|
|
|
//大学区ID
|
|
|
RegionId string `protobuf:"bytes,11,opt,name=RegionId,proto3" json:"RegionId,omitempty"`
|
|
|
//主校ID
|
|
|
MainId string `protobuf:"bytes,12,opt,name=MainId,proto3" json:"MainId,omitempty"`
|
|
|
//数据机构ID【输入参数】
|
|
|
OrgId string `protobuf:"bytes,13,opt,name=OrgId,proto3" json:"OrgId,omitempty"`
|
|
|
//机构名称
|
|
|
OrgName string `protobuf:"bytes,14,opt,name=OrgName,proto3" json:"OrgName,omitempty"`
|
|
|
//机构类型
|
|
|
OrgType int32 `protobuf:"varint,15,opt,name=OrgType,proto3" json:"OrgType,omitempty"`
|
|
|
//部门ID
|
|
|
DeptId string `protobuf:"bytes,16,opt,name=DeptId,proto3" json:"DeptId,omitempty"`
|
|
|
//学段ID
|
|
|
StageId string `protobuf:"bytes,17,opt,name=StageId,proto3" json:"StageId,omitempty"`
|
|
|
//年级ID
|
|
|
GradeId string `protobuf:"bytes,18,opt,name=GradeId,proto3" json:"GradeId,omitempty"`
|
|
|
//班级ID
|
|
|
ClassId string `protobuf:"bytes,19,opt,name=ClassId,proto3" json:"ClassId,omitempty"`
|
|
|
//数据ID【输入参数】
|
|
|
DataId string `protobuf:"bytes,20,opt,name=DataId,proto3" json:"DataId,omitempty"`
|
|
|
//数据内容【Json格式输入参数】
|
|
|
DataContent string `protobuf:"bytes,21,opt,name=DataContent,proto3" json:"DataContent,omitempty"`
|
|
|
//文件地址【文件交换】
|
|
|
FileUri string `protobuf:"bytes,22,opt,name=FileUri,proto3" json:"FileUri,omitempty"`
|
|
|
//数据有效开始时间
|
|
|
BeginTime string `protobuf:"bytes,23,opt,name=BeginTime,proto3" json:"BeginTime,omitempty"`
|
|
|
//数据有效结束时间【默认 9999-01-01 00:00:00】
|
|
|
EndTime string `protobuf:"bytes,24,opt,name=EndTime,proto3" json:"EndTime,omitempty"`
|
|
|
//删除标志【默认-1,1:删除,-1:正常,输入参数】
|
|
|
DelFlag int32 `protobuf:"varint,25,opt,name=DelFlag,proto3" json:"DelFlag,omitempty"`
|
|
|
//有效标志【默认1,1:有效,-1:无效数据】
|
|
|
EnableFlag int32 `protobuf:"varint,26,opt,name=EnableFlag,proto3" json:"EnableFlag,omitempty"`
|
|
|
//需要强制更新的列
|
|
|
ForceUpdateFields []string `protobuf:"bytes,27,rep,name=ForceUpdateFields,proto3" json:"ForceUpdateFields,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) Reset() {
|
|
|
*x = ModelArg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_DataexData_proto_msgTypes[0]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*ModelArg) ProtoMessage() {}
|
|
|
|
|
|
func (x *ModelArg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_DataexData_proto_msgTypes[0]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use ModelArg.ProtoReflect.Descriptor instead.
|
|
|
func (*ModelArg) Descriptor() ([]byte, []int) {
|
|
|
return file_DataexData_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetId() string {
|
|
|
if x != nil {
|
|
|
return x.Id
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetSystemId() string {
|
|
|
if x != nil {
|
|
|
return x.SystemId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetDatasourceId() string {
|
|
|
if x != nil {
|
|
|
return x.DatasourceId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetProvinceId() string {
|
|
|
if x != nil {
|
|
|
return x.ProvinceId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetProvinceName() string {
|
|
|
if x != nil {
|
|
|
return x.ProvinceName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetCityId() string {
|
|
|
if x != nil {
|
|
|
return x.CityId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetCityName() string {
|
|
|
if x != nil {
|
|
|
return x.CityName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetAreaId() string {
|
|
|
if x != nil {
|
|
|
return x.AreaId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetAreaName() string {
|
|
|
if x != nil {
|
|
|
return x.AreaName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetBureauId() string {
|
|
|
if x != nil {
|
|
|
return x.BureauId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetRegionId() string {
|
|
|
if x != nil {
|
|
|
return x.RegionId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetMainId() string {
|
|
|
if x != nil {
|
|
|
return x.MainId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetOrgId() string {
|
|
|
if x != nil {
|
|
|
return x.OrgId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetOrgName() string {
|
|
|
if x != nil {
|
|
|
return x.OrgName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetOrgType() int32 {
|
|
|
if x != nil {
|
|
|
return x.OrgType
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetDeptId() string {
|
|
|
if x != nil {
|
|
|
return x.DeptId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetStageId() string {
|
|
|
if x != nil {
|
|
|
return x.StageId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetGradeId() string {
|
|
|
if x != nil {
|
|
|
return x.GradeId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetClassId() string {
|
|
|
if x != nil {
|
|
|
return x.ClassId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetDataId() string {
|
|
|
if x != nil {
|
|
|
return x.DataId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetDataContent() string {
|
|
|
if x != nil {
|
|
|
return x.DataContent
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetFileUri() string {
|
|
|
if x != nil {
|
|
|
return x.FileUri
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetBeginTime() string {
|
|
|
if x != nil {
|
|
|
return x.BeginTime
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetEndTime() string {
|
|
|
if x != nil {
|
|
|
return x.EndTime
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetDelFlag() int32 {
|
|
|
if x != nil {
|
|
|
return x.DelFlag
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetEnableFlag() int32 {
|
|
|
if x != nil {
|
|
|
return x.EnableFlag
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ModelArg) GetForceUpdateFields() []string {
|
|
|
if x != nil {
|
|
|
return x.ForceUpdateFields
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 查询参数
|
|
|
type QueryArg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Page int32 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"`
|
|
|
Limit int32 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *QueryArg) Reset() {
|
|
|
*x = QueryArg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_DataexData_proto_msgTypes[1]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *QueryArg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*QueryArg) ProtoMessage() {}
|
|
|
|
|
|
func (x *QueryArg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_DataexData_proto_msgTypes[1]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use QueryArg.ProtoReflect.Descriptor instead.
|
|
|
func (*QueryArg) Descriptor() ([]byte, []int) {
|
|
|
return file_DataexData_proto_rawDescGZIP(), []int{1}
|
|
|
}
|
|
|
|
|
|
func (x *QueryArg) GetPage() int32 {
|
|
|
if x != nil {
|
|
|
return x.Page
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *QueryArg) GetLimit() int32 {
|
|
|
if x != nil {
|
|
|
return x.Limit
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// 查询请求响应
|
|
|
type Reply struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
|
|
|
Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
|
|
|
Count int32 `protobuf:"varint,3,opt,name=Count,proto3" json:"Count,omitempty"`
|
|
|
List string `protobuf:"bytes,4,opt,name=List,proto3" json:"List,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *Reply) Reset() {
|
|
|
*x = Reply{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_DataexData_proto_msgTypes[2]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *Reply) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*Reply) ProtoMessage() {}
|
|
|
|
|
|
func (x *Reply) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_DataexData_proto_msgTypes[2]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use Reply.ProtoReflect.Descriptor instead.
|
|
|
func (*Reply) Descriptor() ([]byte, []int) {
|
|
|
return file_DataexData_proto_rawDescGZIP(), []int{2}
|
|
|
}
|
|
|
|
|
|
func (x *Reply) GetSuccess() bool {
|
|
|
if x != nil {
|
|
|
return x.Success
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
func (x *Reply) GetMessage() string {
|
|
|
if x != nil {
|
|
|
return x.Message
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *Reply) GetCount() int32 {
|
|
|
if x != nil {
|
|
|
return x.Count
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *Reply) GetList() string {
|
|
|
if x != nil {
|
|
|
return x.List
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
//删除参数
|
|
|
type DeleteIdsArg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
//一个或多个ID
|
|
|
Ids []string `protobuf:"bytes,1,rep,name=Ids,proto3" json:"Ids,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *DeleteIdsArg) Reset() {
|
|
|
*x = DeleteIdsArg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_DataexData_proto_msgTypes[3]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *DeleteIdsArg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*DeleteIdsArg) ProtoMessage() {}
|
|
|
|
|
|
func (x *DeleteIdsArg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_DataexData_proto_msgTypes[3]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use DeleteIdsArg.ProtoReflect.Descriptor instead.
|
|
|
func (*DeleteIdsArg) Descriptor() ([]byte, []int) {
|
|
|
return file_DataexData_proto_rawDescGZIP(), []int{3}
|
|
|
}
|
|
|
|
|
|
func (x *DeleteIdsArg) GetIds() []string {
|
|
|
if x != nil {
|
|
|
return x.Ids
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
var File_DataexData_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_DataexData_proto_rawDesc = []byte{
|
|
|
0x0a, 0x10, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
0x74, 0x6f, 0x12, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72,
|
|
|
0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x05, 0x0a, 0x08, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67,
|
|
|
0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64,
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
|
0x28, 0x09, 0x52, 0x08, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c,
|
|
|
0x44, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
|
|
|
0x28, 0x09, 0x52, 0x0c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64,
|
|
|
0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04,
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64,
|
|
|
0x12, 0x22, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
|
|
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x06,
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
0x43, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
0x43, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x72, 0x65, 0x61,
|
|
|
0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x72, 0x65, 0x61, 0x49, 0x64,
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x65, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01,
|
|
|
0x28, 0x09, 0x52, 0x08, 0x41, 0x72, 0x65, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
0x42, 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
0x42, 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69,
|
|
|
0x6f, 0x6e, 0x49, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x67, 0x69,
|
|
|
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x0c,
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
|
|
0x4f, 0x72, 0x67, 0x49, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x72, 0x67,
|
|
|
0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07,
|
|
|
0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x4f,
|
|
|
0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x70, 0x74, 0x49, 0x64,
|
|
|
0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x70, 0x74, 0x49, 0x64, 0x12, 0x18,
|
|
|
0x0a, 0x07, 0x53, 0x74, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
0x07, 0x53, 0x74, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x61, 0x64,
|
|
|
0x65, 0x49, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x61, 0x64, 0x65,
|
|
|
0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x18, 0x13, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
|
|
|
0x44, 0x61, 0x74, 0x61, 0x49, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x61,
|
|
|
0x74, 0x61, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x74,
|
|
|
0x65, 0x6e, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x43,
|
|
|
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x72,
|
|
|
0x69, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x72, 0x69,
|
|
|
0x12, 0x1c, 0x0a, 0x09, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x17, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x09, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18,
|
|
|
0x0a, 0x07, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
0x07, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x65, 0x6c, 0x46,
|
|
|
0x6c, 0x61, 0x67, 0x18, 0x19, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x44, 0x65, 0x6c, 0x46, 0x6c,
|
|
|
0x61, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6c, 0x61, 0x67,
|
|
|
0x18, 0x1a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6c,
|
|
|
0x61, 0x67, 0x12, 0x2c, 0x0a, 0x11, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74,
|
|
|
0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x46,
|
|
|
0x6f, 0x72, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73,
|
|
|
0x22, 0x34, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x12, 0x12, 0x0a, 0x04,
|
|
|
0x50, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x50, 0x61, 0x67, 0x65,
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
|
0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x65, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
|
|
|
0x18, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
|
|
0x52, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73,
|
|
|
0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73,
|
|
|
0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
|
|
|
0x28, 0x05, 0x52, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4c, 0x69, 0x73,
|
|
|
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x20, 0x0a,
|
|
|
0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a,
|
|
|
0x03, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x49, 0x64, 0x73, 0x32,
|
|
|
0xfb, 0x02, 0x0a, 0x10, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61,
|
|
|
0x6e, 0x61, 0x67, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x65,
|
|
|
0x78, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61,
|
|
|
0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67,
|
|
|
0x1a, 0x16, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f,
|
|
|
0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0d, 0x41, 0x64,
|
|
|
0x64, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x44, 0x61,
|
|
|
0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f,
|
|
|
0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x16, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44,
|
|
|
0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
|
|
|
0x12, 0x4b, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78,
|
|
|
0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74,
|
|
|
0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73,
|
|
|
0x41, 0x72, 0x67, 0x1a, 0x16, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61,
|
|
|
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x47, 0x0a,
|
|
|
0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74,
|
|
|
0x61, 0x12, 0x19, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72,
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x16, 0x2e, 0x44,
|
|
|
0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52,
|
|
|
0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x65, 0x44, 0x61,
|
|
|
0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65,
|
|
|
0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
|
0x41, 0x72, 0x67, 0x1a, 0x16, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44, 0x61, 0x74, 0x61,
|
|
|
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x3c, 0x0a,
|
|
|
0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x73, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x2e, 0x64, 0x73, 0x6d,
|
|
|
0x69, 0x6e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x42, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44,
|
|
|
0x61, 0x74, 0x61, 0x50, 0x01, 0x5a, 0x11, 0x2e, 0x3b, 0x44, 0x61, 0x74, 0x61, 0x65, 0x78, 0x44,
|
|
|
0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
file_DataexData_proto_rawDescOnce sync.Once
|
|
|
file_DataexData_proto_rawDescData = file_DataexData_proto_rawDesc
|
|
|
)
|
|
|
|
|
|
func file_DataexData_proto_rawDescGZIP() []byte {
|
|
|
file_DataexData_proto_rawDescOnce.Do(func() {
|
|
|
file_DataexData_proto_rawDescData = protoimpl.X.CompressGZIP(file_DataexData_proto_rawDescData)
|
|
|
})
|
|
|
return file_DataexData_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
var file_DataexData_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
var file_DataexData_proto_goTypes = []interface{}{
|
|
|
(*ModelArg)(nil), // 0: DataexDataProto.ModelArg
|
|
|
(*QueryArg)(nil), // 1: DataexDataProto.QueryArg
|
|
|
(*Reply)(nil), // 2: DataexDataProto.Reply
|
|
|
(*DeleteIdsArg)(nil), // 3: DataexDataProto.DeleteIdsArg
|
|
|
}
|
|
|
var file_DataexData_proto_depIdxs = []int32{
|
|
|
0, // 0: DataexDataProto.DataexDataManage.GetDataexData:input_type -> DataexDataProto.ModelArg
|
|
|
0, // 1: DataexDataProto.DataexDataManage.AddDataexData:input_type -> DataexDataProto.ModelArg
|
|
|
3, // 2: DataexDataProto.DataexDataManage.DeleteDataexData:input_type -> DataexDataProto.DeleteIdsArg
|
|
|
0, // 3: DataexDataProto.DataexDataManage.UpdateDataexData:input_type -> DataexDataProto.ModelArg
|
|
|
1, // 4: DataexDataProto.DataexDataManage.PageDataexData:input_type -> DataexDataProto.QueryArg
|
|
|
2, // 5: DataexDataProto.DataexDataManage.GetDataexData:output_type -> DataexDataProto.Reply
|
|
|
2, // 6: DataexDataProto.DataexDataManage.AddDataexData:output_type -> DataexDataProto.Reply
|
|
|
2, // 7: DataexDataProto.DataexDataManage.DeleteDataexData:output_type -> DataexDataProto.Reply
|
|
|
2, // 8: DataexDataProto.DataexDataManage.UpdateDataexData:output_type -> DataexDataProto.Reply
|
|
|
2, // 9: DataexDataProto.DataexDataManage.PageDataexData:output_type -> DataexDataProto.Reply
|
|
|
5, // [5:10] is the sub-list for method output_type
|
|
|
0, // [0:5] is the sub-list for method input_type
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
|
0, // [0:0] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_DataexData_proto_init() }
|
|
|
func file_DataexData_proto_init() {
|
|
|
if File_DataexData_proto != nil {
|
|
|
return
|
|
|
}
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
file_DataexData_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*ModelArg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_DataexData_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*QueryArg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_DataexData_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*Reply); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_DataexData_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*DeleteIdsArg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
File: protoimpl.DescBuilder{
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_DataexData_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
NumMessages: 4,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
|
GoTypes: file_DataexData_proto_goTypes,
|
|
|
DependencyIndexes: file_DataexData_proto_depIdxs,
|
|
|
MessageInfos: file_DataexData_proto_msgTypes,
|
|
|
}.Build()
|
|
|
File_DataexData_proto = out.File
|
|
|
file_DataexData_proto_rawDesc = nil
|
|
|
file_DataexData_proto_goTypes = nil
|
|
|
file_DataexData_proto_depIdxs = nil
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ context.Context
|
|
|
var _ grpc.ClientConnInterface
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
// DataexDataManageClient is the client API for DataexDataManage service.
|
|
|
//
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
type DataexDataManageClient interface {
|
|
|
//获取单条
|
|
|
GetDataexData(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
//增加
|
|
|
AddDataexData(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
//批量删除
|
|
|
DeleteDataexData(ctx context.Context, in *DeleteIdsArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
//修改
|
|
|
UpdateDataexData(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
//查询(分页)
|
|
|
PageDataexData(ctx context.Context, in *QueryArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
}
|
|
|
|
|
|
type dataexDataManageClient struct {
|
|
|
cc grpc.ClientConnInterface
|
|
|
}
|
|
|
|
|
|
func NewDataexDataManageClient(cc grpc.ClientConnInterface) DataexDataManageClient {
|
|
|
return &dataexDataManageClient{cc}
|
|
|
}
|
|
|
|
|
|
func (c *dataexDataManageClient) GetDataexData(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) {
|
|
|
out := new(Reply)
|
|
|
err := c.cc.Invoke(ctx, "/DataexDataProto.DataexDataManage/GetDataexData", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *dataexDataManageClient) AddDataexData(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) {
|
|
|
out := new(Reply)
|
|
|
err := c.cc.Invoke(ctx, "/DataexDataProto.DataexDataManage/AddDataexData", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *dataexDataManageClient) DeleteDataexData(ctx context.Context, in *DeleteIdsArg, opts ...grpc.CallOption) (*Reply, error) {
|
|
|
out := new(Reply)
|
|
|
err := c.cc.Invoke(ctx, "/DataexDataProto.DataexDataManage/DeleteDataexData", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *dataexDataManageClient) UpdateDataexData(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) {
|
|
|
out := new(Reply)
|
|
|
err := c.cc.Invoke(ctx, "/DataexDataProto.DataexDataManage/UpdateDataexData", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *dataexDataManageClient) PageDataexData(ctx context.Context, in *QueryArg, opts ...grpc.CallOption) (*Reply, error) {
|
|
|
out := new(Reply)
|
|
|
err := c.cc.Invoke(ctx, "/DataexDataProto.DataexDataManage/PageDataexData", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
// DataexDataManageServer is the server API for DataexDataManage service.
|
|
|
type DataexDataManageServer interface {
|
|
|
//获取单条
|
|
|
GetDataexData(context.Context, *ModelArg) (*Reply, error)
|
|
|
//增加
|
|
|
AddDataexData(context.Context, *ModelArg) (*Reply, error)
|
|
|
//批量删除
|
|
|
DeleteDataexData(context.Context, *DeleteIdsArg) (*Reply, error)
|
|
|
//修改
|
|
|
UpdateDataexData(context.Context, *ModelArg) (*Reply, error)
|
|
|
//查询(分页)
|
|
|
PageDataexData(context.Context, *QueryArg) (*Reply, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedDataexDataManageServer can be embedded to have forward compatible implementations.
|
|
|
type UnimplementedDataexDataManageServer struct {
|
|
|
}
|
|
|
|
|
|
func (*UnimplementedDataexDataManageServer) GetDataexData(context.Context, *ModelArg) (*Reply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetDataexData not implemented")
|
|
|
}
|
|
|
func (*UnimplementedDataexDataManageServer) AddDataexData(context.Context, *ModelArg) (*Reply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddDataexData not implemented")
|
|
|
}
|
|
|
func (*UnimplementedDataexDataManageServer) DeleteDataexData(context.Context, *DeleteIdsArg) (*Reply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteDataexData not implemented")
|
|
|
}
|
|
|
func (*UnimplementedDataexDataManageServer) UpdateDataexData(context.Context, *ModelArg) (*Reply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateDataexData not implemented")
|
|
|
}
|
|
|
func (*UnimplementedDataexDataManageServer) PageDataexData(context.Context, *QueryArg) (*Reply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method PageDataexData not implemented")
|
|
|
}
|
|
|
|
|
|
func RegisterDataexDataManageServer(s *grpc.Server, srv DataexDataManageServer) {
|
|
|
s.RegisterService(&_DataexDataManage_serviceDesc, srv)
|
|
|
}
|
|
|
|
|
|
func _DataexDataManage_GetDataexData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ModelArg)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(DataexDataManageServer).GetDataexData(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/DataexDataProto.DataexDataManage/GetDataexData",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(DataexDataManageServer).GetDataexData(ctx, req.(*ModelArg))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _DataexDataManage_AddDataexData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ModelArg)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(DataexDataManageServer).AddDataexData(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/DataexDataProto.DataexDataManage/AddDataexData",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(DataexDataManageServer).AddDataexData(ctx, req.(*ModelArg))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _DataexDataManage_DeleteDataexData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(DeleteIdsArg)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(DataexDataManageServer).DeleteDataexData(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/DataexDataProto.DataexDataManage/DeleteDataexData",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(DataexDataManageServer).DeleteDataexData(ctx, req.(*DeleteIdsArg))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _DataexDataManage_UpdateDataexData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ModelArg)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(DataexDataManageServer).UpdateDataexData(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/DataexDataProto.DataexDataManage/UpdateDataexData",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(DataexDataManageServer).UpdateDataexData(ctx, req.(*ModelArg))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _DataexDataManage_PageDataexData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(QueryArg)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(DataexDataManageServer).PageDataexData(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/DataexDataProto.DataexDataManage/PageDataexData",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(DataexDataManageServer).PageDataexData(ctx, req.(*QueryArg))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
var _DataexDataManage_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "DataexDataProto.DataexDataManage",
|
|
|
HandlerType: (*DataexDataManageServer)(nil),
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
{
|
|
|
MethodName: "GetDataexData",
|
|
|
Handler: _DataexDataManage_GetDataexData_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "AddDataexData",
|
|
|
Handler: _DataexDataManage_AddDataexData_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "DeleteDataexData",
|
|
|
Handler: _DataexDataManage_DeleteDataexData_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "UpdateDataexData",
|
|
|
Handler: _DataexDataManage_UpdateDataexData_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "PageDataexData",
|
|
|
Handler: _DataexDataManage_PageDataexData_Handler,
|
|
|
},
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "DataexData.proto",
|
|
|
}
|