完善功能
This commit is contained in:
37
internal/service/user_read_record.go
Normal file
37
internal/service/user_read_record.go
Normal file
@ -0,0 +1,37 @@
|
||||
// ================================================================================
|
||||
// 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 (
|
||||
IUserReadRecord interface {
|
||||
// List retrieves a paginated list of user read records
|
||||
List(ctx context.Context, in *model.UserReadRecordListIn) (out *model.UserReadRecordListOut, err error)
|
||||
// Create adds a new user read record
|
||||
Create(ctx context.Context, in *model.UserReadRecordAddIn) (out *model.UserReadRecordCRUDOut, err error)
|
||||
// Delete removes user read records by userId and bookIds
|
||||
Delete(ctx context.Context, in *model.UserReadRecordDelIn) (out *model.UserReadRecordCRUDOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localUserReadRecord IUserReadRecord
|
||||
)
|
||||
|
||||
func UserReadRecord() IUserReadRecord {
|
||||
if localUserReadRecord == nil {
|
||||
panic("implement not found for interface IUserReadRecord, forgot register?")
|
||||
}
|
||||
return localUserReadRecord
|
||||
}
|
||||
|
||||
func RegisterUserReadRecord(i IUserReadRecord) {
|
||||
localUserReadRecord = i
|
||||
}
|
||||
Reference in New Issue
Block a user