gamelife 自定义客户端集成游戏任务接口
This commit is contained in:
33
internal/service/store_task_reward.go
Normal file
33
internal/service/store_task_reward.go
Normal file
@ -0,0 +1,33 @@
|
||||
// ================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IStoreTaskReward interface {
|
||||
Create(ctx context.Context, in *model.StoreTaskRewardCreateIn) (out *model.StoreTaskRewardCreateOut, err error)
|
||||
Delete(ctx context.Context, in *model.StoreTaskRewardDeleteIn) (out *model.StoreTaskRewardDeleteOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localStoreTaskReward IStoreTaskReward
|
||||
)
|
||||
|
||||
func StoreTaskReward() IStoreTaskReward {
|
||||
if localStoreTaskReward == nil {
|
||||
panic("implement not found for interface IStoreTaskReward, forgot register?")
|
||||
}
|
||||
return localStoreTaskReward
|
||||
}
|
||||
|
||||
func RegisterStoreTaskReward(i IStoreTaskReward) {
|
||||
localStoreTaskReward = i
|
||||
}
|
||||
Reference in New Issue
Block a user