李伟乐 2 years ago
parent b2eda9d308
commit d859fc738c
  1. 4
      api/user.http.go
  2. 2
      cmd/kit/main.go

@ -1,11 +1,11 @@
package user
import (
"context"
"git.diulo.com/mogfee/kit/middleware"
"git.diulo.com/mogfee/kit/errors"
"git.diulo.com/mogfee/kit/response"
"github.com/gin-gonic/gin"
"context"
"git.diulo.com/mogfee/kit/middleware"
)
func RegisterUserHandler(app *gin.Engine, srv UserServer, m ...middleware.Middleware) {

@ -35,8 +35,8 @@ func (u *Kit) Generate(plugin *protogen.Plugin) error {
return nil
}
u.addImports("context")
u.addImports("git.diulo.com/mogfee/kit/transport/http")
u.addImports("git.diulo.com/mogfee/kit/middleware/jwt")
u.addImports("git.diulo.com/mogfee/kit/transport/http")
for _, f := range plugin.Files {
if len(f.Services) == 0 {
continue

Loading…
Cancel
Save