mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 15:05:01 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
@@ -40,7 +40,6 @@ func (t *ImageService) Upload(request *UploadRequest) (*UploadResponse, error) {
|
|||||||
|
|
||||||
type ConvertRequest struct {
|
type ConvertRequest struct {
|
||||||
// base64 encoded image to resize,
|
// base64 encoded image to resize,
|
||||||
// ie. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
|
|
||||||
Base64 string `json:"base64"`
|
Base64 string `json:"base64"`
|
||||||
// output name of the image including extension, ie. "cat.png"
|
// output name of the image including extension, ie. "cat.png"
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
@@ -79,7 +78,6 @@ type Rectangle struct {
|
|||||||
|
|
||||||
type ResizeRequest struct {
|
type ResizeRequest struct {
|
||||||
// base64 encoded image to resize,
|
// base64 encoded image to resize,
|
||||||
// ie. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
|
|
||||||
Base64 string `json:"base64"`
|
Base64 string `json:"base64"`
|
||||||
// optional crop options
|
// optional crop options
|
||||||
// if provided, after resize, the image
|
// if provided, after resize, the image
|
||||||
@@ -102,7 +100,6 @@ type ResizeResponse struct {
|
|||||||
|
|
||||||
type UploadRequest struct {
|
type UploadRequest struct {
|
||||||
// Base64 encoded image to upload,
|
// Base64 encoded image to upload,
|
||||||
// ie. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
|
|
||||||
Base64 string `json:"base64"`
|
Base64 string `json:"base64"`
|
||||||
// Output name of the image including extension, ie. "cat.png"
|
// Output name of the image including extension, ie. "cat.png"
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|||||||
@@ -76,5 +76,5 @@
|
|||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"version": "1.0.567"
|
"version": "1.0.568"
|
||||||
}
|
}
|
||||||
@@ -12,9 +12,9 @@ func PublishAmessage() {
|
|||||||
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
|
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := streamService.Publish(&stream.PublishRequest{
|
rsp, err := streamService.Publish(&stream.PublishRequest{
|
||||||
Message: map[string]interface{}{
|
Message: map[string]interface{}{
|
||||||
|
"user": "john",
|
||||||
"id": "1",
|
"id": "1",
|
||||||
"type": "signup",
|
"type": "signup",
|
||||||
"user": "john",
|
|
||||||
},
|
},
|
||||||
Topic: "events",
|
Topic: "events",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user