2023-06-20 03:52:26 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/map-library/internal/logic"
|
|
|
|
"fusenapi/server/map-library/internal/svc"
|
|
|
|
)
|
|
|
|
|
|
|
|
func SaveMapLibraryHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
|
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
|
|
// 创建一个业务逻辑层实例
|
|
|
|
l := logic.NewSaveMapLibraryLogic(r.Context(), svcCtx)
|
2023-06-20 06:59:13 +00:00
|
|
|
resp := l.SaveMapLibrary(userinfo, r)
|
2023-07-21 06:20:21 +00:00
|
|
|
|
2023-06-20 03:52:26 +00:00
|
|
|
}
|
|
|
|
}
|