41 lines
1.1 KiB
Go
41 lines
1.1 KiB
Go
// ================================================================================
|
|
// 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 (
|
|
IReward interface {
|
|
// Create 创建奖励
|
|
Create(ctx context.Context, in *model.RewardCreateIn) (out *model.RewardCreateOut, err error)
|
|
// Update 更新奖励
|
|
// Update 更新奖励
|
|
Update(ctx context.Context, in *model.RewardUpdateIn) (out *model.RewardUpdateOut, err error)
|
|
// Delete 删除奖励
|
|
Delete(ctx context.Context, in *model.RewardDeleteIn) (out *model.RewardDeleteOut, err error)
|
|
// List 奖励列表
|
|
List(ctx context.Context, in *model.RewardListIn) (out *model.RewardListOut, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localReward IReward
|
|
)
|
|
|
|
func Reward() IReward {
|
|
if localReward == nil {
|
|
panic("implement not found for interface IReward, forgot register?")
|
|
}
|
|
return localReward
|
|
}
|
|
|
|
func RegisterReward(i IReward) {
|
|
localReward = i
|
|
}
|