добавил secretWEbPath в UI и model.Server

This commit is contained in:
Дмитрий Саенко 2025-10-22 13:48:41 +03:00
parent 20efe2258c
commit b687487aff
2 changed files with 9 additions and 0 deletions

View file

@ -125,6 +125,7 @@ type Server struct {
Name string `json:"name" gorm:"unique;not null" form:"name"`
Address string `json:"address" gorm:"not null" form:"address"`
Port int `json:"port" gorm:"not null" form:"port"`
SecretWebPath string `json:"secretWebPath" gorm:"not null" form:"secretWebPath"`
APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"`
Enable bool `json:"enable" gorm:"default:true" form:"enable"`
}

View file

@ -100,6 +100,12 @@
<input type="number" class="form-control"
v-model.number="modal.server.port" />
</div>
<!-- secert web path -->
<div class="form-group">
<label>Secret Web Path</label>
<input type="text" class="form-control"
v-model="modal.server.secretWebPath" />
</div>
<div class="form-group">
<label>API Key</label>
<input type="text" class="form-control" v-model="modal.server.apiKey" />
@ -158,6 +164,7 @@
name: "",
address: "",
port: 0,
secretWebPath: "",
apiKey: "",
enable: true,
},
@ -183,6 +190,7 @@
name: "",
address: "",
port: 0,
secretWebPath: "",
apiKey: "",
enable: true,
};