增加通过excel批量添加用户的功能,支持导入后自动发邮件

This commit is contained in:
wsczx
2022-10-22 20:36:10 +08:00
parent c6ef0a28b4
commit a77fe77e79
12 changed files with 168 additions and 22 deletions

View File

@@ -2,7 +2,7 @@ package admin
import (
"encoding/json"
"io/ioutil"
"io"
"net/http"
"strconv"
@@ -57,7 +57,7 @@ func PolicyDetail(w http.ResponseWriter, r *http.Request) {
}
func PolicySet(w http.ResponseWriter, r *http.Request) {
body, err := ioutil.ReadAll(r.Body)
body, err := io.ReadAll(r.Body)
if err != nil {
RespError(w, RespInternalErr, err)
return