29 lines
554 B
Go
29 lines
554 B
Go
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
|
|
}
|