新增奖励类型的 CRUD
This commit is contained in:
35
internal/service/reward_type.go
Normal file
35
internal/service/reward_type.go
Normal file
@ -0,0 +1,35 @@
|
||||
// ================================================================================
|
||||
// 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 (
|
||||
IRewardType interface {
|
||||
List(ctx context.Context, in *model.RewardTypeIn) (out *model.RewardTypeOut, err error)
|
||||
CreateRewardType(ctx context.Context, in *model.CreateRewardTypeIn) (out *model.CreateRewardTypeOut, err error)
|
||||
UpdateRewardType(ctx context.Context, in *model.UpdateRewardTypeIn) (out *model.UpdateRewardTypeOut, err error)
|
||||
DeleteRewardType(ctx context.Context, in *model.DeleteRewardTypeIn) (out *model.DeleteRewardTypeOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localRewardType IRewardType
|
||||
)
|
||||
|
||||
func RewardType() IRewardType {
|
||||
if localRewardType == nil {
|
||||
panic("implement not found for interface IRewardType, forgot register?")
|
||||
}
|
||||
return localRewardType
|
||||
}
|
||||
|
||||
func RegisterRewardType(i IRewardType) {
|
||||
localRewardType = i
|
||||
}
|
||||
Reference in New Issue
Block a user