example
This commit is contained in:
@ -1,25 +0,0 @@
|
||||
info(
|
||||
title: "小程序商城"
|
||||
desc: "小程序商品首页"
|
||||
version: "1.0"
|
||||
)
|
||||
|
||||
|
||||
type IndexResp struct {
|
||||
NewList
|
||||
}
|
||||
|
||||
|
||||
type NewList struct{
|
||||
id int `json:"id"`
|
||||
}
|
||||
|
||||
service index-api {
|
||||
@doc(
|
||||
summary: "首页列表"
|
||||
)
|
||||
@server(
|
||||
handler: IndexHandler
|
||||
)
|
||||
get /index/index returns (IndexResp)
|
||||
}
|
Reference in New Issue
Block a user