74 lines
1.7 KiB
Go
74 lines
1.7 KiB
Go
package dto
|
|
|
|
type LoginRequest struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Captcha string `json:"captcha"`
|
|
CaptchaID string `json:"captchaId"`
|
|
}
|
|
|
|
type Route struct {
|
|
Path string
|
|
Method string
|
|
}
|
|
|
|
type UserListRequest struct {
|
|
Page int `json:"page"`
|
|
PageSize int `json:"pageSize"`
|
|
Username string `json:"username"`
|
|
NickName string `json:"nickName"`
|
|
Phone string `json:"phone"`
|
|
Email string `json:"email"`
|
|
OrderKey string `json:"orderKey"`
|
|
Desc bool `json:"desc"`
|
|
}
|
|
|
|
type UserRequest struct {
|
|
ID uint `json:"ID" form:"id"`
|
|
Username string `json:"userName"`
|
|
Password string `json:"passWord"`
|
|
NickName string `json:"nickName"`
|
|
HeaderImg string `json:"headerImg"`
|
|
AuthorityID uint `json:"authorityId"`
|
|
AuthorityIDs []uint `json:"authorityIds"`
|
|
Enable int `json:"enable"`
|
|
Phone string `json:"phone"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type SelfUserRequest struct {
|
|
NickName string `json:"nickName"`
|
|
HeaderImg string `json:"headerImg"`
|
|
Phone string `json:"phone"`
|
|
Email string `json:"email"`
|
|
Enable int `json:"enable"`
|
|
}
|
|
|
|
type ResetPasswordRequest struct {
|
|
ID uint `json:"ID"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
Password string `json:"password"`
|
|
NewPassword string `json:"newPassword"`
|
|
}
|
|
|
|
type UserAuthoritiesRequest struct {
|
|
ID uint `json:"ID"`
|
|
AuthorityIDs []uint `json:"authorityIds"`
|
|
}
|
|
|
|
type SwitchAuthorityRequest struct {
|
|
AuthorityID uint `json:"authorityId"`
|
|
}
|
|
|
|
type LoginLogRequest struct {
|
|
Username string
|
|
IP string
|
|
Status bool
|
|
ErrorMessage string
|
|
Agent string
|
|
UserID uint
|
|
}
|