mirror of https://github.com/go-sonic/sonic.git
feat: no application_password
parent
97d95406ee
commit
927be7bd76
@ -1,11 +1,11 @@
|
||||
package param
|
||||
|
||||
type ScrapPage struct {
|
||||
Title string `json:"title"`
|
||||
Summary string `json:"summary"`
|
||||
URL string `json:"url"`
|
||||
OriginURL string `json:"origin_url"`
|
||||
AddAt int64 `json:"add_at"`
|
||||
Md5 string `json:"md_5"`
|
||||
Content string `json:"content"`
|
||||
Title string `json:"title"`
|
||||
Summary *string `json:"summary"`
|
||||
URL string `json:"url"`
|
||||
OriginURL string `json:"origin_url"`
|
||||
AddAt *int64 `json:"add_at"`
|
||||
Md5 string `json:"md_5"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
@ -1,7 +1,12 @@
|
||||
package service
|
||||
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-sonic/sonic/model/param"
|
||||
)
|
||||
|
||||
type ScrapService interface {
|
||||
QueryMd5List(ctx context.Context) ([]string, error)
|
||||
Create(ctx context.Context, pageParam *param.ScrapPage) error
|
||||
}
|
||||
|
Loading…
Reference in New Issue