15 lines
538 B
Go
15 lines
538 B
Go
package cpdaily
|
|
|
|
import (
|
|
"context"
|
|
v1 "likedream-goframe/internal/api/v1"
|
|
"likedream-goframe/internal/utils"
|
|
)
|
|
|
|
type ICpImageCtrlV1 interface {
|
|
Upload(ctx context.Context, req *v1.UploadImageReq) (res *utils.Response[any], err error)
|
|
Preview(ctx context.Context, req *v1.PreviewImageReq) (res *utils.Response[any], err error)
|
|
GetUploadPolicy(ctx context.Context, req *v1.GetUploadPolicyReq) (res *utils.Response[any], err error)
|
|
GetPreviewUrl(ctx context.Context, req *v1.GetPreviewUrlReq) (res *utils.Response[any], err error)
|
|
}
|