add app wgt

This commit is contained in:
2025-03-14 13:53:48 +08:00
parent 0e6cb95499
commit 7e333b47f2
7 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
syntax = "v1"
info (
title: "APP服务"
desc: "APP服务"
author: "Liangzai"
email: "2440983361@qq.com"
version: "v1"
)
import (
"app/app.api"
)
@server (
prefix: api/v1
group: app
)
service main {
@handler getAppVersion
get /app/version returns (getAppVersionResp)
}

View File

@@ -0,0 +1,17 @@
syntax = "v1"
info (
title: "APP服务"
desc: "APP服务"
author: "Liangzai"
email: "2440983361@qq.com"
version: "v1"
)
type (
getAppVersionResp {
version string `json:"version"`
wgtUrl string `json:"wgtUrl"`
}
)

View File

@@ -13,3 +13,4 @@ import "query.api"
import "pay.api"
import "product.api"
import "agent.api"
import "app.api"