이름 변경

This commit is contained in:
2023-06-05 17:22:48 +09:00
parent 41387ba902
commit 4c59f33c70
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ func (caller apiCaller) maintenanceAPI(w http.ResponseWriter, r *http.Request) e
caller.writeAccessableServices(w) caller.writeAccessableServices(w)
} }
} else if r.Method == "POST" { } else if r.Method == "POST" {
servicename := r.FormValue("name") servicename := queryvals.Get("name")
var divs map[string]*division var divs map[string]*division
dec := json.NewDecoder(r.Body) dec := json.NewDecoder(r.Body)

View File

@ -160,7 +160,7 @@ const (
) )
type maintenance struct { type maintenance struct {
Notice string `bson:"notice"` Notice string `bson:"notice" json:"notice"`
StartTimeUTC int64 `bson:"start_unixtime_utc" json:"start_unixtime_utc"` StartTimeUTC int64 `bson:"start_unixtime_utc" json:"start_unixtime_utc"`
link string link string
} }