Skip to content

Commit

Permalink
add Context primitive indicator generator to generate use engine's ra…
Browse files Browse the repository at this point in the history
…w handler function as method
  • Loading branch information
alimy committed Dec 13, 2023
1 parent 0a0796d commit f54b37e
Show file tree
Hide file tree
Showing 16 changed files with 318 additions and 52 deletions.
3 changes: 2 additions & 1 deletion core/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

var (
VerInfo = &VersionInfo{
MirVer: "v4.0.0",
MirVer: "v4.1.0",
}
)

Expand All @@ -41,6 +41,7 @@ type FieldDescriptor struct {
HttpMethods []string
IsAnyMethod bool
IsFieldChain bool
IsUseContext bool
IsBindIn bool
IsRenderOut bool
In reflect.Type
Expand Down
2 changes: 2 additions & 0 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ require (
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/alimy/mir/v4 => ../
83 changes: 75 additions & 8 deletions examples/mirc/auto/api/site.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/mirc/auto/api/v1/admin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 40 additions & 1 deletion examples/mirc/auto/api/v1/site.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 69 additions & 2 deletions examples/mirc/auto/api/v2/site.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f54b37e

Please sign in to comment.