2026-06-10 14:23:55 +08:00
|
|
|
|
package pull
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"ai-agent/workflow/consts/flow"
|
|
|
|
|
|
"ai-agent/workflow/model/entity"
|
|
|
|
|
|
|
2026-06-11 09:16:53 +08:00
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
2026-06-10 14:23:55 +08:00
|
|
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type CreateActivePullReq struct {
|
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
|
RequestParament map[string]any `json:"requestParament"`
|
|
|
|
|
|
ResponseParament map[string]any `json:"responseParament"`
|
|
|
|
|
|
Extension map[string]any `json:"extension"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type CreateActivePullRes struct {
|
|
|
|
|
|
Id int64 `json:"id,string"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type UpdateActivePullReq struct {
|
|
|
|
|
|
Id int64 `json:"id" v:"required#ID不能为空"`
|
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
|
RequestParament map[string]any `json:"requestParament"`
|
|
|
|
|
|
ResponseParament map[string]any `json:"responseParament"`
|
|
|
|
|
|
Extension map[string]any `json:"extension"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type DeleteActivePullReq struct {
|
|
|
|
|
|
Id int64 `json:"id" v:"required#ID不能为空"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ListActivePullReq struct {
|
|
|
|
|
|
Page *beans.Page `json:"page"`
|
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ListActivePullRes struct {
|
|
|
|
|
|
List []*ActivePullVO `json:"list"`
|
|
|
|
|
|
Total int `json:"total"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ActivePullVO struct {
|
|
|
|
|
|
Id int64 `json:"id,string" dc:"id"`
|
|
|
|
|
|
FlowName string `json:"flowName" description:"流程名称"`
|
|
|
|
|
|
Description string `json:"description" description:"流程描述"`
|
|
|
|
|
|
FlowContent *entity.FlowInfo `json:"flowContent" description:"流程内容"`
|
|
|
|
|
|
NodeInputParams []*entity.FlowNode `json:"nodeInputParams" description:"节点输入参数"`
|
|
|
|
|
|
AccessLevel flow.FlowUserAccessLevel `json:"accessLevel" description:"访问权限:1私有,2团队,3公开"`
|
|
|
|
|
|
SourceFlowTemplateId int64 `json:"sourceFlowTemplateId,string" description:"来源流程模板ID"`
|
|
|
|
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
|
|
|
|
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
|
|
|
|
|
}
|