Files
novel_server/internal/service/user_follow_author.go
2025-07-16 15:16:40 +08:00

40 lines
1.4 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 (
IUserFollowAuthor interface {
// List retrieves a paginated list of user follow authors
List(ctx context.Context, in *model.UserFollowAuthorListIn) (out *model.UserFollowAuthorListOut, err error)
// Create adds a new user follow author
Create(ctx context.Context, in *model.UserFollowAuthorAddIn) (out *model.UserFollowAuthorCRUDOut, err error)
// Delete removes a user follow author by id
Delete(ctx context.Context, in *model.UserFollowAuthorDelIn) (out *model.UserFollowAuthorCRUDOut, err error)
// Unfollow removes a user follow author by userId and authorId
Unfollow(ctx context.Context, userId int64, authorId int64) (out *model.UserFollowAuthorCRUDOut, err error)
}
)
var (
localUserFollowAuthor IUserFollowAuthor
)
func UserFollowAuthor() IUserFollowAuthor {
if localUserFollowAuthor == nil {
panic("implement not found for interface IUserFollowAuthor, forgot register?")
}
return localUserFollowAuthor
}
func RegisterUserFollowAuthor(i IUserFollowAuthor) {
localUserFollowAuthor = i
}