mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -95,9 +95,11 @@ type Account struct {
|
|||||||
// unix timestamp
|
// unix timestamp
|
||||||
Updated int64 `json:"updated,string"`
|
Updated int64 `json:"updated,string"`
|
||||||
// alphanumeric username
|
// alphanumeric username
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
VerificationDate int64 `json:"verificationDate,string"`
|
// date of verification
|
||||||
Verified bool `json:"verified"`
|
VerificationDate int64 `json:"verificationDate,string"`
|
||||||
|
// if the account is verified
|
||||||
|
Verified bool `json:"verified"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateRequest struct {
|
type CreateRequest struct {
|
||||||
|
|||||||
@@ -76,5 +76,5 @@
|
|||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"version": "1.0.590"
|
"version": "1.0.591"
|
||||||
}
|
}
|
||||||
@@ -12,8 +12,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{}{
|
||||||
"age": 43,
|
|
||||||
"id": "1",
|
"id": "1",
|
||||||
|
"age": 43,
|
||||||
},
|
},
|
||||||
Table: "users",
|
Table: "users",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user