tydata-server/app/user/cmd/api/desc/app.api

39 lines
628 B
Plaintext
Raw Normal View History

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