Files
ai-agent/workflow/controller/creation_info_controller.go
2026-06-10 15:29:21 +08:00

23 lines
583 B
Go

package controller
import (
"ai-agent/workflow/model/dto"
"ai-agent/workflow/service"
"context"
"gitea.redpowerfuture.com/red-future/common/beans"
)
type creationInfo struct{}
var CreationInfo = new(creationInfo)
func (c *creationInfo) GraphInvoke(ctx context.Context, req *dto.CreationInput) (res *beans.ResponseEmpty, err error) {
err = service.CreationInfoService.Creation(ctx, req)
return
}
func (c *creationInfo) List(ctx context.Context, req *dto.ListCreationInfoReq) (res *dto.ListCreationInfoRes, err error) {
return service.CreationInfoService.List(ctx, req)
}