2
0

api_list_acl.go 422 B

12345678910111213141516171819
  1. package route
  2. import (
  3. "opennamu/route/tool"
  4. )
  5. func Api_list_acl(config tool.Config) string {
  6. other_set := map[string]string{}
  7. json.Unmarshal([]byte(config.Other_set), &other_set)
  8. data := tool.List_acl(other_set["type"])
  9. return_data := make(map[string]any)
  10. return_data["response"] = "ok"
  11. return_data["data"] = data
  12. json_data, _ := json.Marshal(return_data)
  13. return string(json_data)
  14. }