sys_login_log.go 954 B

1234567891011121314151617181920212223242526272829303132333435
  1. // ============================================================================
  2. // This is auto-generated by gf cli tool only once. Fill this file as you wish.
  3. // ============================================================================
  4. package dao
  5. import (
  6. "gfast/app/system/dao/internal"
  7. "gfast/app/system/model"
  8. "github.com/gogf/gf/frame/g"
  9. )
  10. // sysLoginLogDao is the manager for logic model data accessing
  11. // and custom defined data operations functions management. You can define
  12. // methods on it to extend its functionality as you wish.
  13. type sysLoginLogDao struct {
  14. internal.SysLoginLogDao
  15. }
  16. var (
  17. // SysLoginLog is globally public accessible object for table sys_login_log operations.
  18. SysLoginLog = sysLoginLogDao{
  19. internal.SysLoginLog,
  20. }
  21. )
  22. // Fill with you ideas below.
  23. // SaveLog 保存日志信息
  24. func (d sysLoginLogDao) SaveLog(data *model.SysLoginLog) {
  25. _, err := d.Insert(data)
  26. if err != nil {
  27. g.Log().Error(err)
  28. }
  29. }