add app wgt
This commit is contained in:
22
app/user/cmd/api/desc/app.api
Normal file
22
app/user/cmd/api/desc/app.api
Normal 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)
|
||||
|
||||
}
|
||||
17
app/user/cmd/api/desc/app/app.api
Normal file
17
app/user/cmd/api/desc/app/app.api
Normal 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"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -13,3 +13,4 @@ import "query.api"
|
||||
import "pay.api"
|
||||
import "product.api"
|
||||
import "agent.api"
|
||||
import "app.api"
|
||||
|
||||
Reference in New Issue
Block a user