示例#1
0
func UpdateDeskHandler(w http.ResponseWriter, r *http.Request) {
	desk := &data.Desk{}
	if data.UpdateRowFromJson(w, r, &desk) {
		respond(w, "desk", desk)
	}
}
示例#2
0
func UpdateDeskGroupHandler(w http.ResponseWriter, r *http.Request) {
	deskGroup := &data.DeskGroup{}
	if data.UpdateRowFromJson(w, r, &deskGroup) {
		respond(w, "deskGroup", deskGroup)
	}
}
示例#3
0
func UpdateRoomHandler(w http.ResponseWriter, r *http.Request) {
	room := &data.Room{}
	if data.UpdateRowFromJson(w, r, &room) {
		respond(w, "room", room)
	}
}
示例#4
0
func UpdatePlaceHandler(w http.ResponseWriter, r *http.Request) {
	place := &data.Place{}
	if data.UpdateRowFromJson(w, r, &place) {
		respond(w, "place", place)
	}
}
示例#5
0
func UpdateSectionHandler(w http.ResponseWriter, r *http.Request) {
	mp := &data.Section{}
	if data.UpdateRowFromJson(w, r, &mp) {
		respond(w, "mp", mp)
	}
}