sys_oper_log.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * @desc:操作日志
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu<yxh669@qq.com>
  5. * @Date: 2022/12/21 14:37
  6. */
  7. package system
  8. import (
  9. "github.com/gogf/gf/v2/frame/g"
  10. commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
  11. "github.com/tiger1103/gfast/v3/internal/app/system/model"
  12. )
  13. // SysOperLogSearchReq 分页请求参数
  14. type SysOperLogSearchReq struct {
  15. g.Meta `path:"/operLog/list" tags:"操作日志" method:"get" summary:"操作日志列表"`
  16. Title string `p:"title"` //系统模块
  17. RequestMethod string `p:"requestMethod"` //请求方式
  18. OperName string `p:"operName"` //操作人员
  19. commonApi.PageReq
  20. commonApi.Author
  21. }
  22. // SysOperLogSearchRes 列表返回结果
  23. type SysOperLogSearchRes struct {
  24. g.Meta `mime:"application/json"`
  25. commonApi.ListRes
  26. List []*model.SysOperLogListRes `json:"list"`
  27. }
  28. // SysOperLogGetReq 获取一条数据请求
  29. type SysOperLogGetReq struct {
  30. g.Meta `path:"/operLog/get" tags:"操作日志" method:"get" summary:"获取操作日志信息"`
  31. commonApi.Author
  32. OperId uint64 `p:"operId" v:"required#主键必须"` //通过主键获取
  33. }
  34. // SysOperLogGetRes 获取一条数据结果
  35. type SysOperLogGetRes struct {
  36. g.Meta `mime:"application/json"`
  37. *model.SysOperLogInfoRes
  38. }
  39. // SysOperLogDeleteReq 删除数据请求
  40. type SysOperLogDeleteReq struct {
  41. g.Meta `path:"/operLog/delete" tags:"操作日志" method:"delete" summary:"删除操作日志"`
  42. commonApi.Author
  43. OperIds []uint64 `p:"operIds" v:"required#主键必须"` //通过主键删除
  44. }
  45. // SysOperLogDeleteRes 删除数据返回
  46. type SysOperLogDeleteRes struct {
  47. commonApi.EmptyRes
  48. }
  49. type SysOperLogClearReq struct {
  50. g.Meta `path:"/operLog/clear" tags:"操作日志" method:"delete" summary:"清除日志"`
  51. commonApi.Author
  52. }
  53. type SysOperLogClearRes struct {
  54. commonApi.EmptyRes
  55. }