1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 08:49:16 +08:00
1Panel/backend/app/dto/common_req.go

37 lines
865 B
Go
Raw Normal View History

2022-08-16 23:30:23 +08:00
package dto
type SearchWithPage struct {
PageInfo
2022-08-31 23:16:10 +08:00
Info string `json:"info" validate:"required"`
}
2022-08-16 23:30:23 +08:00
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"`
}
2022-08-16 23:30:23 +08:00
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"`
}