You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
service main-api {
@doc "获取 user info"
@handler Info
get / returns (UserResponse)
}
type UserResponse {
ID int `json:"id"`
Name string `json:"name"`
Phone string `json:"phone"`
Account string `json:"account"`
}
比如我的返回方法 UserResponse,生成的doc,返回结构就和UserResponse一样。但实际一般都会再包一层, code,message等
导致apifox 等就会告诉你返回结构和实际不一致。
The text was updated successfully, but these errors were encountered: