Browse Source

修改proto文件

jyq 4 years ago
parent
commit
b856630a85
4 changed files with 705 additions and 651 deletions
  1. 1 1
      api/grpc/base.go
  2. 665 650
      api/grpc/base/base.pb.go
  3. 36 0
      api/grpc/base/base_grpc.pb.go
  4. 3 0
      proto/server/base.proto

+ 1 - 1
api/grpc/base.go

@@ -1121,8 +1121,8 @@ func (a Api) ClassStartConfirm(ctx context.Context, r *pb.CourseStandardRequest)
 		// todo 调用评分系统接口
 	}
 	// todo 所有步骤执行成功后,调用课程Sn查询接口,生成R1验证Redis
-
 	// todo 使用StdId查询课程绑定显示端EqSn列表,内容为EqSnList,DuIdList
+	service.HrRedis{}.ClassStartR1AndOnClassByUUStdID(token, q.ShopID, q.UUStdID)
 	rst := a.toWebFunc(rs)
 	return rst, nil
 }

File diff suppressed because it is too large
+ 665 - 650
api/grpc/base/base.pb.go


+ 36 - 0
api/grpc/base/base_grpc.pb.go

@@ -33,6 +33,7 @@ type ApiClient interface {
 	ClassSimpleQuery(ctx context.Context, in *StandardRequest, opts ...grpc.CallOption) (*StandardReply, error)
 	ScreenSimpleQuery(ctx context.Context, in *StandardRequest, opts ...grpc.CallOption) (*StandardReply, error)
 	GroupSimpleQueryByShopID(ctx context.Context, in *StandardRequest, opts ...grpc.CallOption) (*StandardReply, error)
+	EqSimpleQuery(ctx context.Context, in *StandardRequest, opts ...grpc.CallOption) (*StandardReply, error)
 	// 商家信息管理
 	ManageableShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error)
 	ManageableGetShopInfo(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error)
@@ -280,6 +281,15 @@ func (c *apiClient) GroupSimpleQueryByShopID(ctx context.Context, in *StandardRe
 	return out, nil
 }
 
+func (c *apiClient) EqSimpleQuery(ctx context.Context, in *StandardRequest, opts ...grpc.CallOption) (*StandardReply, error) {
+	out := new(StandardReply)
+	err := c.cc.Invoke(ctx, "/base.Api/EqSimpleQuery", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *apiClient) ManageableShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error) {
 	out := new(ShopListReply)
 	err := c.cc.Invoke(ctx, "/base.Api/ManageableShopList", in, out, opts...)
@@ -1307,6 +1317,7 @@ type ApiServer interface {
 	ClassSimpleQuery(context.Context, *StandardRequest) (*StandardReply, error)
 	ScreenSimpleQuery(context.Context, *StandardRequest) (*StandardReply, error)
 	GroupSimpleQueryByShopID(context.Context, *StandardRequest) (*StandardReply, error)
+	EqSimpleQuery(context.Context, *StandardRequest) (*StandardReply, error)
 	// 商家信息管理
 	ManageableShopList(context.Context, *ShopListRequest) (*ShopListReply, error)
 	ManageableGetShopInfo(context.Context, *ShopDetailRequest) (*ShopInfo, error)
@@ -1473,6 +1484,9 @@ func (UnimplementedApiServer) ScreenSimpleQuery(context.Context, *StandardReques
 func (UnimplementedApiServer) GroupSimpleQueryByShopID(context.Context, *StandardRequest) (*StandardReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GroupSimpleQueryByShopID not implemented")
 }
+func (UnimplementedApiServer) EqSimpleQuery(context.Context, *StandardRequest) (*StandardReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method EqSimpleQuery not implemented")
+}
 func (UnimplementedApiServer) ManageableShopList(context.Context, *ShopListRequest) (*ShopListReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method ManageableShopList not implemented")
 }
@@ -2056,6 +2070,24 @@ func _Api_GroupSimpleQueryByShopID_Handler(srv interface{}, ctx context.Context,
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Api_EqSimpleQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(StandardRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ApiServer).EqSimpleQuery(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/base.Api/EqSimpleQuery",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ApiServer).EqSimpleQuery(ctx, req.(*StandardRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _Api_ManageableShopList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(ShopListRequest)
 	if err := dec(in); err != nil {
@@ -4131,6 +4163,10 @@ var Api_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GroupSimpleQueryByShopID",
 			Handler:    _Api_GroupSimpleQueryByShopID_Handler,
 		},
+		{
+			MethodName: "EqSimpleQuery",
+			Handler:    _Api_EqSimpleQuery_Handler,
+		},
 		{
 			MethodName: "ManageableShopList",
 			Handler:    _Api_ManageableShopList_Handler,

+ 3 - 0
proto/server/base.proto

@@ -37,6 +37,7 @@ service Api {
   rpc ClassSimpleQuery (StandardRequest) returns (StandardReply)  {}
   rpc ScreenSimpleQuery (StandardRequest) returns (StandardReply)  {}
   rpc GroupSimpleQueryByShopID (StandardRequest) returns (StandardReply)  {}
+  rpc EqSimpleQuery (StandardRequest) returns (StandardReply)  {}
 
   // 商家信息管理
   rpc ManageableShopList (ShopListRequest) returns (ShopListReply) {}
@@ -182,6 +183,8 @@ message CourseStandardRequest{
   string sign = 3;
   int32 isHr = 4;
   int32 isScore = 5;
+  // 没有可不传
+  string UUStdID = 6;
 }
 
 message StandardReply{

Some files were not shown because too many files changed in this diff