mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
536 B
Go
16 lines
536 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-sonic/sonic/consts"
|
|
"github.com/go-sonic/sonic/model/entity"
|
|
)
|
|
|
|
type PostCategoryService interface {
|
|
ListByCategoryID(ctx context.Context, categoryID int32, status consts.PostStatus) ([]*entity.Post, error)
|
|
ListByPostIDs(ctx context.Context, postIDs []int32) ([]*entity.PostCategory, error)
|
|
ListCategoryMapByPostID(ctx context.Context, postIDs []int32) (map[int32][]*entity.Category, error)
|
|
ListCategoryByPostID(ctx context.Context, postID int32) ([]*entity.Category, error)
|
|
}
|