完善功能
This commit is contained in:
35
internal/service/user_read_history.go
Normal file
35
internal/service/user_read_history.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 (
|
||||
IUserReadHistory interface {
|
||||
// Add 添加历史记录
|
||||
Add(ctx context.Context, in *model.UserReadHistoryAddIn) (out *model.UserReadHistoryCRUDOut, err error)
|
||||
// Delete 批量删除历史记录
|
||||
Delete(ctx context.Context, in *model.UserReadHistoryDelIn) (out *model.UserReadHistoryCRUDOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localUserReadHistory IUserReadHistory
|
||||
)
|
||||
|
||||
func UserReadHistory() IUserReadHistory {
|
||||
if localUserReadHistory == nil {
|
||||
panic("implement not found for interface IUserReadHistory, forgot register?")
|
||||
}
|
||||
return localUserReadHistory
|
||||
}
|
||||
|
||||
func RegisterUserReadHistory(i IUserReadHistory) {
|
||||
localUserReadHistory = i
|
||||
}
|
||||
Reference in New Issue
Block a user