Update placement to return string id
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -888,7 +888,7 @@ const docTemplate = `{
|
|||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"map": {
|
"map": {
|
||||||
"$ref": "#/definitions/Map"
|
"$ref": "#/definitions/Map"
|
||||||
@@ -911,7 +911,7 @@ const docTemplate = `{
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"placement": {
|
"placement": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
|||||||
@@ -881,7 +881,7 @@
|
|||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"map": {
|
"map": {
|
||||||
"$ref": "#/definitions/Map"
|
"$ref": "#/definitions/Map"
|
||||||
@@ -904,7 +904,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"placement": {
|
"placement": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ definitions:
|
|||||||
has_bot:
|
has_bot:
|
||||||
type: boolean
|
type: boolean
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: string
|
||||||
map:
|
map:
|
||||||
$ref: '#/definitions/Map'
|
$ref: '#/definitions/Map'
|
||||||
mode_id:
|
mode_id:
|
||||||
@@ -181,7 +181,7 @@ definitions:
|
|||||||
TimePlacement:
|
TimePlacement:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: string
|
||||||
placement:
|
placement:
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type TimePlacement struct {
|
type TimePlacement struct {
|
||||||
ID int64 `json:"id"`
|
ID string `json:"id"`
|
||||||
Placement int64 `json:"placement"`
|
Placement int64 `json:"placement"`
|
||||||
} // @name TimePlacement
|
} // @name TimePlacement
|
||||||
|
|
||||||
func (r TimePlacement) FromGRPC(rank *times.RankResponse) *TimePlacement {
|
func (r TimePlacement) FromGRPC(rank *times.RankResponse) *TimePlacement {
|
||||||
@@ -16,7 +16,7 @@ func (r TimePlacement) FromGRPC(rank *times.RankResponse) *TimePlacement {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return &TimePlacement{
|
return &TimePlacement{
|
||||||
ID: rank.ID,
|
ID: strconv.FormatInt(rank.ID, 10),
|
||||||
Placement: rank.Rank,
|
Placement: rank.Rank,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user