api_func_auth_move_patch.go 516 B

123456789101112131415161718192021222324252627
  1. package route
  2. import (
  3. "opennamu/route/tool"
  4. jsoniter "github.com/json-iterator/go"
  5. )
  6. func Api_func_auth_move_patch(call_arg []string) string {
  7. var json = jsoniter.ConfigCompatibleWithStandardLibrary
  8. other_set := map[string]string{}
  9. json.Unmarshal([]byte(call_arg[0]), &other_set)
  10. db := tool.DB_connect()
  11. defer db.Close()
  12. if tool.Check_acl() {
  13. new_data := make(map[string]interface{})
  14. new_data["response"] = "ok"
  15. json_data, _ := json.Marshal(new_data)
  16. return string(json_data)
  17. } else {
  18. }
  19. }