package service import ( "git.sxidc.com/go-framework/baize/convenient/domain/query_rule" "git.sxidc.com/go-framework/baize/framework/core/application" ) var queryRuleService = &QueryRuleService{} type QueryRuleService struct{} func (svc *QueryRuleService) Init(appInstance *application.App) error { svc.prefixRoot(appInstance) return nil } func (svc *QueryRuleService) Destroy() error { return nil } func (svc *QueryRuleService) prefixRoot(appInstance *application.App) { query_rule.Bind(appInstance, &query_rule.Simple{Schema: dbSchema}) }