mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-29 14:31:15 +08:00
45 lines
1.1 KiB
Go
45 lines
1.1 KiB
Go
package dto
|
|
|
|
type SearchWithPage struct {
|
|
PageInfo
|
|
Info string `json:"info" validate:"required"`
|
|
}
|
|
|
|
type PageInfo struct {
|
|
Page int `json:"page" validate:"required,number"`
|
|
PageSize int `json:"pageSize" validate:"required,number"`
|
|
}
|
|
|
|
type OperationWithName struct {
|
|
Name string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type BatchDeleteReq struct {
|
|
Ids []uint `json:"ids" validate:"required"`
|
|
}
|
|
|
|
type DeleteByName struct {
|
|
Name string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type OperationWithNameAndType struct {
|
|
Name string `json:"name" validate:"required"`
|
|
Type string `json:"type" validate:"required"`
|
|
}
|
|
|
|
type Login struct {
|
|
Name string `json:"name" validate:"name,required"`
|
|
Password string `json:"password" validate:"required"`
|
|
Captcha string `json:"captcha"`
|
|
CaptchaID string `json:"captchaID"`
|
|
AuthMethod string `json:"authMethod"`
|
|
}
|
|
|
|
type MFALogin struct {
|
|
Name string `json:"name" validate:"name,required"`
|
|
Password string `json:"password" validate:"required"`
|
|
Secret string `json:"secret" validate:"required"`
|
|
Code string `json:"code"`
|
|
AuthMethod string `json:"authMethod"`
|
|
}
|