mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
15 lines
540 B
Go
15 lines
540 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/entity"
|
|
"github.com/crawlab-team/crawlab/core/interfaces"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type BinderInterface interface {
|
|
Bind(c *gin.Context) (res interfaces.Model, err error)
|
|
BindList(c *gin.Context) (res []interfaces.Model, err error)
|
|
BindBatchRequestPayload(c *gin.Context) (payload entity.BatchRequestPayload, err error)
|
|
BindBatchRequestPayloadWithStringData(c *gin.Context) (payload entity.BatchRequestPayloadWithStringData, res interfaces.Model, err error)
|
|
}
|