mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 02:10:00 +08:00
Restore jwt.api again - it was deleted by an automated commit
Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com>
This commit is contained in:
17
tools/goctl/api/gogen/jwt.api
Normal file
17
tools/goctl/api/gogen/jwt.api
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
type Request {
|
||||||
|
Name string `path:"name,options=you|me"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type Response {
|
||||||
|
Message string `json:"message"`
|
||||||
|
}
|
||||||
|
|
||||||
|
@server(
|
||||||
|
jwt: Auth
|
||||||
|
jwtTransition: Trans
|
||||||
|
middleware: TokenValidate
|
||||||
|
)
|
||||||
|
service A-api {
|
||||||
|
@handler GreetHandler
|
||||||
|
get /greet/from/:name(Request) returns (Response)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user