Skip to content

Commit

Permalink
reorg: move request structs to their entities
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed May 17, 2024
1 parent 7984dcb commit 4611c48
Show file tree
Hide file tree
Showing 44 changed files with 8,069 additions and 8,554 deletions.
56 changes: 28 additions & 28 deletions backend/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.LoginUserResponseBody"
"$ref": "#/definitions/models.LoginResponseBody"
}
}
],
Expand Down Expand Up @@ -435,7 +435,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CategoryRequestBody"
"$ref": "#/definitions/categories.CategoryRequestBody"
}
}
],
Expand Down Expand Up @@ -605,7 +605,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CategoryRequestBody"
"$ref": "#/definitions/categories.CategoryRequestBody"
}
}
],
Expand Down Expand Up @@ -814,7 +814,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CreateClubRequestBody"
"$ref": "#/definitions/CreateClubRequestBody"
}
}
],
Expand Down Expand Up @@ -956,7 +956,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.UpdateClubRequestBody"
"$ref": "#/definitions/UpdateClubRequestBody"
}
}
],
Expand Down Expand Up @@ -1057,7 +1057,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.PutContactRequestBody"
"$ref": "#/definitions/PutContactRequestBody"
}
}
],
Expand Down Expand Up @@ -1735,7 +1735,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CreateClubTagsRequestBody"
"$ref": "#/definitions/CreateClubTagsRequestBody"
}
}
],
Expand Down Expand Up @@ -2046,7 +2046,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CreateEventRequestBody"
"$ref": "#/definitions/events.CreateEventRequestBody"
}
}
],
Expand Down Expand Up @@ -2322,7 +2322,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.UpdateEventRequestBody"
"$ref": "#/definitions/events.UpdateEventRequestBody"
}
}
],
Expand Down Expand Up @@ -2626,7 +2626,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CreateFileRequestBody"
"$ref": "#/definitions/CreateFileRequestBody"
}
}
],
Expand Down Expand Up @@ -2921,7 +2921,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CreateTagRequestBody"
"$ref": "#/definitions/CreateTagRequestBody"
}
}
],
Expand Down Expand Up @@ -3063,7 +3063,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.UpdateTagRequestBody"
"$ref": "#/definitions/UpdateTagRequestBody"
}
}
],
Expand Down Expand Up @@ -3162,7 +3162,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.CreateUserRequestBody"
"$ref": "#/definitions/CreateUserRequestBody"
}
}
],
Expand Down Expand Up @@ -3312,7 +3312,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.UpdateUserRequestBody"
"$ref": "#/definitions/UpdateUserRequestBody"
}
}
],
Expand Down Expand Up @@ -3778,7 +3778,7 @@ const docTemplate = `{
}
}
},
"models.CategoryRequestBody": {
"categories.CategoryRequestBody": {
"type": "object",
"required": [
"name"
Expand Down Expand Up @@ -3987,7 +3987,7 @@ const docTemplate = `{
"CustomSite"
]
},
"models.CreateClubRequestBody": {
"CreateClubRequestBody": {
"type": "object",
"required": [
"application_link",
Expand Down Expand Up @@ -4063,7 +4063,7 @@ const docTemplate = `{
}
}
},
"models.CreateClubTagsRequestBody": {
"CreateClubTagsRequestBody": {
"type": "object",
"required": [
"tags"
Expand All @@ -4077,7 +4077,7 @@ const docTemplate = `{
}
}
},
"models.CreateEventRequestBody": {
"events.CreateEventRequestBody": {
"type": "object",
"required": [
"content",
Expand Down Expand Up @@ -4142,7 +4142,7 @@ const docTemplate = `{
}
}
},
"models.CreateFileRequestBody": {
"CreateFileRequestBody": {
"type": "object",
"required": [
"owner_id",
Expand Down Expand Up @@ -4184,7 +4184,7 @@ const docTemplate = `{
}
}
},
"models.CreateTagRequestBody": {
"CreateTagRequestBody": {
"type": "object",
"required": [
"category_id",
Expand All @@ -4200,7 +4200,7 @@ const docTemplate = `{
}
}
},
"models.CreateUserRequestBody": {
"CreateUserRequestBody": {
"type": "object",
"required": [
"email",
Expand Down Expand Up @@ -4727,7 +4727,7 @@ const docTemplate = `{
"May"
]
},
"models.LoginUserResponseBody": {
"models.LoginResponseBody": {
"type": "object",
"required": [
"email",
Expand Down Expand Up @@ -4988,7 +4988,7 @@ const docTemplate = `{
}
}
},
"models.PutContactRequestBody": {
"PutContactRequestBody": {
"type": "object",
"required": [
"content",
Expand Down Expand Up @@ -5125,7 +5125,7 @@ const docTemplate = `{
}
}
},
"models.UpdateClubRequestBody": {
"UpdateClubRequestBody": {
"type": "object",
"required": [
"application_link",
Expand Down Expand Up @@ -5193,7 +5193,7 @@ const docTemplate = `{
}
}
},
"models.UpdateEventRequestBody": {
"events.UpdateEventRequestBody": {
"type": "object",
"properties": {
"content": {
Expand Down Expand Up @@ -5258,7 +5258,7 @@ const docTemplate = `{
"type": "object",
"properties": {
"event_details": {
"$ref": "#/definitions/models.UpdateEventRequestBody"
"$ref": "#/definitions/events.UpdateEventRequestBody"
},
"max_occurrences": {
"type": "integer",
Expand All @@ -5279,7 +5279,7 @@ const docTemplate = `{
}
}
},
"models.UpdateTagRequestBody": {
"UpdateTagRequestBody": {
"type": "object",
"properties": {
"category_id": {
Expand All @@ -5291,7 +5291,7 @@ const docTemplate = `{
}
}
},
"models.UpdateUserRequestBody": {
"UpdateUserRequestBody": {
"type": "object",
"properties": {
"college": {
Expand Down
Loading

0 comments on commit 4611c48

Please sign in to comment.