Merge pull request #166 from wsczx/dev

增加通过excel批量添加用户的功能,支持导入后自动发邮件
This commit is contained in:
bjdgyc
2022-10-25 10:06:48 +08:00
committed by GitHub
12 changed files with 171 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ package admin
import (
"encoding/json"
"errors"
"io/ioutil"
"io"
"net/http"
"regexp"
@@ -25,7 +25,7 @@ func setOtherGet(data interface{}, w http.ResponseWriter) {
}
func setOtherEdit(data interface{}, 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
@@ -86,7 +86,7 @@ func SetOtherAuditLog(w http.ResponseWriter, r *http.Request) {
}
func SetOtherAuditLogEdit(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