package route import ( "encoding/json" "opennamu/route/tool" ) func Api_func_acl(call_arg []string) string { other_set := map[string]string{} json.Unmarshal([]byte(call_arg[0]), &other_set) db := tool.DB_connect() defer db.Close() new_data := make(map[string]interface{}) new_data["response"] = "ok" new_data["data"] = tool.Check_acl(db, other_set["name"], other_set["topic_number"], other_set["tool"], other_set["ip"]) json_data, _ := json.Marshal(new_data) return string(json_data) }