Correct "number" - it's actually the phone number

This commit is contained in:
crummy
2024-10-28 13:37:50 +13:00
parent 26a5a6039b
commit 8ac02d28eb
5 changed files with 22 additions and 22 deletions

View File

@@ -1416,7 +1416,7 @@ func (a *Api) UpdateGroup(c *gin.Context) {
// @Success 204 {string} OK
// @Failure 400 {object} Error
// @Param data body Reaction true "Reaction"
// @Param id path int true "Reaction Identifier"
// @Param id path string true "Phone number"
// @Router /v1/reactions/{number} [post]
func (a *Api) SendReaction(c *gin.Context) {
var req Reaction
@@ -1465,7 +1465,7 @@ func (a *Api) SendReaction(c *gin.Context) {
// @Success 204 {string} OK
// @Failure 400 {object} Error
// @Param data body Reaction true "Reaction"
// @Param id path int true "Reaction Identifier"
// @Param id path string true "Phone number"
// @Router /v1/reactions/{number} [delete]
func (a *Api) RemoveReaction(c *gin.Context) {
var req Reaction
@@ -1509,7 +1509,7 @@ func (a *Api) RemoveReaction(c *gin.Context) {
// @Success 204 {string} OK
// @Failure 400 {object} Error
// @Param data body Receipt true "Receipt"
// @Param id path int true "Receipt Identifier"
// @Param id path string true "Phone number"
// @Router /v1/receipts/{number} [post]
func (a *Api) SendReceipt(c *gin.Context) {
var req Receipt

View File

@@ -1,6 +1,6 @@
These files are generated from the [swaggo/swag](https://github.com/swaggo/swag) tool.
To regenerate them, run:
To regenerate them, run in /src:
```bash
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init

View File

@@ -1417,8 +1417,8 @@ const docTemplate = `{
}
},
{
"type": "integer",
"description": "Reaction Identifier",
"type": "string",
"description": "Phone number",
"name": "id",
"in": "path",
"required": true
@@ -1462,8 +1462,8 @@ const docTemplate = `{
}
},
{
"type": "integer",
"description": "Reaction Identifier",
"type": "string",
"description": "Phone number",
"name": "id",
"in": "path",
"required": true
@@ -1509,8 +1509,8 @@ const docTemplate = `{
}
},
{
"type": "integer",
"description": "Receipt Identifier",
"type": "string",
"description": "Phone number",
"name": "id",
"in": "path",
"required": true

View File

@@ -1414,8 +1414,8 @@
}
},
{
"type": "integer",
"description": "Reaction Identifier",
"type": "string",
"description": "Phone number",
"name": "id",
"in": "path",
"required": true
@@ -1459,8 +1459,8 @@
}
},
{
"type": "integer",
"description": "Reaction Identifier",
"type": "string",
"description": "Phone number",
"name": "id",
"in": "path",
"required": true
@@ -1506,8 +1506,8 @@
}
},
{
"type": "integer",
"description": "Receipt Identifier",
"type": "string",
"description": "Phone number",
"name": "id",
"in": "path",
"required": true

View File

@@ -1287,11 +1287,11 @@ paths:
required: true
schema:
$ref: '#/definitions/api.Reaction'
- description: Reaction Identifier
- description: Phone number
in: path
name: id
required: true
type: integer
type: string
produces:
- application/json
responses:
@@ -1317,11 +1317,11 @@ paths:
required: true
schema:
$ref: '#/definitions/api.Reaction'
- description: Reaction Identifier
- description: Phone number
in: path
name: id
required: true
type: integer
type: string
produces:
- application/json
responses:
@@ -1348,11 +1348,11 @@ paths:
required: true
schema:
$ref: '#/definitions/api.Receipt'
- description: Receipt Identifier
- description: Phone number
in: path
name: id
required: true
type: integer
type: string
produces:
- application/json
responses: