Skip to content

优化gin结构

优化gin结构 #23

Triggered via pull request October 11, 2025 08:22
Status Failure
Total duration 1m 21s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
build
Process completed with exit code 1.
build: tool/gin/example/main.go#L37
in call to handler.WrapReq, type func(ctx *"github.com/gin-gonic/gin".Context, req LoginRequest) "github.com/muxi-Infra/muxi-micro/pkg/transport/http".Response of func(ctx *gin.Context, req LoginRequest) t_http.Response {…} does not match inferred type func(*"github.com/gin-gonic/gin".Context, LoginRequest) for func(*"github.com/gin-gonic/gin".Context, Req)
build: tool/gin/example/main.go#L27
cannot use func(ctx *gin.Context) t_http.Response {…} (value of type func(ctx *"github.com/gin-gonic/gin".Context) "github.com/muxi-Infra/muxi-micro/pkg/transport/http".Response) as func(*"github.com/gin-gonic/gin".Context) value in argument to handler.Wrap
build: example/logger/logger.go#L6
no required module provides package github.com/muxi-Infra/muxi-micro/pkg/1/zapx; to add it:
build: example/logger/logger.go#L5
no required module provides package github.com/muxi-Infra/muxi-micro/pkg/1; to add it: