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.
17 lines
525 B
Go
17 lines
525 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-sonic/sonic/consts"
|
|
"github.com/go-sonic/sonic/model/entity"
|
|
"github.com/go-sonic/sonic/model/param"
|
|
)
|
|
|
|
type JournalCommentService interface {
|
|
BaseCommentService
|
|
CountByStatusAndJournalID(ctx context.Context, status consts.CommentStatus, journalIDs []int32) (map[int32]int64, error)
|
|
UpdateBy(ctx context.Context, commentID int32, commentParam *param.Comment) (*entity.Comment, error)
|
|
CountByStatus(ctx context.Context, status consts.CommentStatus) (int64, error)
|
|
}
|