From de97a0e962fead8a91766a7fb288752926047bfd Mon Sep 17 00:00:00 2001 From: jaron Date: Wed, 24 Jul 2024 14:29:27 +0800 Subject: [PATCH] feat(action): update test --- .github/workflows/test.yml | 2 +- desc/api/version.api | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 desc/api/version.api diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 639bba3..6c4d0f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,4 +15,4 @@ jobs: - uses: ./ with: - args: version \ No newline at end of file + args: gen sdk --module github.com/jzero/test -d test \ No newline at end of file diff --git a/desc/api/version.api b/desc/api/version.api new file mode 100644 index 0000000..10e7e21 --- /dev/null +++ b/desc/api/version.api @@ -0,0 +1,21 @@ + +syntax = "v1" + +type Empty {} + +type Version { + Version string `json:"version"` + GoVersion string `json:"goVersion"` + Commit string `json:"commit"` + Date string `json:"date"` +} + +@server ( + prefix: /api/v1 + group: version +) +service ntls { + @handler GetHandler + get /version (Empty) returns (Version) +} +