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
496 B
Go
17 lines
496 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"mime/multipart"
|
|
|
|
"github.com/go-sonic/sonic/model/dto"
|
|
"github.com/go-sonic/sonic/model/param"
|
|
)
|
|
|
|
type ScrapService interface {
|
|
QueryMd5List(ctx context.Context) ([]string, error)
|
|
Create(ctx context.Context, pageParam *param.ScrapPage, file *multipart.FileHeader) (*dto.ScrapPageDTO, error)
|
|
Get(ctx context.Context, pageID int32) (*dto.ScrapPageDTO, error)
|
|
Query(ctx context.Context, query *param.ScrapPageQuery) ([]*dto.ScrapPageDTO, int64, error)
|
|
}
|