이름 변경
This commit is contained in:
@ -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)
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user