mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-24 08:25:31 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
@@ -14,7 +14,6 @@ import (
|
|||||||
"github.com/micro/services/clients/go/forex"
|
"github.com/micro/services/clients/go/forex"
|
||||||
"github.com/micro/services/clients/go/function"
|
"github.com/micro/services/clients/go/function"
|
||||||
"github.com/micro/services/clients/go/geocoding"
|
"github.com/micro/services/clients/go/geocoding"
|
||||||
"github.com/micro/services/clients/go/gifs"
|
|
||||||
"github.com/micro/services/clients/go/helloworld"
|
"github.com/micro/services/clients/go/helloworld"
|
||||||
"github.com/micro/services/clients/go/holidays"
|
"github.com/micro/services/clients/go/holidays"
|
||||||
"github.com/micro/services/clients/go/id"
|
"github.com/micro/services/clients/go/id"
|
||||||
@@ -60,7 +59,6 @@ func NewClient(token string) *Client {
|
|||||||
ForexService: forex.NewForexService(token),
|
ForexService: forex.NewForexService(token),
|
||||||
FunctionService: function.NewFunctionService(token),
|
FunctionService: function.NewFunctionService(token),
|
||||||
GeocodingService: geocoding.NewGeocodingService(token),
|
GeocodingService: geocoding.NewGeocodingService(token),
|
||||||
GifsService: gifs.NewGifsService(token),
|
|
||||||
HelloworldService: helloworld.NewHelloworldService(token),
|
HelloworldService: helloworld.NewHelloworldService(token),
|
||||||
HolidaysService: holidays.NewHolidaysService(token),
|
HolidaysService: holidays.NewHolidaysService(token),
|
||||||
IdService: id.NewIdService(token),
|
IdService: id.NewIdService(token),
|
||||||
@@ -106,7 +104,6 @@ type Client struct {
|
|||||||
ForexService *forex.ForexService
|
ForexService *forex.ForexService
|
||||||
FunctionService *function.FunctionService
|
FunctionService *function.FunctionService
|
||||||
GeocodingService *geocoding.GeocodingService
|
GeocodingService *geocoding.GeocodingService
|
||||||
GifsService *gifs.GifsService
|
|
||||||
HelloworldService *helloworld.HelloworldService
|
HelloworldService *helloworld.HelloworldService
|
||||||
HolidaysService *holidays.HolidaysService
|
HolidaysService *holidays.HolidaysService
|
||||||
IdService *id.IdService
|
IdService *id.IdService
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import * as file from "./file";
|
|||||||
import * as forex from "./forex";
|
import * as forex from "./forex";
|
||||||
import * as fx from "./function";
|
import * as fx from "./function";
|
||||||
import * as geocoding from "./geocoding";
|
import * as geocoding from "./geocoding";
|
||||||
import * as gifs from "./gifs";
|
|
||||||
import * as helloworld from "./helloworld";
|
import * as helloworld from "./helloworld";
|
||||||
import * as holidays from "./holidays";
|
import * as holidays from "./holidays";
|
||||||
import * as id from "./id";
|
import * as id from "./id";
|
||||||
@@ -54,7 +53,6 @@ export class Client {
|
|||||||
this.forexService = new forex.ForexService(token);
|
this.forexService = new forex.ForexService(token);
|
||||||
this.functionService = new fx.FunctionService(token);
|
this.functionService = new fx.FunctionService(token);
|
||||||
this.geocodingService = new geocoding.GeocodingService(token);
|
this.geocodingService = new geocoding.GeocodingService(token);
|
||||||
this.gifsService = new gifs.GifsService(token);
|
|
||||||
this.helloworldService = new helloworld.HelloworldService(token);
|
this.helloworldService = new helloworld.HelloworldService(token);
|
||||||
this.holidaysService = new holidays.HolidaysService(token);
|
this.holidaysService = new holidays.HolidaysService(token);
|
||||||
this.idService = new id.IdService(token);
|
this.idService = new id.IdService(token);
|
||||||
@@ -96,7 +94,6 @@ export class Client {
|
|||||||
forexService: forex.ForexService;
|
forexService: forex.ForexService;
|
||||||
functionService: fx.FunctionService;
|
functionService: fx.FunctionService;
|
||||||
geocodingService: geocoding.GeocodingService;
|
geocodingService: geocoding.GeocodingService;
|
||||||
gifsService: gifs.GifsService;
|
|
||||||
helloworldService: helloworld.HelloworldService;
|
helloworldService: helloworld.HelloworldService;
|
||||||
holidaysService: holidays.HolidaysService;
|
holidaysService: holidays.HolidaysService;
|
||||||
idService: id.IdService;
|
idService: id.IdService;
|
||||||
|
|||||||
@@ -66,5 +66,5 @@
|
|||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"version": "1.0.551"
|
"version": "1.0.552"
|
||||||
}
|
}
|
||||||
@@ -11,10 +11,10 @@ func CreateArecord() {
|
|||||||
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := dbService.Create(&db.CreateRequest{
|
rsp, err := dbService.Create(&db.CreateRequest{
|
||||||
Record: map[string]interface{}{
|
Record: map[string]interface{}{
|
||||||
"id": "1",
|
|
||||||
"name": "Jane",
|
"name": "Jane",
|
||||||
"age": 42,
|
"age": 42,
|
||||||
"isActive": true,
|
"isActive": true,
|
||||||
|
"id": "1",
|
||||||
},
|
},
|
||||||
Table: "users",
|
Table: "users",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ func UpdateArecord() {
|
|||||||
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := dbService.Update(&db.UpdateRequest{
|
rsp, err := dbService.Update(&db.UpdateRequest{
|
||||||
Record: map[string]interface{}{
|
Record: map[string]interface{}{
|
||||||
"id": "1",
|
|
||||||
"age": 43,
|
"age": 43,
|
||||||
|
"id": "1",
|
||||||
},
|
},
|
||||||
Table: "users",
|
Table: "users",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user