mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 20:14:47 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f"
|
||||
"id": "8b98acbe-0b6a-4d66-a414-5ffbf666786f"
|
||||
}'
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
func DeleteUserAccount() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.Delete(&user.DeleteRequest{
|
||||
Id: "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
||||
Id: "8b98acbe-0b6a-4d66-a414-5ffbf666786f",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
||||
async function deleteUserAccount() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.delete({
|
||||
id: "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
||||
id: "8b98acbe-0b6a-4d66-a414-5ffbf666786f",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user