初始
This commit is contained in:
40
api/v1/system/sys_user_online.go
Normal file
40
api/v1/system/sys_user_online.go
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* @desc:在线用户
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: yixiaohu<yxh669@qq.com>
|
||||
* @Date: 2023/1/10 16:57
|
||||
*/
|
||||
|
||||
package system
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
|
||||
)
|
||||
|
||||
// SysUserOnlineSearchReq 列表搜索参数
|
||||
type SysUserOnlineSearchReq struct {
|
||||
g.Meta `path:"/online/list" tags:"在线用户管理" method:"get" summary:"列表"`
|
||||
Username string `p:"userName"`
|
||||
Ip string `p:"ipaddr"`
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// SysUserOnlineSearchRes 列表结果
|
||||
type SysUserOnlineSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*entity.SysUserOnline `json:"list"`
|
||||
}
|
||||
|
||||
type SysUserOnlineForceLogoutReq struct {
|
||||
g.Meta `path:"/online/forceLogout" tags:"在线用户管理" method:"delete" summary:"强制用户退出登录"`
|
||||
commonApi.Author
|
||||
Ids []int `p:"ids" v:"required#ids不能为空"`
|
||||
}
|
||||
|
||||
type SysUserOnlineForceLogoutRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user