mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 05:49:02 +08:00
feat: Add default values for curl scheduled tasks (#11073)
This commit is contained in:
parent
fd14f53cb9
commit
6ddee2649d
3 changed files with 3 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ type MysqlDBCreate struct {
|
|||
Name string `json:"name" validate:"required"`
|
||||
From string `json:"from" validate:"required,oneof=local remote"`
|
||||
Database string `json:"database" validate:"required"`
|
||||
Format string `json:"format" validate:"required,oneof=utf8mb4 utf8 gbk big5"`
|
||||
Format string `json:"format" validate:"required"`
|
||||
Collation string `json:"collation"`
|
||||
Username string `json:"username" validate:"required"`
|
||||
Password string `json:"password" validate:"required"`
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ func (u *MysqlService) ListDBOption() ([]dto.MysqlOption, error) {
|
|||
}
|
||||
|
||||
func (u *MysqlService) Create(ctx context.Context, req dto.MysqlDBCreate) (*model.DatabaseMysql, error) {
|
||||
if cmd.CheckIllegal(req.Name, req.Username, req.Password, req.Format, req.Permission) {
|
||||
if cmd.CheckIllegal(req.Name, req.Username, req.Password, req.Format, req.Collation, req.Permission) {
|
||||
return nil, buserr.New("ErrCmdIllegal")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -850,7 +850,7 @@ const form = reactive<Cronjob.CronjobInfo>({
|
|||
dbType: 'mysql',
|
||||
dbName: '',
|
||||
url: '',
|
||||
urlItems: [],
|
||||
urlItems: [''],
|
||||
isDir: true,
|
||||
files: [],
|
||||
sourceDir: '',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue