完善功能
This commit is contained in:
39
internal/service/user_follow_author.go
Normal file
39
internal/service/user_follow_author.go
Normal file
@ -0,0 +1,39 @@
|
||||
// ================================================================================
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user