12345678910111213141516171819202122232425 |
- package query_rule
- import (
- "git.sxidc.com/go-framework/baize/convenient/domain/query_rule/definition"
- "git.sxidc.com/go-framework/baize/convenient/domain/query_rule/rule"
- "git.sxidc.com/go-framework/baize/framework/binding"
- "git.sxidc.com/go-framework/baize/framework/core/api"
- "git.sxidc.com/go-framework/baize/framework/core/application"
- )
- // Simple Bind参数
- type Simple struct {
- // schema
- Schema string
- }
- func (simple *Simple) bind(binder *binding.Binder) {
- (&definition.Simple{Schema: simple.Schema}).Bind(binder)
- (&rule.Simple{Schema: simple.Schema}).Bind(binder)
- }
- func Bind(app *application.App, simple *Simple) {
- binder := binding.NewBinder(app.Api().ChooseRouter(api.RouterPrefix, ""), app.Infrastructure())
- simple.bind(binder)
- }
|