实现奖励类型的增删改查
This commit is contained in:
32
internal/service/reward.go
Normal file
32
internal/service/reward.go
Normal file
@ -0,0 +1,32 @@
|
||||
// ================================================================================
|
||||
// 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 {
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user