sys_oper_log.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ================================================================================
  2. // Code generated by GoFrame CLI tool. DO NOT EDIT.
  3. // You can delete these comments if you wish manually maintain this interface file.
  4. // ================================================================================
  5. package service
  6. import (
  7. "context"
  8. "github.com/gogf/gf/v2/net/ghttp"
  9. "github.com/tiger1103/gfast/v3/api/v1/system"
  10. "github.com/tiger1103/gfast/v3/internal/app/system/model"
  11. )
  12. type (
  13. IOperateLog interface {
  14. OperationLog(r *ghttp.Request)
  15. Invoke(ctx context.Context, data *model.SysOperLogAdd)
  16. List(ctx context.Context, req *system.SysOperLogSearchReq) (listRes *system.SysOperLogSearchRes, err error)
  17. GetByOperId(ctx context.Context, operId uint64) (res *model.SysOperLogInfoRes, err error)
  18. DeleteByIds(ctx context.Context, ids []uint64) (err error)
  19. ClearLog(ctx context.Context) (err error)
  20. }
  21. )
  22. var (
  23. localOperateLog IOperateLog
  24. )
  25. func OperateLog() IOperateLog {
  26. if localOperateLog == nil {
  27. panic("implement not found for interface IOperateLog, forgot register?")
  28. }
  29. return localOperateLog
  30. }
  31. func RegisterOperateLog(i IOperateLog) {
  32. localOperateLog = i
  33. }