2023-06-20 11:52:26 +08: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 14:59:13 +08:00
|
|
|
resp := l.SaveMapLibrary(userinfo, r)
|
2023-07-21 14:20:21 +08:00
|
|
|
|
2023-06-20 11:52:26 +08:00
|
|
|
}
|
|
|
|
}
|