58 lines
2.0 KiB
Go
58 lines
2.0 KiB
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go-admin/common/dto"
|
|
)
|
|
|
|
type SysLoginLogGetPageReq struct {
|
|
dto.Pagination `search:"-"`
|
|
Username string `form:"username" search:"type:exact;column:username;table:sys_login_log" comment:"用户名"`
|
|
Status string `form:"status" search:"type:exact;column:status;table:sys_login_log" comment:"状态"`
|
|
Ipaddr string `form:"ipaddr" search:"type:exact;column:ipaddr;table:sys_login_log" comment:"ip地址"`
|
|
LoginLocation string `form:"loginLocation" search:"type:exact;column:login_location;table:sys_login_log" comment:"归属地"`
|
|
BeginTime string `form:"beginTime" search:"type:gte;column:ctime;table:sys_login_log" comment:"创建时间"`
|
|
EndTime string `form:"endTime" search:"type:lte;column:ctime;table:sys_login_log" comment:"创建时间"`
|
|
SysLoginLogOrder
|
|
}
|
|
|
|
type SysLoginLogOrder struct {
|
|
CreatedAtOrder string `search:"type:order;column:created_at;table:sys_login_log" form:"createdAtOrder"`
|
|
}
|
|
|
|
func (m *SysLoginLogGetPageReq) GetNeedSearch() interface{} {
|
|
return *m
|
|
}
|
|
|
|
type SysLoginLogControl struct {
|
|
ID int `uri:"Id" comment:"主键"` // 主键
|
|
Username string `json:"username" comment:"用户名"`
|
|
Status string `json:"status" comment:"状态"`
|
|
Ipaddr string `json:"ipaddr" comment:"ip地址"`
|
|
LoginLocation string `json:"loginLocation" comment:"归属地"`
|
|
Browser string `json:"browser" comment:"浏览器"`
|
|
Os string `json:"os" comment:"系统"`
|
|
Platform string `json:"platform" comment:"固件"`
|
|
LoginTime time.Time `json:"loginTime" comment:"登录时间"`
|
|
Remark string `json:"remark" comment:"备注"`
|
|
Msg string `json:"msg" comment:"信息"`
|
|
}
|
|
|
|
type SysLoginLogGetReq struct {
|
|
Id int `uri:"id"`
|
|
}
|
|
|
|
func (s *SysLoginLogGetReq) GetId() interface{} {
|
|
return s.Id
|
|
}
|
|
|
|
// SysLoginLogDeleteReq 功能删除请求参数
|
|
type SysLoginLogDeleteReq struct {
|
|
Ids []int `json:"ids"`
|
|
}
|
|
|
|
func (s *SysLoginLogDeleteReq) GetId() interface{} {
|
|
return s.Ids
|
|
}
|