package model

import (
	"kami/api/commonApi"
	v1 "kami/api/sys_user_login/v1"
	loginlogv1 "kami/api/sys_user_login_log/v1"
)

// LoginLogParams 登录日志写入参数
type LoginLogParams struct {
	Status    int
	Username  string
	Ip        string
	UserAgent string
	Msg       string
	Module    string
}

// LoginLogQueryInput 登录日志查询输入
type LoginLogQueryInput struct {
	loginlogv1.LoginLogQueryReq
}

type UserLoginInput struct {
	Username string `p:"username" v:"required#用户名不能为空"`
	Password string `p:"password" v:"required#密码不能为空"`
}

type UserLoginOutput struct {
	v1.UserLoginRes
}

type UserMenu struct {
	v1.UserMenu
}

type UserMenus struct {
	*UserMenu `json:""`
	Children  []*UserMenus `json:"children"`
}

// LoginLogQueryInputWithCommon 包含分页信息的登录日志查询输入
type LoginLogQueryInputWithCommon struct {
	loginLog *loginlogv1.LoginLogQueryReq
	PageReq  commonApi.CommonPageReq
}
