This commit is contained in:
laodaming
2023-06-26 18:27:38 +08:00
parent 17d1522655
commit 00873a7654
5 changed files with 10 additions and 55 deletions

View File

@@ -48,7 +48,7 @@ func SaveBaseMapHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
l := logic.NewSaveBaseMapLogic(r.Context(), svcCtx)
resp := l.SaveBaseMap(userinfo)
resp := l.SaveBaseMap(r, userinfo)
// 如果响应不为nil则使用httpx.OkJsonCtx方法返回JSON响应;
if resp != nil {
httpx.OkJsonCtx(r.Context(), w, resp)