// Code generated by protoc-gen-triple. DO NOT EDIT. // // Source: task.proto package task import ( "context" ) import ( "dubbo.apache.org/dubbo-go/v3" "dubbo.apache.org/dubbo-go/v3/client" "dubbo.apache.org/dubbo-go/v3/common" "dubbo.apache.org/dubbo-go/v3/common/constant" "dubbo.apache.org/dubbo-go/v3/protocol/triple/triple_protocol" "dubbo.apache.org/dubbo-go/v3/server" ) // This is a compile-time assertion to ensure that this generated file and the Triple package // are compatible. If you get a compiler error that this constant is not defined, this code was // generated with a version of Triple newer than the one compiled into your binary. You can fix the // problem by either regenerating this code with an older version of Triple or updating the Triple // version compiled into your binary. const _ = triple_protocol.IsAtLeastVersion0_1_0 const ( // TaskMobileServiceName is the fully-qualified name of the TaskMobileService service. TaskMobileServiceName = "topfans.task.TaskMobileService" ) // These constants are the fully-qualified names of the RPCs defined in this package. They're // exposed at runtime as procedure and as the final two segments of the HTTP route. // // Note that these are different from the fully-qualified method names used by // google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to // reflection-formatted method names, remove the leading slash and convert the remaining slash to a // period. const ( // TaskMobileServiceGetDailyTasksProcedure is the fully-qualified name of the TaskMobileService's GetDailyTasks RPC. TaskMobileServiceGetDailyTasksProcedure = "/topfans.task.TaskMobileService/GetDailyTasks" // TaskMobileServiceReportEventProcedure is the fully-qualified name of the TaskMobileService's ReportEvent RPC. TaskMobileServiceReportEventProcedure = "/topfans.task.TaskMobileService/ReportEvent" // TaskMobileServiceClaimDailyTaskProcedure is the fully-qualified name of the TaskMobileService's ClaimDailyTask RPC. TaskMobileServiceClaimDailyTaskProcedure = "/topfans.task.TaskMobileService/ClaimDailyTask" // TaskMobileServiceClaimAllDailyTasksProcedure is the fully-qualified name of the TaskMobileService's ClaimAllDailyTasks RPC. TaskMobileServiceClaimAllDailyTasksProcedure = "/topfans.task.TaskMobileService/ClaimAllDailyTasks" // TaskMobileServiceCompleteGuideProcedure is the fully-qualified name of the TaskMobileService's CompleteGuide RPC. TaskMobileServiceCompleteGuideProcedure = "/topfans.task.TaskMobileService/CompleteGuide" // TaskMobileServiceGetOnboardingStatusProcedure is the fully-qualified name of the TaskMobileService's GetOnboardingStatus RPC. TaskMobileServiceGetOnboardingStatusProcedure = "/topfans.task.TaskMobileService/GetOnboardingStatus" // TaskMobileServiceAdvanceStageProcedure is the fully-qualified name of the TaskMobileService's AdvanceStage RPC. TaskMobileServiceAdvanceStageProcedure = "/topfans.task.TaskMobileService/AdvanceStage" // TaskMobileServiceClaimOnboardingRewardProcedure is the fully-qualified name of the TaskMobileService's ClaimOnboardingReward RPC. TaskMobileServiceClaimOnboardingRewardProcedure = "/topfans.task.TaskMobileService/ClaimOnboardingReward" // TaskMobileServiceGetExhibitionRevenueProcedure is the fully-qualified name of the TaskMobileService's GetExhibitionRevenue RPC. TaskMobileServiceGetExhibitionRevenueProcedure = "/topfans.task.TaskMobileService/GetExhibitionRevenue" // TaskMobileServiceClaimExhibitionRevenueProcedure is the fully-qualified name of the TaskMobileService's ClaimExhibitionRevenue RPC. TaskMobileServiceClaimExhibitionRevenueProcedure = "/topfans.task.TaskMobileService/ClaimExhibitionRevenue" // TaskMobileServiceClaimAllExhibitionRevenueProcedure is the fully-qualified name of the TaskMobileService's ClaimAllExhibitionRevenue RPC. TaskMobileServiceClaimAllExhibitionRevenueProcedure = "/topfans.task.TaskMobileService/ClaimAllExhibitionRevenue" ) const ( // TaskInternalServiceName is the fully-qualified name of the TaskInternalService service. TaskInternalServiceName = "topfans.task.TaskInternalService" ) // These constants are the fully-qualified names of the RPCs defined in this package. They're // exposed at runtime as procedure and as the final two segments of the HTTP route. // // Note that these are different from the fully-qualified method names used by // google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to // reflection-formatted method names, remove the leading slash and convert the remaining slash to a // period. const ( // TaskInternalServiceInitUserTasksProcedure is the fully-qualified name of the TaskInternalService's InitUserTasks RPC. TaskInternalServiceInitUserTasksProcedure = "/topfans.task.TaskInternalService/InitUserTasks" // TaskInternalServiceOnExhibitionCompletedProcedure is the fully-qualified name of the TaskInternalService's OnExhibitionCompleted RPC. TaskInternalServiceOnExhibitionCompletedProcedure = "/topfans.task.TaskInternalService/OnExhibitionCompleted" ) var ( _ TaskMobileService = (*TaskMobileServiceImpl)(nil) _ TaskInternalService = (*TaskInternalServiceImpl)(nil) ) // TaskMobileService is a client for the topfans.task.TaskMobileService service. type TaskMobileService interface { GetDailyTasks(ctx context.Context, req *GetDailyTasksRequest, opts ...client.CallOption) (*GetDailyTasksResponse, error) ReportEvent(ctx context.Context, req *ReportEventRequest, opts ...client.CallOption) (*ReportEventResponse, error) ClaimDailyTask(ctx context.Context, req *ClaimDailyTaskRequest, opts ...client.CallOption) (*ClaimDailyTaskResponse, error) ClaimAllDailyTasks(ctx context.Context, req *ClaimAllDailyTasksRequest, opts ...client.CallOption) (*ClaimAllDailyTasksResponse, error) CompleteGuide(ctx context.Context, req *CompleteGuideRequest, opts ...client.CallOption) (*CompleteGuideResponse, error) GetOnboardingStatus(ctx context.Context, req *GetOnboardingStatusRequest, opts ...client.CallOption) (*GetOnboardingStatusResponse, error) AdvanceStage(ctx context.Context, req *AdvanceStageRequest, opts ...client.CallOption) (*AdvanceStageResponse, error) ClaimOnboardingReward(ctx context.Context, req *ClaimOnboardingRewardRequest, opts ...client.CallOption) (*ClaimOnboardingRewardResponse, error) GetExhibitionRevenue(ctx context.Context, req *GetExhibitionRevenueRequest, opts ...client.CallOption) (*GetExhibitionRevenueResponse, error) ClaimExhibitionRevenue(ctx context.Context, req *ClaimExhibitionRevenueRequest, opts ...client.CallOption) (*ClaimExhibitionRevenueResponse, error) ClaimAllExhibitionRevenue(ctx context.Context, req *ClaimAllExhibitionRevenueRequest, opts ...client.CallOption) (*ClaimAllExhibitionRevenueResponse, error) } // TaskInternalService is a client for the topfans.task.TaskInternalService service. type TaskInternalService interface { InitUserTasks(ctx context.Context, req *InitUserTasksRequest, opts ...client.CallOption) (*InitUserTasksResponse, error) OnExhibitionCompleted(ctx context.Context, req *OnExhibitionCompletedRequest, opts ...client.CallOption) (*OnExhibitionCompletedResponse, error) } // NewTaskMobileService constructs a client for the task.TaskMobileService service. func NewTaskMobileService(cli *client.Client, opts ...client.ReferenceOption) (TaskMobileService, error) { conn, err := cli.DialWithInfo("topfans.task.TaskMobileService", &TaskMobileService_ClientInfo, opts...) if err != nil { return nil, err } return &TaskMobileServiceImpl{ conn: conn, }, nil } func SetConsumerTaskMobileService(srv common.RPCService) { dubbo.SetConsumerServiceWithInfo(srv, &TaskMobileService_ClientInfo) } // TaskMobileServiceImpl implements TaskMobileService. type TaskMobileServiceImpl struct { conn *client.Connection } func (c *TaskMobileServiceImpl) GetDailyTasks(ctx context.Context, req *GetDailyTasksRequest, opts ...client.CallOption) (*GetDailyTasksResponse, error) { resp := new(GetDailyTasksResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "GetDailyTasks", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) ReportEvent(ctx context.Context, req *ReportEventRequest, opts ...client.CallOption) (*ReportEventResponse, error) { resp := new(ReportEventResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "ReportEvent", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) ClaimDailyTask(ctx context.Context, req *ClaimDailyTaskRequest, opts ...client.CallOption) (*ClaimDailyTaskResponse, error) { resp := new(ClaimDailyTaskResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "ClaimDailyTask", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) ClaimAllDailyTasks(ctx context.Context, req *ClaimAllDailyTasksRequest, opts ...client.CallOption) (*ClaimAllDailyTasksResponse, error) { resp := new(ClaimAllDailyTasksResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "ClaimAllDailyTasks", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) CompleteGuide(ctx context.Context, req *CompleteGuideRequest, opts ...client.CallOption) (*CompleteGuideResponse, error) { resp := new(CompleteGuideResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "CompleteGuide", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) GetOnboardingStatus(ctx context.Context, req *GetOnboardingStatusRequest, opts ...client.CallOption) (*GetOnboardingStatusResponse, error) { resp := new(GetOnboardingStatusResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "GetOnboardingStatus", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) AdvanceStage(ctx context.Context, req *AdvanceStageRequest, opts ...client.CallOption) (*AdvanceStageResponse, error) { resp := new(AdvanceStageResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "AdvanceStage", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) ClaimOnboardingReward(ctx context.Context, req *ClaimOnboardingRewardRequest, opts ...client.CallOption) (*ClaimOnboardingRewardResponse, error) { resp := new(ClaimOnboardingRewardResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "ClaimOnboardingReward", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) GetExhibitionRevenue(ctx context.Context, req *GetExhibitionRevenueRequest, opts ...client.CallOption) (*GetExhibitionRevenueResponse, error) { resp := new(GetExhibitionRevenueResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "GetExhibitionRevenue", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) ClaimExhibitionRevenue(ctx context.Context, req *ClaimExhibitionRevenueRequest, opts ...client.CallOption) (*ClaimExhibitionRevenueResponse, error) { resp := new(ClaimExhibitionRevenueResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "ClaimExhibitionRevenue", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskMobileServiceImpl) ClaimAllExhibitionRevenue(ctx context.Context, req *ClaimAllExhibitionRevenueRequest, opts ...client.CallOption) (*ClaimAllExhibitionRevenueResponse, error) { resp := new(ClaimAllExhibitionRevenueResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "ClaimAllExhibitionRevenue", opts...); err != nil { return nil, err } return resp, nil } // NewTaskInternalService constructs a client for the task.TaskInternalService service. func NewTaskInternalService(cli *client.Client, opts ...client.ReferenceOption) (TaskInternalService, error) { conn, err := cli.DialWithInfo("topfans.task.TaskInternalService", &TaskInternalService_ClientInfo, opts...) if err != nil { return nil, err } return &TaskInternalServiceImpl{ conn: conn, }, nil } func SetConsumerTaskInternalService(srv common.RPCService) { dubbo.SetConsumerServiceWithInfo(srv, &TaskInternalService_ClientInfo) } // TaskInternalServiceImpl implements TaskInternalService. type TaskInternalServiceImpl struct { conn *client.Connection } func (c *TaskInternalServiceImpl) InitUserTasks(ctx context.Context, req *InitUserTasksRequest, opts ...client.CallOption) (*InitUserTasksResponse, error) { resp := new(InitUserTasksResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "InitUserTasks", opts...); err != nil { return nil, err } return resp, nil } func (c *TaskInternalServiceImpl) OnExhibitionCompleted(ctx context.Context, req *OnExhibitionCompletedRequest, opts ...client.CallOption) (*OnExhibitionCompletedResponse, error) { resp := new(OnExhibitionCompletedResponse) if err := c.conn.CallUnary(ctx, []interface{}{req}, resp, "OnExhibitionCompleted", opts...); err != nil { return nil, err } return resp, nil } var TaskMobileService_ClientInfo = client.ClientInfo{ InterfaceName: "topfans.task.TaskMobileService", MethodNames: []string{"GetDailyTasks", "ReportEvent", "ClaimDailyTask", "ClaimAllDailyTasks", "CompleteGuide", "GetOnboardingStatus", "AdvanceStage", "ClaimOnboardingReward", "GetExhibitionRevenue", "ClaimExhibitionRevenue", "ClaimAllExhibitionRevenue"}, ConnectionInjectFunc: func(dubboCliRaw interface{}, conn *client.Connection) { dubboCli := dubboCliRaw.(*TaskMobileServiceImpl) dubboCli.conn = conn }, } var TaskInternalService_ClientInfo = client.ClientInfo{ InterfaceName: "topfans.task.TaskInternalService", MethodNames: []string{"InitUserTasks", "OnExhibitionCompleted"}, ConnectionInjectFunc: func(dubboCliRaw interface{}, conn *client.Connection) { dubboCli := dubboCliRaw.(*TaskInternalServiceImpl) dubboCli.conn = conn }, } // TaskMobileServiceHandler is an implementation of the topfans.task.TaskMobileService service. type TaskMobileServiceHandler interface { GetDailyTasks(context.Context, *GetDailyTasksRequest) (*GetDailyTasksResponse, error) ReportEvent(context.Context, *ReportEventRequest) (*ReportEventResponse, error) ClaimDailyTask(context.Context, *ClaimDailyTaskRequest) (*ClaimDailyTaskResponse, error) ClaimAllDailyTasks(context.Context, *ClaimAllDailyTasksRequest) (*ClaimAllDailyTasksResponse, error) CompleteGuide(context.Context, *CompleteGuideRequest) (*CompleteGuideResponse, error) GetOnboardingStatus(context.Context, *GetOnboardingStatusRequest) (*GetOnboardingStatusResponse, error) AdvanceStage(context.Context, *AdvanceStageRequest) (*AdvanceStageResponse, error) ClaimOnboardingReward(context.Context, *ClaimOnboardingRewardRequest) (*ClaimOnboardingRewardResponse, error) GetExhibitionRevenue(context.Context, *GetExhibitionRevenueRequest) (*GetExhibitionRevenueResponse, error) ClaimExhibitionRevenue(context.Context, *ClaimExhibitionRevenueRequest) (*ClaimExhibitionRevenueResponse, error) ClaimAllExhibitionRevenue(context.Context, *ClaimAllExhibitionRevenueRequest) (*ClaimAllExhibitionRevenueResponse, error) } func RegisterTaskMobileServiceHandler(srv *server.Server, hdlr TaskMobileServiceHandler, opts ...server.ServiceOption) error { return srv.Register(hdlr, &TaskMobileService_ServiceInfo, opts...) } func SetProviderTaskMobileService(srv common.RPCService) { dubbo.SetProviderServiceWithInfo(srv, &TaskMobileService_ServiceInfo) } // TaskInternalServiceHandler is an implementation of the topfans.task.TaskInternalService service. type TaskInternalServiceHandler interface { InitUserTasks(context.Context, *InitUserTasksRequest) (*InitUserTasksResponse, error) OnExhibitionCompleted(context.Context, *OnExhibitionCompletedRequest) (*OnExhibitionCompletedResponse, error) } func RegisterTaskInternalServiceHandler(srv *server.Server, hdlr TaskInternalServiceHandler, opts ...server.ServiceOption) error { return srv.Register(hdlr, &TaskInternalService_ServiceInfo, opts...) } func SetProviderTaskInternalService(srv common.RPCService) { dubbo.SetProviderServiceWithInfo(srv, &TaskInternalService_ServiceInfo) } var TaskMobileService_ServiceInfo = server.ServiceInfo{ InterfaceName: "topfans.task.TaskMobileService", ServiceType: (*TaskMobileServiceHandler)(nil), Methods: []server.MethodInfo{ { Name: "GetDailyTasks", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(GetDailyTasksRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*GetDailyTasksRequest) res, err := handler.(TaskMobileServiceHandler).GetDailyTasks(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "ReportEvent", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(ReportEventRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*ReportEventRequest) res, err := handler.(TaskMobileServiceHandler).ReportEvent(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "ClaimDailyTask", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(ClaimDailyTaskRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*ClaimDailyTaskRequest) res, err := handler.(TaskMobileServiceHandler).ClaimDailyTask(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "ClaimAllDailyTasks", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(ClaimAllDailyTasksRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*ClaimAllDailyTasksRequest) res, err := handler.(TaskMobileServiceHandler).ClaimAllDailyTasks(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "CompleteGuide", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(CompleteGuideRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*CompleteGuideRequest) res, err := handler.(TaskMobileServiceHandler).CompleteGuide(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "GetOnboardingStatus", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(GetOnboardingStatusRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*GetOnboardingStatusRequest) res, err := handler.(TaskMobileServiceHandler).GetOnboardingStatus(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "AdvanceStage", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(AdvanceStageRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*AdvanceStageRequest) res, err := handler.(TaskMobileServiceHandler).AdvanceStage(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "ClaimOnboardingReward", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(ClaimOnboardingRewardRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*ClaimOnboardingRewardRequest) res, err := handler.(TaskMobileServiceHandler).ClaimOnboardingReward(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "GetExhibitionRevenue", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(GetExhibitionRevenueRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*GetExhibitionRevenueRequest) res, err := handler.(TaskMobileServiceHandler).GetExhibitionRevenue(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "ClaimExhibitionRevenue", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(ClaimExhibitionRevenueRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*ClaimExhibitionRevenueRequest) res, err := handler.(TaskMobileServiceHandler).ClaimExhibitionRevenue(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "ClaimAllExhibitionRevenue", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(ClaimAllExhibitionRevenueRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*ClaimAllExhibitionRevenueRequest) res, err := handler.(TaskMobileServiceHandler).ClaimAllExhibitionRevenue(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, }, } var TaskInternalService_ServiceInfo = server.ServiceInfo{ InterfaceName: "topfans.task.TaskInternalService", ServiceType: (*TaskInternalServiceHandler)(nil), Methods: []server.MethodInfo{ { Name: "InitUserTasks", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(InitUserTasksRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*InitUserTasksRequest) res, err := handler.(TaskInternalServiceHandler).InitUserTasks(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, { Name: "OnExhibitionCompleted", Type: constant.CallUnary, ReqInitFunc: func() interface{} { return new(OnExhibitionCompletedRequest) }, MethodFunc: func(ctx context.Context, args []interface{}, handler interface{}) (interface{}, error) { req := args[0].(*OnExhibitionCompletedRequest) res, err := handler.(TaskInternalServiceHandler).OnExhibitionCompleted(ctx, req) if err != nil { return nil, err } return triple_protocol.NewResponse(res), nil }, }, }, }