2025-09-23 14:34:24 +03:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
|
|
// Interface for sending requests to platform
|
|
|
|
|
type Caller interface {
|
|
|
|
|
// DecortApiCall method for sending requests to the platform
|
|
|
|
|
DecortApiCall(ctx context.Context, method, url string, params interface{}) ([]byte, error)
|
|
|
|
|
|
2025-09-27 01:06:15 +03:00
|
|
|
// DecortApiCallCtype method for sending requests to the platform
|
|
|
|
|
DecortApiCallCtype(ctx context.Context, method, url, ctype string, params interface{}) ([]byte, error)
|
|
|
|
|
|
2025-09-23 14:34:24 +03:00
|
|
|
// DecortApiCallMP method for sending requests to the platform
|
|
|
|
|
DecortApiCallMP(ctx context.Context, method, url string, params interface{}) ([]byte, error)
|
|
|
|
|
}
|