From 7010c1f83dfcba1e846ed4f58805c770f118905d Mon Sep 17 00:00:00 2001 From: asim Date: Wed, 27 Oct 2021 16:00:38 +0000 Subject: [PATCH] Commit from GitHub Actions (Generate Clients & Examples) --- clients/go/db/db.go | 2 ++ clients/ts/package.json | 2 +- examples/db/create/go/createARecord.go | 4 ++-- examples/db/update/go/updateARecord.go | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/clients/go/db/db.go b/clients/go/db/db.go index 47d7959..faa4e5d 100755 --- a/clients/go/db/db.go +++ b/clients/go/db/db.go @@ -53,10 +53,12 @@ func (t *DbService) Update(request *UpdateRequest) (*UpdateResponse, error) { } type CountRequest struct { + // specify the table name Table string `json:"table"` } type CountResponse struct { + // the number of records in the table Count int32 `json:"count"` } diff --git a/clients/ts/package.json b/clients/ts/package.json index 71ebd7b..457b66b 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -76,5 +76,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.580" + "version": "1.0.581" } \ No newline at end of file diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index 08be46f..283dd5d 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -12,10 +12,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ - "age": 42, - "isActive": true, "id": "1", "name": "Jane", + "age": 42, + "isActive": true, }, Table: "users", }) diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index 1fb0e47..4517043 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -12,8 +12,8 @@ func UpdateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Update(&db.UpdateRequest{ Record: map[string]interface{}{ - "age": 43, "id": "1", + "age": 43, }, Table: "users", })