optimize code
This commit is contained in:
17
example/test.api
Normal file
17
example/test.api
Normal file
@ -0,0 +1,17 @@
|
||||
info(
|
||||
title: "type title here"
|
||||
desc: "type desc here"
|
||||
author: "type author here"
|
||||
email: "type email here"
|
||||
version: "type version here"
|
||||
)
|
||||
|
||||
import "sys/user.api"
|
||||
|
||||
service user-api {
|
||||
@doc(
|
||||
summary: 注册
|
||||
)
|
||||
@handler register
|
||||
post /api/user/register (RegisterReq)
|
||||
}
|
Reference in New Issue
Block a user