approveflow/app/http/module/flow_definition/api.go

29 lines
554 B
Go
Raw Permalink Normal View History

2024-11-14 17:02:41 +08:00
package flow_definition
import "github.com/Superdanda/hade/framework/gin"
type FlowDefinitionApi struct{}
func RegisterRoutes(r *gin.Engine) error {
api := &FlowDefinitionApi{}
Group := r.Group("/")
{
definitionGroup := Group.Group("/definition")
{
definitionGroup.POST("/save", api.DefinitionSave)
definitionGroup.POST("/query", api.DefinitionQuery)
definitionGroup.POST("/query/list", api.DefinitionQueryList)
stepGroup := definitionGroup.Group("/step")
{
stepGroup.POST("/add", api.StepAdd)
}
}
}
return nil
}