sys_login_log.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * @desc:登录日志
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu
  5. * @Date: 2022/4/24 22:09
  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/entity"
  12. )
  13. // LoginLogSearchReq 查询列表请求参数
  14. type LoginLogSearchReq struct {
  15. g.Meta `path:"/loginLog/list" tags:"登录日志管理" method:"get" summary:"日志列表"`
  16. LoginName string `p:"userName"` //登陆名
  17. Status string `p:"status"` //状态
  18. Ipaddr string `p:"ipaddr"` //登录地址
  19. SortName string `p:"orderByColumn"` //排序字段
  20. SortOrder string `p:"isAsc"` //排序方式
  21. LoginLocation string `p:"loginLocation"` //登录地点
  22. commonApi.PageReq
  23. }
  24. type LoginLogSearchRes struct {
  25. g.Meta `mime:"application/json"`
  26. commonApi.ListRes
  27. List []*entity.SysLoginLog `json:"list"`
  28. }
  29. type LoginLogDelReq struct {
  30. g.Meta `path:"/loginLog/delete" tags:"登录日志管理" method:"delete" summary:"删除日志"`
  31. Ids []int `p:"ids" v:"required#ids必须"`
  32. }
  33. type LoginLogDelRes struct {
  34. }
  35. type LoginLogClearReq struct {
  36. g.Meta `path:"/loginLog/clear" tags:"登录日志管理" method:"delete" summary:"清除日志"`
  37. }
  38. type LoginLogClearRes struct {
  39. }