Rename Id to ID for annotation models (#62886)

* Rename Id to ID for annotation models

* Add xorm tags

* Rename Id to ID for API key models

* Add xorm tags
This commit is contained in:
idafurjes
2023-02-03 17:23:09 +01:00
committed by GitHub
parent a0602a2a78
commit 982939111b
34 changed files with 367 additions and 367 deletions

View File

@@ -98,7 +98,7 @@ func (api *ServiceAccountsAPI) ListTokens(ctx *contextmodel.ReqContext) response
}
result[i] = TokenDTO{
Id: token.Id,
Id: token.ID,
Name: token.Name,
Created: &token.Created,
Expiration: expiration,
@@ -187,7 +187,7 @@ func (api *ServiceAccountsAPI) CreateToken(c *contextmodel.ReqContext) response.
}
result := &dtos.NewApiKeyResult{
ID: apiKey.Id,
ID: apiKey.ID,
Name: apiKey.Name,
Key: newKeyInfo.ClientSecret,
}