query_rule.go 553 B

1234567891011121314151617181920212223
  1. package service
  2. import (
  3. "git.sxidc.com/go-framework/baize/convenient/domain/query_rule"
  4. "git.sxidc.com/go-framework/baize/framework/core/application"
  5. )
  6. var queryRuleService = &QueryRuleService{}
  7. type QueryRuleService struct{}
  8. func (svc *QueryRuleService) Init(appInstance *application.App) error {
  9. svc.prefixRoot(appInstance)
  10. return nil
  11. }
  12. func (svc *QueryRuleService) Destroy() error {
  13. return nil
  14. }
  15. func (svc *QueryRuleService) prefixRoot(appInstance *application.App) {
  16. query_rule.Bind(appInstance, &query_rule.Simple{Schema: dbSchema})
  17. }