package handler import ( "net/http" "fusenapi/server/canteen/internal/logic" "fusenapi/server/canteen/internal/svc" "fusenapi/server/canteen/internal/types" ) func GetCanteenDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.GetCanteenDetailReq // 创建一个业务逻辑层实例 l := logic.NewGetCanteenDetailLogic(r.Context(), svcCtx) resp := l.GetCanteenDetail(&req, userinfo) } }