mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-14 01:34:47 +08:00
fix: 限制描述长度 (#866)
This commit is contained in:
parent
15c0d0074b
commit
e95e79b572
@ -12,7 +12,7 @@ type PageInfo struct {
|
|||||||
|
|
||||||
type UpdateDescription struct {
|
type UpdateDescription struct {
|
||||||
ID uint `json:"id" validate:"required"`
|
ID uint `json:"id" validate:"required"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description" validate:"max=256"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OperationWithName struct {
|
type OperationWithName struct {
|
||||||
|
@ -69,7 +69,7 @@ type PortUpdate struct {
|
|||||||
|
|
||||||
type SnapshotCreate struct {
|
type SnapshotCreate struct {
|
||||||
From string `json:"from" validate:"required,oneof=OSS S3 SFTP MINIO COS KODO"`
|
From string `json:"from" validate:"required,oneof=OSS S3 SFTP MINIO COS KODO"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description" validate:"max=256"`
|
||||||
}
|
}
|
||||||
type SnapshotRecover struct {
|
type SnapshotRecover struct {
|
||||||
IsNew bool `json:"isNew"`
|
IsNew bool `json:"isNew"`
|
||||||
@ -79,12 +79,12 @@ type SnapshotRecover struct {
|
|||||||
type SnapshotImport struct {
|
type SnapshotImport struct {
|
||||||
From string `json:"from"`
|
From string `json:"from"`
|
||||||
Names []string `json:"names"`
|
Names []string `json:"names"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description" validate:"max=256"`
|
||||||
}
|
}
|
||||||
type SnapshotInfo struct {
|
type SnapshotInfo struct {
|
||||||
ID uint `json:"id"`
|
ID uint `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description" validate:"max=256"`
|
||||||
From string `json:"from"`
|
From string `json:"from"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user