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.
sonic/service/meta.go

16 lines
411 B
Go

package service
import (
"context"
"github.com/go-sonic/sonic/model/dto"
"github.com/go-sonic/sonic/model/entity"
)
type MetaService interface {
GetPostsMeta(ctx context.Context, postIDs []int32) (map[int32][]*entity.Meta, error)
GetPostMeta(ctx context.Context, postID int32) ([]*entity.Meta, error)
ConvertToMetaDTO(meta *entity.Meta) *dto.Meta
ConvertToMetaDTOs(metas []*entity.Meta) []*dto.Meta
}