2
0

api_func_wiki_custom.go 436 B

12345678910111213141516171819
  1. package route
  2. import (
  3. "opennamu/route/tool"
  4. )
  5. func Api_func_wiki_custom(config tool.Config) string {
  6. db := tool.DB_connect()
  7. defer tool.DB_close(db)
  8. wiki_custom_set := tool.Get_wiki_custom(db, config.IP, config.Session, config.Cookies)
  9. new_data := make(map[string]any)
  10. new_data["response"] = "ok"
  11. new_data["data"] = wiki_custom_set
  12. json_data, _ := json.Marshal(new_data)
  13. return string(json_data)
  14. }