operate_log.go 568 B

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