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

16 lines
362 B
Go

package service
import (
"context"
"github.com/go-sonic/sonic/model/dto"
"github.com/go-sonic/sonic/model/entity"
"github.com/go-sonic/sonic/model/param"
)
type LogService interface {
PageLog(ctx context.Context, page param.Page, sort *param.Sort) ([]*entity.Log, int64, error)
ConvertToDTO(log *entity.Log) *dto.Log
Clear(ctx context.Context) error
}