|
@@ -24,18 +24,12 @@ const _ = grpc.SupportPackageIsVersion7
|
|
|
type ActivityClient interface {
|
|
|
//查询活动下的奖券
|
|
|
ActivityLottery(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityLotteryResp, error)
|
|
|
- //奖券领取
|
|
|
- LotteryReceive(ctx context.Context, in *LotteryOperation, opts ...grpc.CallOption) (*Response, error)
|
|
|
// 获取活动详细信息
|
|
|
GetLottery(ctx context.Context, in *GetLotteryReq, opts ...grpc.CallOption) (*GetLotteryRes, error)
|
|
|
// 主动发放奖券
|
|
|
LotteryGrant(ctx context.Context, in *LotteryGrantReq, opts ...grpc.CallOption) (*Response, error)
|
|
|
- //修改奖券状态
|
|
|
- LotteryStateChange(ctx context.Context, in *UpdateStateReq, opts ...grpc.CallOption) (*Response, error)
|
|
|
//奖券使用
|
|
|
ActivityUse(ctx context.Context, in *LotteryOperation, opts ...grpc.CallOption) (*Response, error)
|
|
|
- //用户下的奖券
|
|
|
- UserLottery(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityLotteryResp, error)
|
|
|
//奖券信息
|
|
|
LotteryInfo(ctx context.Context, in *Request, opts ...grpc.CallOption) (*LotteryResp, error)
|
|
|
//查看当前商品是否存在买送的卷
|
|
@@ -48,8 +42,16 @@ type ActivityClient interface {
|
|
|
FindUserLotteryId(ctx context.Context, in *UserLotteryRequest, opts ...grpc.CallOption) (*UserLotteryResp, error)
|
|
|
//限时活动获取
|
|
|
GiveActivity(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GiveActivityResp, error)
|
|
|
+ //奖券领取
|
|
|
+ LotteryReceive(ctx context.Context, in *LotteryOperation, opts ...grpc.CallOption) (*Response, error)
|
|
|
//商品下活动获取
|
|
|
GetAllActivity(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityResp, error)
|
|
|
+ //修改奖券状态
|
|
|
+ LotteryStateChange(ctx context.Context, in *UpdateStateReq, opts ...grpc.CallOption) (*Response, error)
|
|
|
+ //用户下的奖券
|
|
|
+ UserLottery(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityLotteryResp, error)
|
|
|
+ //商品获取
|
|
|
+ GetCommodityList(ctx context.Context, in *Request, opts ...grpc.CallOption) (*CommodityResp, error)
|
|
|
}
|
|
|
|
|
|
type activityClient struct {
|
|
@@ -69,15 +71,6 @@ func (c *activityClient) ActivityLottery(ctx context.Context, in *Request, opts
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *activityClient) LotteryReceive(ctx context.Context, in *LotteryOperation, opts ...grpc.CallOption) (*Response, error) {
|
|
|
- out := new(Response)
|
|
|
- err := c.cc.Invoke(ctx, "/activity.Activity/lotteryReceive", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
func (c *activityClient) GetLottery(ctx context.Context, in *GetLotteryReq, opts ...grpc.CallOption) (*GetLotteryRes, error) {
|
|
|
out := new(GetLotteryRes)
|
|
|
err := c.cc.Invoke(ctx, "/activity.Activity/getLottery", in, out, opts...)
|
|
@@ -96,15 +89,6 @@ func (c *activityClient) LotteryGrant(ctx context.Context, in *LotteryGrantReq,
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *activityClient) LotteryStateChange(ctx context.Context, in *UpdateStateReq, opts ...grpc.CallOption) (*Response, error) {
|
|
|
- out := new(Response)
|
|
|
- err := c.cc.Invoke(ctx, "/activity.Activity/lotteryStateChange", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
func (c *activityClient) ActivityUse(ctx context.Context, in *LotteryOperation, opts ...grpc.CallOption) (*Response, error) {
|
|
|
out := new(Response)
|
|
|
err := c.cc.Invoke(ctx, "/activity.Activity/activityUse", in, out, opts...)
|
|
@@ -114,15 +98,6 @@ func (c *activityClient) ActivityUse(ctx context.Context, in *LotteryOperation,
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *activityClient) UserLottery(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityLotteryResp, error) {
|
|
|
- out := new(ActivityLotteryResp)
|
|
|
- err := c.cc.Invoke(ctx, "/activity.Activity/userLottery", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
func (c *activityClient) LotteryInfo(ctx context.Context, in *Request, opts ...grpc.CallOption) (*LotteryResp, error) {
|
|
|
out := new(LotteryResp)
|
|
|
err := c.cc.Invoke(ctx, "/activity.Activity/lotteryInfo", in, out, opts...)
|
|
@@ -177,6 +152,15 @@ func (c *activityClient) GiveActivity(ctx context.Context, in *Request, opts ...
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *activityClient) LotteryReceive(ctx context.Context, in *LotteryOperation, opts ...grpc.CallOption) (*Response, error) {
|
|
|
+ out := new(Response)
|
|
|
+ err := c.cc.Invoke(ctx, "/activity.Activity/lotteryReceive", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *activityClient) GetAllActivity(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityResp, error) {
|
|
|
out := new(ActivityResp)
|
|
|
err := c.cc.Invoke(ctx, "/activity.Activity/getAllActivity", in, out, opts...)
|
|
@@ -186,24 +170,45 @@ func (c *activityClient) GetAllActivity(ctx context.Context, in *Request, opts .
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *activityClient) LotteryStateChange(ctx context.Context, in *UpdateStateReq, opts ...grpc.CallOption) (*Response, error) {
|
|
|
+ out := new(Response)
|
|
|
+ err := c.cc.Invoke(ctx, "/activity.Activity/lotteryStateChange", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *activityClient) UserLottery(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ActivityLotteryResp, error) {
|
|
|
+ out := new(ActivityLotteryResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/activity.Activity/userLottery", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *activityClient) GetCommodityList(ctx context.Context, in *Request, opts ...grpc.CallOption) (*CommodityResp, error) {
|
|
|
+ out := new(CommodityResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/activity.Activity/getCommodityList", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// ActivityServer is the server API for Activity service.
|
|
|
// All implementations must embed UnimplementedActivityServer
|
|
|
// for forward compatibility
|
|
|
type ActivityServer interface {
|
|
|
//查询活动下的奖券
|
|
|
ActivityLottery(context.Context, *Request) (*ActivityLotteryResp, error)
|
|
|
- //奖券领取
|
|
|
- LotteryReceive(context.Context, *LotteryOperation) (*Response, error)
|
|
|
// 获取活动详细信息
|
|
|
GetLottery(context.Context, *GetLotteryReq) (*GetLotteryRes, error)
|
|
|
// 主动发放奖券
|
|
|
LotteryGrant(context.Context, *LotteryGrantReq) (*Response, error)
|
|
|
- //修改奖券状态
|
|
|
- LotteryStateChange(context.Context, *UpdateStateReq) (*Response, error)
|
|
|
//奖券使用
|
|
|
ActivityUse(context.Context, *LotteryOperation) (*Response, error)
|
|
|
- //用户下的奖券
|
|
|
- UserLottery(context.Context, *Request) (*ActivityLotteryResp, error)
|
|
|
//奖券信息
|
|
|
LotteryInfo(context.Context, *Request) (*LotteryResp, error)
|
|
|
//查看当前商品是否存在买送的卷
|
|
@@ -216,8 +221,16 @@ type ActivityServer interface {
|
|
|
FindUserLotteryId(context.Context, *UserLotteryRequest) (*UserLotteryResp, error)
|
|
|
//限时活动获取
|
|
|
GiveActivity(context.Context, *Request) (*GiveActivityResp, error)
|
|
|
+ //奖券领取
|
|
|
+ LotteryReceive(context.Context, *LotteryOperation) (*Response, error)
|
|
|
//商品下活动获取
|
|
|
GetAllActivity(context.Context, *Request) (*ActivityResp, error)
|
|
|
+ //修改奖券状态
|
|
|
+ LotteryStateChange(context.Context, *UpdateStateReq) (*Response, error)
|
|
|
+ //用户下的奖券
|
|
|
+ UserLottery(context.Context, *Request) (*ActivityLotteryResp, error)
|
|
|
+ //商品获取
|
|
|
+ GetCommodityList(context.Context, *Request) (*CommodityResp, error)
|
|
|
mustEmbedUnimplementedActivityServer()
|
|
|
}
|
|
|
|
|
@@ -228,24 +241,15 @@ type UnimplementedActivityServer struct {
|
|
|
func (UnimplementedActivityServer) ActivityLottery(context.Context, *Request) (*ActivityLotteryResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ActivityLottery not implemented")
|
|
|
}
|
|
|
-func (UnimplementedActivityServer) LotteryReceive(context.Context, *LotteryOperation) (*Response, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method LotteryReceive not implemented")
|
|
|
-}
|
|
|
func (UnimplementedActivityServer) GetLottery(context.Context, *GetLotteryReq) (*GetLotteryRes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLottery not implemented")
|
|
|
}
|
|
|
func (UnimplementedActivityServer) LotteryGrant(context.Context, *LotteryGrantReq) (*Response, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LotteryGrant not implemented")
|
|
|
}
|
|
|
-func (UnimplementedActivityServer) LotteryStateChange(context.Context, *UpdateStateReq) (*Response, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method LotteryStateChange not implemented")
|
|
|
-}
|
|
|
func (UnimplementedActivityServer) ActivityUse(context.Context, *LotteryOperation) (*Response, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ActivityUse not implemented")
|
|
|
}
|
|
|
-func (UnimplementedActivityServer) UserLottery(context.Context, *Request) (*ActivityLotteryResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method UserLottery not implemented")
|
|
|
-}
|
|
|
func (UnimplementedActivityServer) LotteryInfo(context.Context, *Request) (*LotteryResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LotteryInfo not implemented")
|
|
|
}
|
|
@@ -264,9 +268,21 @@ func (UnimplementedActivityServer) FindUserLotteryId(context.Context, *UserLotte
|
|
|
func (UnimplementedActivityServer) GiveActivity(context.Context, *Request) (*GiveActivityResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GiveActivity not implemented")
|
|
|
}
|
|
|
+func (UnimplementedActivityServer) LotteryReceive(context.Context, *LotteryOperation) (*Response, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method LotteryReceive not implemented")
|
|
|
+}
|
|
|
func (UnimplementedActivityServer) GetAllActivity(context.Context, *Request) (*ActivityResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetAllActivity not implemented")
|
|
|
}
|
|
|
+func (UnimplementedActivityServer) LotteryStateChange(context.Context, *UpdateStateReq) (*Response, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method LotteryStateChange not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedActivityServer) UserLottery(context.Context, *Request) (*ActivityLotteryResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UserLottery not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedActivityServer) GetCommodityList(context.Context, *Request) (*CommodityResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetCommodityList not implemented")
|
|
|
+}
|
|
|
func (UnimplementedActivityServer) mustEmbedUnimplementedActivityServer() {}
|
|
|
|
|
|
// UnsafeActivityServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -298,24 +314,6 @@ func _Activity_ActivityLottery_Handler(srv interface{}, ctx context.Context, dec
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Activity_LotteryReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(LotteryOperation)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(ActivityServer).LotteryReceive(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/activity.Activity/lotteryReceive",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ActivityServer).LotteryReceive(ctx, req.(*LotteryOperation))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
func _Activity_GetLottery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(GetLotteryReq)
|
|
|
if err := dec(in); err != nil {
|
|
@@ -352,24 +350,6 @@ func _Activity_LotteryGrant_Handler(srv interface{}, ctx context.Context, dec fu
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Activity_LotteryStateChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(UpdateStateReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(ActivityServer).LotteryStateChange(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/activity.Activity/lotteryStateChange",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ActivityServer).LotteryStateChange(ctx, req.(*UpdateStateReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
func _Activity_ActivityUse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(LotteryOperation)
|
|
|
if err := dec(in); err != nil {
|
|
@@ -388,24 +368,6 @@ func _Activity_ActivityUse_Handler(srv interface{}, ctx context.Context, dec fun
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Activity_UserLottery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(Request)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(ActivityServer).UserLottery(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/activity.Activity/userLottery",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ActivityServer).UserLottery(ctx, req.(*Request))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
func _Activity_LotteryInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(Request)
|
|
|
if err := dec(in); err != nil {
|
|
@@ -514,6 +476,24 @@ func _Activity_GiveActivity_Handler(srv interface{}, ctx context.Context, dec fu
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Activity_LotteryReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(LotteryOperation)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ActivityServer).LotteryReceive(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/activity.Activity/lotteryReceive",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ActivityServer).LotteryReceive(ctx, req.(*LotteryOperation))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _Activity_GetAllActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(Request)
|
|
|
if err := dec(in); err != nil {
|
|
@@ -532,6 +512,60 @@ func _Activity_GetAllActivity_Handler(srv interface{}, ctx context.Context, dec
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Activity_LotteryStateChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UpdateStateReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ActivityServer).LotteryStateChange(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/activity.Activity/lotteryStateChange",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ActivityServer).LotteryStateChange(ctx, req.(*UpdateStateReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Activity_UserLottery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(Request)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ActivityServer).UserLottery(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/activity.Activity/userLottery",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ActivityServer).UserLottery(ctx, req.(*Request))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Activity_GetCommodityList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(Request)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ActivityServer).GetCommodityList(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/activity.Activity/getCommodityList",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ActivityServer).GetCommodityList(ctx, req.(*Request))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// Activity_ServiceDesc is the grpc.ServiceDesc for Activity service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -543,10 +577,6 @@ var Activity_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "activityLottery",
|
|
|
Handler: _Activity_ActivityLottery_Handler,
|
|
|
},
|
|
|
- {
|
|
|
- MethodName: "lotteryReceive",
|
|
|
- Handler: _Activity_LotteryReceive_Handler,
|
|
|
- },
|
|
|
{
|
|
|
MethodName: "getLottery",
|
|
|
Handler: _Activity_GetLottery_Handler,
|
|
@@ -555,18 +585,10 @@ var Activity_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "lotteryGrant",
|
|
|
Handler: _Activity_LotteryGrant_Handler,
|
|
|
},
|
|
|
- {
|
|
|
- MethodName: "lotteryStateChange",
|
|
|
- Handler: _Activity_LotteryStateChange_Handler,
|
|
|
- },
|
|
|
{
|
|
|
MethodName: "activityUse",
|
|
|
Handler: _Activity_ActivityUse_Handler,
|
|
|
},
|
|
|
- {
|
|
|
- MethodName: "userLottery",
|
|
|
- Handler: _Activity_UserLottery_Handler,
|
|
|
- },
|
|
|
{
|
|
|
MethodName: "lotteryInfo",
|
|
|
Handler: _Activity_LotteryInfo_Handler,
|
|
@@ -591,10 +613,26 @@ var Activity_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "giveActivity",
|
|
|
Handler: _Activity_GiveActivity_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "lotteryReceive",
|
|
|
+ Handler: _Activity_LotteryReceive_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "getAllActivity",
|
|
|
Handler: _Activity_GetAllActivity_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "lotteryStateChange",
|
|
|
+ Handler: _Activity_LotteryStateChange_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "userLottery",
|
|
|
+ Handler: _Activity_UserLottery_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "getCommodityList",
|
|
|
+ Handler: _Activity_GetCommodityList_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "activity.proto",
|