完善功能

This commit is contained in:
2025-07-16 15:16:40 +08:00
parent b2871ec0d2
commit f68a5b360b
123 changed files with 4643 additions and 931 deletions

View 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
}