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/comment_post.go

17 lines
485 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 PostCommentService interface {
BaseCommentService
CreateBy(ctx context.Context, commentParam *param.Comment) (*entity.Comment, error)
CountByStatus(ctx context.Context, status consts.CommentStatus) (int64, error)
UpdateBy(ctx context.Context, commentID int32, commentParam *param.Comment) (*entity.Comment, error)
}