From 01dfd9dc8de7b19f9dfa4284722e01bbd5837801 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 19 一月 2024 09:10:30 +0800
Subject: [PATCH] replace json to json-iterator

---
 sysRoleApi.go |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sysRoleApi.go b/sysRoleApi.go
index 13907f8..3ff00f7 100644
--- a/sysRoleApi.go
+++ b/sysRoleApi.go
@@ -1,25 +1,25 @@
 package bhomedbapi
 
 import (
-	json "github.com/json-iterator/go"
+	jsoniter "github.com/json-iterator/go"
 )
 
 type SysRoleApi struct {
-
 }
 
-func (api SysRoleApi) FindAll() (bool,interface{}) {
+func (api SysRoleApi) FindAll() (bool, interface{}) {
 	url := DATA_URL_PREFIX + "/role/findAll"
 	netNode := getNetNode(url2Topic(Topic_System_Service, url))
 	client := NewClient(WithNodes(netNode))
 	body, err := client.DoGetRequest(url, nil, nil)
 	if err != nil {
-		return false,nil
+		return false, nil
 	}
 
+	var json = jsoniter.ConfigCompatibleWithStandardLibrary
 	var res Result
 	if err = json.Unmarshal(body, &res); err != nil {
-		return false,nil
+		return false, nil
 	}
-	return true,res.Data
+	return true, res.Data
 }

--
Gitblit v1.8.0