@@ -18,6 +18,7 @@ import (
|
|||||||
// @Param request body service_event.EventJoinData true "Event Join Details (UserId and EventId are required)"
|
// @Param request body service_event.EventJoinData true "Event Join Details (UserId and EventId are required)"
|
||||||
// @Success 200 {object} utils.RespStatus{data=nil} "Successfully joined the event"
|
// @Success 200 {object} utils.RespStatus{data=nil} "Successfully joined the event"
|
||||||
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input or UUID Parse Failed"
|
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input or UUID Parse Failed"
|
||||||
|
// @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized"
|
||||||
// @Failure 403 {object} utils.RespStatus{data=nil} "Unauthorized / Missing User ID"
|
// @Failure 403 {object} utils.RespStatus{data=nil} "Unauthorized / Missing User ID"
|
||||||
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error / Database Error"
|
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error / Database Error"
|
||||||
// @Security ApiKeyAuth
|
// @Security ApiKeyAuth
|
||||||
|
|||||||
27
docs/docs.go
27
docs/docs.go
@@ -975,6 +975,24 @@ const docTemplate = `{
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Missing User ID / Unauthorized",
|
||||||
|
"schema": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/utils.RespStatus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "Unauthorized / Missing User ID",
|
"description": "Unauthorized / Missing User ID",
|
||||||
"schema": {
|
"schema": {
|
||||||
@@ -1721,15 +1739,6 @@ const docTemplate = `{
|
|||||||
"properties": {
|
"properties": {
|
||||||
"event_id": {
|
"event_id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
|
||||||
"role": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"user_id": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -973,6 +973,24 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Missing User ID / Unauthorized",
|
||||||
|
"schema": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/utils.RespStatus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "Unauthorized / Missing User ID",
|
"description": "Unauthorized / Missing User ID",
|
||||||
"schema": {
|
"schema": {
|
||||||
@@ -1719,15 +1737,6 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"event_id": {
|
"event_id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
|
||||||
"role": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"user_id": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -104,12 +104,6 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
event_id:
|
event_id:
|
||||||
type: string
|
type: string
|
||||||
role:
|
|
||||||
type: string
|
|
||||||
state:
|
|
||||||
type: string
|
|
||||||
user_id:
|
|
||||||
type: string
|
|
||||||
type: object
|
type: object
|
||||||
service_user.UserInfoData:
|
service_user.UserInfoData:
|
||||||
properties:
|
properties:
|
||||||
@@ -681,6 +675,15 @@ paths:
|
|||||||
data:
|
data:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
"401":
|
||||||
|
description: Missing User ID / Unauthorized
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/definitions/utils.RespStatus'
|
||||||
|
- properties:
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
"403":
|
"403":
|
||||||
description: Unauthorized / Missing User ID
|
description: Unauthorized / Missing User ID
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
|
|
||||||
type EventJoinData struct {
|
type EventJoinData struct {
|
||||||
EventId string `json:"event_id"`
|
EventId string `json:"event_id"`
|
||||||
UserId string `json:"user_id"`
|
UserId string `json:"user_id" swaggerignore:"true"`
|
||||||
Role string `json:"role"`
|
Role string `json:"role" swaggerignore:"true"`
|
||||||
State string `json:"state"`
|
State string `json:"state" swaggerignore:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type EventJoinPayload struct {
|
type EventJoinPayload struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user