mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -35,7 +35,6 @@ import (
|
||||
"github.com/micro/services/clients/go/sentiment"
|
||||
"github.com/micro/services/clients/go/sms"
|
||||
"github.com/micro/services/clients/go/stock"
|
||||
"github.com/micro/services/clients/go/stream"
|
||||
"github.com/micro/services/clients/go/sunnah"
|
||||
"github.com/micro/services/clients/go/thumbnail"
|
||||
"github.com/micro/services/clients/go/time"
|
||||
@@ -85,7 +84,6 @@ func NewClient(token string) *Client {
|
||||
SentimentService: sentiment.NewSentimentService(token),
|
||||
SmsService: sms.NewSmsService(token),
|
||||
StockService: stock.NewStockService(token),
|
||||
StreamService: stream.NewStreamService(token),
|
||||
SunnahService: sunnah.NewSunnahService(token),
|
||||
ThumbnailService: thumbnail.NewThumbnailService(token),
|
||||
TimeService: time.NewTimeService(token),
|
||||
@@ -135,7 +133,6 @@ type Client struct {
|
||||
SentimentService *sentiment.SentimentService
|
||||
SmsService *sms.SmsService
|
||||
StockService *stock.StockService
|
||||
StreamService *stream.StreamService
|
||||
SunnahService *sunnah.SunnahService
|
||||
ThumbnailService *thumbnail.ThumbnailService
|
||||
TimeService *time.TimeService
|
||||
|
||||
@@ -16,7 +16,7 @@ type MqService struct {
|
||||
client *client.Client
|
||||
}
|
||||
|
||||
// Publish a message to the mq. Specify a topic to group messages for a specific topic.
|
||||
// Publish a message. Specify a topic to group messages for a specific topic.
|
||||
func (t *MqService) Publish(request *PublishRequest) (*PublishResponse, error) {
|
||||
rsp := &PublishResponse{}
|
||||
return rsp, t.client.Call("mq", "Publish", request, rsp)
|
||||
|
||||
1
clients/ts/.gitignore
vendored
1
clients/ts/.gitignore
vendored
@@ -47,7 +47,6 @@ rss
|
||||
sentiment
|
||||
sms
|
||||
stock
|
||||
stream
|
||||
sunnah
|
||||
test
|
||||
thumbnail
|
||||
|
||||
@@ -32,7 +32,6 @@ import * as rss from "./rss";
|
||||
import * as sentiment from "./sentiment";
|
||||
import * as sms from "./sms";
|
||||
import * as stock from "./stock";
|
||||
import * as stream from "./stream";
|
||||
import * as sunnah from "./sunnah";
|
||||
import * as thumbnail from "./thumbnail";
|
||||
import * as time from "./time";
|
||||
@@ -79,7 +78,6 @@ export class Client {
|
||||
this.sentimentService = new sentiment.SentimentService(token);
|
||||
this.smsService = new sms.SmsService(token);
|
||||
this.stockService = new stock.StockService(token);
|
||||
this.streamService = new stream.StreamService(token);
|
||||
this.sunnahService = new sunnah.SunnahService(token);
|
||||
this.thumbnailService = new thumbnail.ThumbnailService(token);
|
||||
this.timeService = new time.TimeService(token);
|
||||
@@ -125,7 +123,6 @@ export class Client {
|
||||
sentimentService: sentiment.SentimentService;
|
||||
smsService: sms.SmsService;
|
||||
stockService: stock.StockService;
|
||||
streamService: stream.StreamService;
|
||||
sunnahService: sunnah.SunnahService;
|
||||
thumbnailService: thumbnail.ThumbnailService;
|
||||
timeService: time.TimeService;
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
"sentiment",
|
||||
"sms",
|
||||
"stock",
|
||||
"stream",
|
||||
"sunnah",
|
||||
"test",
|
||||
"thumbnail",
|
||||
@@ -78,5 +77,5 @@
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "1.0.605"
|
||||
"version": "1.0.607"
|
||||
}
|
||||
@@ -12,10 +12,10 @@ func CreateArecord() {
|
||||
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := dbService.Create(&db.CreateRequest{
|
||||
Record: map[string]interface{}{
|
||||
"id": "1",
|
||||
"name": "Jane",
|
||||
"age": 42,
|
||||
"isActive": true,
|
||||
"id": "1",
|
||||
"name": "Jane",
|
||||
},
|
||||
Table: "users",
|
||||
})
|
||||
|
||||
@@ -12,9 +12,9 @@ func PublishAmessage() {
|
||||
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := eventService.Publish(&event.PublishRequest{
|
||||
Message: map[string]interface{}{
|
||||
"user": "john",
|
||||
"id": "1",
|
||||
"type": "signup",
|
||||
"user": "john",
|
||||
},
|
||||
Topic: "user",
|
||||
})
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/micro/services/clients/go/mq"
|
||||
)
|
||||
|
||||
// Publish a message to the mq. Specify a topic to group messages for a specific topic.
|
||||
// Publish a message. Specify a topic to group messages for a specific topic.
|
||||
func PublishAmessage() {
|
||||
mqService := mq.NewMqService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := mqService.Publish(&mq.PublishRequest{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { MqService } = require("m3o/mq");
|
||||
|
||||
// Publish a message to the mq. Specify a topic to group messages for a specific topic.
|
||||
// Publish a message. Specify a topic to group messages for a specific topic.
|
||||
async function publishAmessage() {
|
||||
let mqService = new MqService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await mqService.publish({
|
||||
|
||||
Reference in New Issue
Block a user