feat: 新增创作作品管理模块及相关配置
This commit is contained in:
22
workflow/controller/creation_info_controller.go
Normal file
22
workflow/controller/creation_info_controller.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"ai-agent/workflow/model/dto"
|
||||
"ai-agent/workflow/service"
|
||||
"context"
|
||||
|
||||
"gitea.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)
|
||||
}
|
||||
Reference in New Issue
Block a user