2026-01-18 18:20:40 +08:00
|
|
|
// ================================================================================
|
|
|
|
|
// 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 (
|
2026-01-18 19:07:41 +08:00
|
|
|
v1 "TrangleAgent/api/forum/v1"
|
2026-01-18 19:32:32 +08:00
|
|
|
"context"
|
2026-01-18 18:20:40 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type (
|
2026-02-05 21:35:42 +08:00
|
|
|
IForumBoards interface {
|
|
|
|
|
Create(ctx context.Context, req *v1.ForumBoardsCreateReq) (res *v1.ForumBoardsCreateRes, err error)
|
|
|
|
|
Update(ctx context.Context, req *v1.ForumBoardsUpdateReq) (res *v1.ForumBoardsUpdateRes, err error)
|
|
|
|
|
Delete(ctx context.Context, req *v1.ForumBoardsDeleteReq) (res *v1.ForumBoardsDeleteRes, err error)
|
|
|
|
|
View(ctx context.Context, req *v1.ForumBoardsViewReq) (res *v1.ForumBoardsViewRes, err error)
|
|
|
|
|
List(ctx context.Context, req *v1.ForumBoardsListReq) (res *v1.ForumBoardsListRes, err error)
|
|
|
|
|
}
|
2026-01-18 18:20:40 +08:00
|
|
|
IForumComments interface {
|
|
|
|
|
Create(ctx context.Context, req *v1.ForumCommentsCreateReq) (res *v1.ForumCommentsCreateRes, err error)
|
|
|
|
|
Update(ctx context.Context, req *v1.ForumCommentsUpdateReq) (res *v1.ForumCommentsUpdateRes, err error)
|
2026-02-05 21:35:42 +08:00
|
|
|
Delete(ctx context.Context, req *v1.ForumCommentsDeleteReq) (res *v1.ForumCommentsDeleteRes, err error)
|
2026-01-18 18:20:40 +08:00
|
|
|
View(ctx context.Context, req *v1.ForumCommentsViewReq) (res *v1.ForumCommentsViewRes, err error)
|
|
|
|
|
List(ctx context.Context, req *v1.ForumCommentsListReq) (res *v1.ForumCommentsListRes, err error)
|
|
|
|
|
}
|
|
|
|
|
IForumPosts interface {
|
|
|
|
|
Create(ctx context.Context, req *v1.ForumPostsCreateReq) (res *v1.ForumPostsCreateRes, err error)
|
|
|
|
|
Update(ctx context.Context, req *v1.ForumPostsUpdateReq) (res *v1.ForumPostsUpdateRes, err error)
|
2026-02-05 21:35:42 +08:00
|
|
|
Delete(ctx context.Context, req *v1.ForumPostsDeleteReq) (res *v1.ForumPostsDeleteRes, err error)
|
2026-01-18 18:20:40 +08:00
|
|
|
View(ctx context.Context, req *v1.ForumPostsViewReq) (res *v1.ForumPostsViewRes, err error)
|
|
|
|
|
List(ctx context.Context, req *v1.ForumPostsListReq) (res *v1.ForumPostsListRes, err error)
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
2026-02-05 21:35:42 +08:00
|
|
|
localForumBoards IForumBoards
|
2026-01-18 18:20:40 +08:00
|
|
|
localForumComments IForumComments
|
|
|
|
|
localForumPosts IForumPosts
|
|
|
|
|
)
|
|
|
|
|
|
2026-02-05 21:35:42 +08:00
|
|
|
func ForumBoards() IForumBoards {
|
|
|
|
|
if localForumBoards == nil {
|
|
|
|
|
panic("implement not found for interface IForumBoards, forgot register?")
|
|
|
|
|
}
|
|
|
|
|
return localForumBoards
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterForumBoards(i IForumBoards) {
|
|
|
|
|
localForumBoards = i
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-18 18:20:40 +08:00
|
|
|
func ForumComments() IForumComments {
|
|
|
|
|
if localForumComments == nil {
|
|
|
|
|
panic("implement not found for interface IForumComments, forgot register?")
|
|
|
|
|
}
|
|
|
|
|
return localForumComments
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterForumComments(i IForumComments) {
|
|
|
|
|
localForumComments = i
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func ForumPosts() IForumPosts {
|
|
|
|
|
if localForumPosts == nil {
|
|
|
|
|
panic("implement not found for interface IForumPosts, forgot register?")
|
|
|
|
|
}
|
|
|
|
|
return localForumPosts
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterForumPosts(i IForumPosts) {
|
|
|
|
|
localForumPosts = i
|
|
|
|
|
}
|