|
@@ -241,28 +241,30 @@ var file_integral_proto_rawDesc = []byte{
|
|
|
0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
|
|
|
0x73, 0x70, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74,
|
|
|
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x6f,
|
|
|
- 0x69, 0x6e, 0x74, 0x73, 0x32, 0xc8, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
|
|
- 0x6c, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x46, 0x6c, 0x6f, 0x77, 0x12, 0x10, 0x2e, 0x69,
|
|
|
+ 0x69, 0x6e, 0x74, 0x73, 0x32, 0xe7, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
|
|
+ 0x6c, 0x12, 0x36, 0x0a, 0x0f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x48, 0x61, 0x72,
|
|
|
+ 0x76, 0x65, 0x73, 0x74, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e,
|
|
|
+ 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
|
|
+ 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x0f, 0x69, 0x6e, 0x74,
|
|
|
+ 0x65, 0x67, 0x72, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x12, 0x10, 0x2e, 0x69,
|
|
|
0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11,
|
|
|
0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x12, 0x34, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e,
|
|
|
- 0x63, 0x65, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64,
|
|
|
- 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e,
|
|
|
- 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x32, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
|
|
|
- 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
|
|
- 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67,
|
|
|
- 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x0f, 0x69,
|
|
|
- 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x12, 0x10,
|
|
|
- 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71,
|
|
|
- 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52,
|
|
|
- 0x65, 0x73, 0x70, 0x12, 0x34, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x47,
|
|
|
- 0x75, 0x61, 0x72, 0x64, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e,
|
|
|
- 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
|
|
- 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x34, 0x0a, 0x0d, 0x69, 0x6e, 0x74,
|
|
|
- 0x65, 0x67, 0x72, 0x61, 0x6c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74,
|
|
|
- 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69,
|
|
|
- 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x62,
|
|
|
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x70, 0x12, 0x3b, 0x0a, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x42, 0x61, 0x6c,
|
|
|
+ 0x61, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65,
|
|
|
+ 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e,
|
|
|
+ 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c,
|
|
|
+ 0x0a, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
|
|
|
+ 0x65, 0x64, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72,
|
|
|
+ 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65,
|
|
|
+ 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x34, 0x0a, 0x0d,
|
|
|
+ 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x47, 0x75, 0x61, 0x72, 0x64, 0x12, 0x10, 0x2e,
|
|
|
+ 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a,
|
|
|
+ 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x12, 0x3a, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x45, 0x78,
|
|
|
+ 0x70, 0x69, 0x72, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x2e, 0x69, 0x6e, 0x74, 0x65,
|
|
|
+ 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x69, 0x6e,
|
|
|
+ 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x2e, 0x61, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06,
|
|
|
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -285,18 +287,18 @@ var file_integral_proto_goTypes = []interface{}{
|
|
|
(*CheckResp)(nil), // 3: integral.checkResp
|
|
|
}
|
|
|
var file_integral_proto_depIdxs = []int32{
|
|
|
- 0, // 0: integral.Integral.addFlow:input_type -> integral.addReq
|
|
|
- 0, // 1: integral.Integral.updateBalance:input_type -> integral.addReq
|
|
|
- 0, // 2: integral.Integral.updateTotal:input_type -> integral.addReq
|
|
|
- 0, // 3: integral.Integral.integralConsume:input_type -> integral.addReq
|
|
|
+ 0, // 0: integral.Integral.integralHarvest:input_type -> integral.addReq
|
|
|
+ 0, // 1: integral.Integral.integralConsume:input_type -> integral.addReq
|
|
|
+ 0, // 2: integral.Integral.integralBalanceCheck:input_type -> integral.addReq
|
|
|
+ 0, // 3: integral.Integral.integralDetailedCheck:input_type -> integral.addReq
|
|
|
0, // 4: integral.Integral.integralGuard:input_type -> integral.addReq
|
|
|
- 0, // 5: integral.Integral.integralCheck:input_type -> integral.addReq
|
|
|
- 1, // 6: integral.Integral.addFlow:output_type -> integral.addResp
|
|
|
- 1, // 7: integral.Integral.updateBalance:output_type -> integral.addResp
|
|
|
- 1, // 8: integral.Integral.updateTotal:output_type -> integral.addResp
|
|
|
- 1, // 9: integral.Integral.integralConsume:output_type -> integral.addResp
|
|
|
+ 0, // 5: integral.Integral.integralExpireCheck:input_type -> integral.addReq
|
|
|
+ 1, // 6: integral.Integral.integralHarvest:output_type -> integral.addResp
|
|
|
+ 1, // 7: integral.Integral.integralConsume:output_type -> integral.addResp
|
|
|
+ 1, // 8: integral.Integral.integralBalanceCheck:output_type -> integral.addResp
|
|
|
+ 1, // 9: integral.Integral.integralDetailedCheck:output_type -> integral.addResp
|
|
|
1, // 10: integral.Integral.integralGuard:output_type -> integral.addResp
|
|
|
- 1, // 11: integral.Integral.integralCheck:output_type -> integral.addResp
|
|
|
+ 1, // 11: integral.Integral.integralExpireCheck:output_type -> integral.addResp
|
|
|
6, // [6:12] is the sub-list for method output_type
|
|
|
0, // [0:6] is the sub-list for method input_type
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
@@ -391,18 +393,18 @@ const _ = grpc.SupportPackageIsVersion6
|
|
|
//
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
type IntegralClient interface {
|
|
|
- //新增积分
|
|
|
- AddFlow(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
- //调整结存
|
|
|
- UpdateBalance(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
- //调整余额
|
|
|
- UpdateTotal(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
+ //收获积分
|
|
|
+ IntegralHarvest(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
//消耗积分
|
|
|
IntegralConsume(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
+ //积分余额查询
|
|
|
+ IntegralBalanceCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
+ //积分明细查询
|
|
|
+ IntegralDetailedCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
//积分守护
|
|
|
IntegralGuard(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
//到期积分查询
|
|
|
- IntegralCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
+ IntegralExpireCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error)
|
|
|
}
|
|
|
|
|
|
type integralClient struct {
|
|
@@ -413,36 +415,36 @@ func NewIntegralClient(cc grpc.ClientConnInterface) IntegralClient {
|
|
|
return &integralClient{cc}
|
|
|
}
|
|
|
|
|
|
-func (c *integralClient) AddFlow(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
+func (c *integralClient) IntegralHarvest(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
out := new(AddResp)
|
|
|
- err := c.cc.Invoke(ctx, "/integral.Integral/addFlow", in, out, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, "/integral.Integral/integralHarvest", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *integralClient) UpdateBalance(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
+func (c *integralClient) IntegralConsume(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
out := new(AddResp)
|
|
|
- err := c.cc.Invoke(ctx, "/integral.Integral/updateBalance", in, out, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, "/integral.Integral/integralConsume", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *integralClient) UpdateTotal(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
+func (c *integralClient) IntegralBalanceCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
out := new(AddResp)
|
|
|
- err := c.cc.Invoke(ctx, "/integral.Integral/updateTotal", in, out, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, "/integral.Integral/integralBalanceCheck", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *integralClient) IntegralConsume(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
+func (c *integralClient) IntegralDetailedCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
out := new(AddResp)
|
|
|
- err := c.cc.Invoke(ctx, "/integral.Integral/integralConsume", in, out, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, "/integral.Integral/integralDetailedCheck", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -458,9 +460,9 @@ func (c *integralClient) IntegralGuard(ctx context.Context, in *AddReq, opts ...
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *integralClient) IntegralCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
+func (c *integralClient) IntegralExpireCheck(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddResp, error) {
|
|
|
out := new(AddResp)
|
|
|
- err := c.cc.Invoke(ctx, "/integral.Integral/integralCheck", in, out, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, "/integral.Integral/integralExpireCheck", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -469,115 +471,115 @@ func (c *integralClient) IntegralCheck(ctx context.Context, in *AddReq, opts ...
|
|
|
|
|
|
// IntegralServer is the server API for Integral service.
|
|
|
type IntegralServer interface {
|
|
|
- //新增积分
|
|
|
- AddFlow(context.Context, *AddReq) (*AddResp, error)
|
|
|
- //调整结存
|
|
|
- UpdateBalance(context.Context, *AddReq) (*AddResp, error)
|
|
|
- //调整余额
|
|
|
- UpdateTotal(context.Context, *AddReq) (*AddResp, error)
|
|
|
+ //收获积分
|
|
|
+ IntegralHarvest(context.Context, *AddReq) (*AddResp, error)
|
|
|
//消耗积分
|
|
|
IntegralConsume(context.Context, *AddReq) (*AddResp, error)
|
|
|
+ //积分余额查询
|
|
|
+ IntegralBalanceCheck(context.Context, *AddReq) (*AddResp, error)
|
|
|
+ //积分明细查询
|
|
|
+ IntegralDetailedCheck(context.Context, *AddReq) (*AddResp, error)
|
|
|
//积分守护
|
|
|
IntegralGuard(context.Context, *AddReq) (*AddResp, error)
|
|
|
//到期积分查询
|
|
|
- IntegralCheck(context.Context, *AddReq) (*AddResp, error)
|
|
|
+ IntegralExpireCheck(context.Context, *AddReq) (*AddResp, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedIntegralServer can be embedded to have forward compatible implementations.
|
|
|
type UnimplementedIntegralServer struct {
|
|
|
}
|
|
|
|
|
|
-func (*UnimplementedIntegralServer) AddFlow(context.Context, *AddReq) (*AddResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method AddFlow not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedIntegralServer) UpdateBalance(context.Context, *AddReq) (*AddResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method UpdateBalance not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedIntegralServer) UpdateTotal(context.Context, *AddReq) (*AddResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method UpdateTotal not implemented")
|
|
|
+func (*UnimplementedIntegralServer) IntegralHarvest(context.Context, *AddReq) (*AddResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method IntegralHarvest not implemented")
|
|
|
}
|
|
|
func (*UnimplementedIntegralServer) IntegralConsume(context.Context, *AddReq) (*AddResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method IntegralConsume not implemented")
|
|
|
}
|
|
|
+func (*UnimplementedIntegralServer) IntegralBalanceCheck(context.Context, *AddReq) (*AddResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method IntegralBalanceCheck not implemented")
|
|
|
+}
|
|
|
+func (*UnimplementedIntegralServer) IntegralDetailedCheck(context.Context, *AddReq) (*AddResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method IntegralDetailedCheck not implemented")
|
|
|
+}
|
|
|
func (*UnimplementedIntegralServer) IntegralGuard(context.Context, *AddReq) (*AddResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method IntegralGuard not implemented")
|
|
|
}
|
|
|
-func (*UnimplementedIntegralServer) IntegralCheck(context.Context, *AddReq) (*AddResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method IntegralCheck not implemented")
|
|
|
+func (*UnimplementedIntegralServer) IntegralExpireCheck(context.Context, *AddReq) (*AddResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method IntegralExpireCheck not implemented")
|
|
|
}
|
|
|
|
|
|
func RegisterIntegralServer(s *grpc.Server, srv IntegralServer) {
|
|
|
s.RegisterService(&_Integral_serviceDesc, srv)
|
|
|
}
|
|
|
|
|
|
-func _Integral_AddFlow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+func _Integral_IntegralHarvest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(AddReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(IntegralServer).AddFlow(ctx, in)
|
|
|
+ return srv.(IntegralServer).IntegralHarvest(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/integral.Integral/AddFlow",
|
|
|
+ FullMethod: "/integral.Integral/IntegralHarvest",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(IntegralServer).AddFlow(ctx, req.(*AddReq))
|
|
|
+ return srv.(IntegralServer).IntegralHarvest(ctx, req.(*AddReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Integral_UpdateBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+func _Integral_IntegralConsume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(AddReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(IntegralServer).UpdateBalance(ctx, in)
|
|
|
+ return srv.(IntegralServer).IntegralConsume(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/integral.Integral/UpdateBalance",
|
|
|
+ FullMethod: "/integral.Integral/IntegralConsume",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(IntegralServer).UpdateBalance(ctx, req.(*AddReq))
|
|
|
+ return srv.(IntegralServer).IntegralConsume(ctx, req.(*AddReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Integral_UpdateTotal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+func _Integral_IntegralBalanceCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(AddReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(IntegralServer).UpdateTotal(ctx, in)
|
|
|
+ return srv.(IntegralServer).IntegralBalanceCheck(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/integral.Integral/UpdateTotal",
|
|
|
+ FullMethod: "/integral.Integral/IntegralBalanceCheck",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(IntegralServer).UpdateTotal(ctx, req.(*AddReq))
|
|
|
+ return srv.(IntegralServer).IntegralBalanceCheck(ctx, req.(*AddReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Integral_IntegralConsume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+func _Integral_IntegralDetailedCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(AddReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(IntegralServer).IntegralConsume(ctx, in)
|
|
|
+ return srv.(IntegralServer).IntegralDetailedCheck(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/integral.Integral/IntegralConsume",
|
|
|
+ FullMethod: "/integral.Integral/IntegralDetailedCheck",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(IntegralServer).IntegralConsume(ctx, req.(*AddReq))
|
|
|
+ return srv.(IntegralServer).IntegralDetailedCheck(ctx, req.(*AddReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
@@ -600,20 +602,20 @@ func _Integral_IntegralGuard_Handler(srv interface{}, ctx context.Context, dec f
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Integral_IntegralCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+func _Integral_IntegralExpireCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(AddReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(IntegralServer).IntegralCheck(ctx, in)
|
|
|
+ return srv.(IntegralServer).IntegralExpireCheck(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/integral.Integral/IntegralCheck",
|
|
|
+ FullMethod: "/integral.Integral/IntegralExpireCheck",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(IntegralServer).IntegralCheck(ctx, req.(*AddReq))
|
|
|
+ return srv.(IntegralServer).IntegralExpireCheck(ctx, req.(*AddReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
@@ -623,28 +625,28 @@ var _Integral_serviceDesc = grpc.ServiceDesc{
|
|
|
HandlerType: (*IntegralServer)(nil),
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
{
|
|
|
- MethodName: "addFlow",
|
|
|
- Handler: _Integral_AddFlow_Handler,
|
|
|
+ MethodName: "integralHarvest",
|
|
|
+ Handler: _Integral_IntegralHarvest_Handler,
|
|
|
},
|
|
|
{
|
|
|
- MethodName: "updateBalance",
|
|
|
- Handler: _Integral_UpdateBalance_Handler,
|
|
|
+ MethodName: "integralConsume",
|
|
|
+ Handler: _Integral_IntegralConsume_Handler,
|
|
|
},
|
|
|
{
|
|
|
- MethodName: "updateTotal",
|
|
|
- Handler: _Integral_UpdateTotal_Handler,
|
|
|
+ MethodName: "integralBalanceCheck",
|
|
|
+ Handler: _Integral_IntegralBalanceCheck_Handler,
|
|
|
},
|
|
|
{
|
|
|
- MethodName: "integralConsume",
|
|
|
- Handler: _Integral_IntegralConsume_Handler,
|
|
|
+ MethodName: "integralDetailedCheck",
|
|
|
+ Handler: _Integral_IntegralDetailedCheck_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "integralGuard",
|
|
|
Handler: _Integral_IntegralGuard_Handler,
|
|
|
},
|
|
|
{
|
|
|
- MethodName: "integralCheck",
|
|
|
- Handler: _Integral_IntegralCheck_Handler,
|
|
|
+ MethodName: "integralExpireCheck",
|
|
|
+ Handler: _Integral_IntegralExpireCheck_Handler,
|
|
|
},
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|