|
@@ -1630,7 +1630,7 @@ var file_transform_proto_rawDesc = []byte{
|
|
|
0x76, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x18,
|
|
0x76, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x18,
|
|
|
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x64, 0x12,
|
|
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x64, 0x12,
|
|
|
0x17, 0x0a, 0x07, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
0x17, 0x0a, 0x07, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x06, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x80, 0x06, 0x0a, 0x09, 0x54, 0x72, 0x61,
|
|
|
|
|
|
|
+ 0x52, 0x06, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0xbe, 0x06, 0x0a, 0x09, 0x54, 0x72, 0x61,
|
|
|
0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
|
|
0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
|
|
|
0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73,
|
|
0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73,
|
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e,
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e,
|
|
@@ -1678,8 +1678,12 @@ var file_transform_proto_rawDesc = []byte{
|
|
|
0x69, 0x76, 0x65, 0x12, 0x1a, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
|
|
0x69, 0x76, 0x65, 0x12, 0x1a, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
|
|
|
0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x1a,
|
|
0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x1a,
|
|
|
0x1a, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x45,
|
|
0x1a, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x45,
|
|
|
- 0x72, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
|
|
- 0x74, 0x6f, 0x33,
|
|
|
|
|
|
|
+ 0x72, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x12, 0x47,
|
|
|
|
|
+ 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x54, 0x72, 0x65,
|
|
|
|
|
+ 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d,
|
|
|
|
|
+ 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
|
|
|
|
|
+ 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
|
+ 0x33,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -1743,19 +1747,21 @@ var file_transform_proto_depIdxs = []int32{
|
|
|
18, // 15: transform.Transform.GetErpRole:input_type -> transform.GetErpRoleReq
|
|
18, // 15: transform.Transform.GetErpRole:input_type -> transform.GetErpRoleReq
|
|
|
4, // 16: transform.Transform.GetErpSchool:input_type -> transform.Empty
|
|
4, // 16: transform.Transform.GetErpSchool:input_type -> transform.Empty
|
|
|
23, // 17: transform.Transform.GetErpActive:input_type -> transform.GetErpActiveReq
|
|
23, // 17: transform.Transform.GetErpActive:input_type -> transform.GetErpActiveReq
|
|
|
- 1, // 18: transform.Transform.GetUser:output_type -> transform.UserResponse
|
|
|
|
|
- 3, // 19: transform.Transform.ParseToken:output_type -> transform.TokenResponse
|
|
|
|
|
- 5, // 20: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
|
|
|
|
|
- 9, // 21: transform.Transform.LoadOptionset:output_type -> transform.OptionsetRes
|
|
|
|
|
- 14, // 22: transform.Transform.PostExcelLog:output_type -> transform.ExcelLogRes
|
|
|
|
|
- 11, // 23: transform.Transform.GetErpOptionset:output_type -> transform.Options
|
|
|
|
|
- 5, // 24: transform.Transform.GetErpMktNetWorkDetailTree:output_type -> transform.TreeNodes
|
|
|
|
|
- 20, // 25: transform.Transform.GetErpOrganSchPerByUserId:output_type -> transform.GetErpOrganSchPerByUserIdRes
|
|
|
|
|
- 17, // 26: transform.Transform.GetErpRole:output_type -> transform.GetErpRoleRes
|
|
|
|
|
- 22, // 27: transform.Transform.GetErpSchool:output_type -> transform.GetErpSchoolRes
|
|
|
|
|
- 24, // 28: transform.Transform.GetErpActive:output_type -> transform.GetErpActiveRes
|
|
|
|
|
- 18, // [18:29] is the sub-list for method output_type
|
|
|
|
|
- 7, // [7:18] is the sub-list for method input_type
|
|
|
|
|
|
|
+ 4, // 18: transform.Transform.GetErpOrganSchTree:input_type -> transform.Empty
|
|
|
|
|
+ 1, // 19: transform.Transform.GetUser:output_type -> transform.UserResponse
|
|
|
|
|
+ 3, // 20: transform.Transform.ParseToken:output_type -> transform.TokenResponse
|
|
|
|
|
+ 5, // 21: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
|
|
|
|
|
+ 9, // 22: transform.Transform.LoadOptionset:output_type -> transform.OptionsetRes
|
|
|
|
|
+ 14, // 23: transform.Transform.PostExcelLog:output_type -> transform.ExcelLogRes
|
|
|
|
|
+ 11, // 24: transform.Transform.GetErpOptionset:output_type -> transform.Options
|
|
|
|
|
+ 5, // 25: transform.Transform.GetErpMktNetWorkDetailTree:output_type -> transform.TreeNodes
|
|
|
|
|
+ 20, // 26: transform.Transform.GetErpOrganSchPerByUserId:output_type -> transform.GetErpOrganSchPerByUserIdRes
|
|
|
|
|
+ 17, // 27: transform.Transform.GetErpRole:output_type -> transform.GetErpRoleRes
|
|
|
|
|
+ 22, // 28: transform.Transform.GetErpSchool:output_type -> transform.GetErpSchoolRes
|
|
|
|
|
+ 24, // 29: transform.Transform.GetErpActive:output_type -> transform.GetErpActiveRes
|
|
|
|
|
+ 5, // 30: transform.Transform.GetErpOrganSchTree:output_type -> transform.TreeNodes
|
|
|
|
|
+ 19, // [19:31] is the sub-list for method output_type
|
|
|
|
|
+ 7, // [7:19] is the sub-list for method input_type
|
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
|
0, // [0:7] is the sub-list for field type_name
|
|
0, // [0:7] is the sub-list for field type_name
|
|
@@ -2130,6 +2136,8 @@ type TransformClient interface {
|
|
|
GetErpSchool(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetErpSchoolRes, error)
|
|
GetErpSchool(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetErpSchoolRes, error)
|
|
|
//获取 erp 活动
|
|
//获取 erp 活动
|
|
|
GetErpActive(ctx context.Context, in *GetErpActiveReq, opts ...grpc.CallOption) (*GetErpActiveRes, error)
|
|
GetErpActive(ctx context.Context, in *GetErpActiveReq, opts ...grpc.CallOption) (*GetErpActiveRes, error)
|
|
|
|
|
+ //获取erp 省、城、校区
|
|
|
|
|
+ GetErpOrganSchTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type transformClient struct {
|
|
type transformClient struct {
|
|
@@ -2239,6 +2247,15 @@ func (c *transformClient) GetErpActive(ctx context.Context, in *GetErpActiveReq,
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *transformClient) GetErpOrganSchTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
|
|
|
|
|
+ out := new(TreeNodes)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/transform.Transform/GetErpOrganSchTree", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// TransformServer is the server API for Transform service.
|
|
// TransformServer is the server API for Transform service.
|
|
|
type TransformServer interface {
|
|
type TransformServer interface {
|
|
|
GetUser(context.Context, *UserRequest) (*UserResponse, error)
|
|
GetUser(context.Context, *UserRequest) (*UserResponse, error)
|
|
@@ -2259,6 +2276,8 @@ type TransformServer interface {
|
|
|
GetErpSchool(context.Context, *Empty) (*GetErpSchoolRes, error)
|
|
GetErpSchool(context.Context, *Empty) (*GetErpSchoolRes, error)
|
|
|
//获取 erp 活动
|
|
//获取 erp 活动
|
|
|
GetErpActive(context.Context, *GetErpActiveReq) (*GetErpActiveRes, error)
|
|
GetErpActive(context.Context, *GetErpActiveReq) (*GetErpActiveRes, error)
|
|
|
|
|
+ //获取erp 省、城、校区
|
|
|
|
|
+ GetErpOrganSchTree(context.Context, *Empty) (*TreeNodes, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedTransformServer can be embedded to have forward compatible implementations.
|
|
// UnimplementedTransformServer can be embedded to have forward compatible implementations.
|
|
@@ -2298,6 +2317,9 @@ func (*UnimplementedTransformServer) GetErpSchool(context.Context, *Empty) (*Get
|
|
|
func (*UnimplementedTransformServer) GetErpActive(context.Context, *GetErpActiveReq) (*GetErpActiveRes, error) {
|
|
func (*UnimplementedTransformServer) GetErpActive(context.Context, *GetErpActiveReq) (*GetErpActiveRes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetErpActive not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetErpActive not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (*UnimplementedTransformServer) GetErpOrganSchTree(context.Context, *Empty) (*TreeNodes, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetErpOrganSchTree not implemented")
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
|
|
func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
|
|
|
s.RegisterService(&_Transform_serviceDesc, srv)
|
|
s.RegisterService(&_Transform_serviceDesc, srv)
|
|
@@ -2501,6 +2523,24 @@ func _Transform_GetErpActive_Handler(srv interface{}, ctx context.Context, dec f
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Transform_GetErpOrganSchTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(Empty)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(TransformServer).GetErpOrganSchTree(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/transform.Transform/GetErpOrganSchTree",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(TransformServer).GetErpOrganSchTree(ctx, req.(*Empty))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
var _Transform_serviceDesc = grpc.ServiceDesc{
|
|
var _Transform_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "transform.Transform",
|
|
ServiceName: "transform.Transform",
|
|
|
HandlerType: (*TransformServer)(nil),
|
|
HandlerType: (*TransformServer)(nil),
|
|
@@ -2549,6 +2589,10 @@ var _Transform_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetErpActive",
|
|
MethodName: "GetErpActive",
|
|
|
Handler: _Transform_GetErpActive_Handler,
|
|
Handler: _Transform_GetErpActive_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "GetErpOrganSchTree",
|
|
|
|
|
+ Handler: _Transform_GetErpOrganSchTree_Handler,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "transform.proto",
|
|
Metadata: "transform.proto",
|