syntax = "v1" info ( title: "APP服务" desc: "APP服务" author: "Liangzai" email: "2440983361@qq.com" version: "v1" ) @server ( prefix: api/v1 group: app ) service main { @doc( summary: "心跳检测接口" ) @handler healthCheck get /health/check returns (HealthCheckResp) @handler getAppVersion get /app/version returns (getAppVersionResp) } type ( // 心跳检测响应 HealthCheckResp { Status string `json:"status"` // 服务状态 Message string `json:"message"` // 状态信息 } ) type ( getAppVersionResp { Version string `json:"version"` WgtUrl string `json:"wgtUrl"` } )