服務器狀態

This commit is contained in:
2023-05-21 08:08:46 +08:00
parent e946608376
commit 05ae37d6e2
6 changed files with 57 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ func (list ImageList) Value() (driver.Value, error) {
return json.Marshal(list)
}
// 數據集
// 數據集模型
type Dataset struct {
ID int `json:"id" gorm:"primary_key"`
Name string `json:"name"`
@@ -129,6 +129,7 @@ func DatasetsItemPatch(w http.ResponseWriter, r *http.Request) {
})
}
// 刪除數據集
func DatasetsItemDelete(w http.ResponseWriter, r *http.Request) {
models.AccountRead(w, r, func(account *models.Account) {
// 獲取數據集