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 // @Success 204 {string} OK
// @Failure 400 {object} Error // @Failure 400 {object} Error
// @Param data body Reaction true "Reaction" // @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] // @Router /v1/reactions/{number} [post]
func (a *Api) SendReaction(c *gin.Context) { func (a *Api) SendReaction(c *gin.Context) {
var req Reaction var req Reaction
@@ -1465,7 +1465,7 @@ func (a *Api) SendReaction(c *gin.Context) {
// @Success 204 {string} OK // @Success 204 {string} OK
// @Failure 400 {object} Error // @Failure 400 {object} Error
// @Param data body Reaction true "Reaction" // @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] // @Router /v1/reactions/{number} [delete]
func (a *Api) RemoveReaction(c *gin.Context) { func (a *Api) RemoveReaction(c *gin.Context) {
var req Reaction var req Reaction
@@ -1509,7 +1509,7 @@ func (a *Api) RemoveReaction(c *gin.Context) {
// @Success 204 {string} OK // @Success 204 {string} OK
// @Failure 400 {object} Error // @Failure 400 {object} Error
// @Param data body Receipt true "Receipt" // @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] // @Router /v1/receipts/{number} [post]
func (a *Api) SendReceipt(c *gin.Context) { func (a *Api) SendReceipt(c *gin.Context) {
var req Receipt var req Receipt

View File

@@ -1,6 +1,6 @@
These files are generated from the [swaggo/swag](https://github.com/swaggo/swag) tool. 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 ```bash
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init

View File

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

View File

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

View File

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