Initial commit

This commit is contained in:
Mrixs committed 2026-10-14 23:04:51 +03:00
commit 02a6dabcfb
62 files changed
+15751

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
package models
import (
"context"
)
// ClientInterface defines the minimal client interface needed by models
type ClientInterface interface {
GetRequest() RequestInterface
}
// RequestInterface defines the minimal request interface needed by models
type RequestInterface interface {
Get(ctx context.Context, path string, params map[string]string, result any) error
Post(ctx context.Context, path string, body any, result any) error
Put(ctx context.Context, path string, body any, result any) error
Delete(ctx context.Context, path string, body any, result any) error
Download(ctx context.Context, url string) ([]byte, error)
}