Skip to content

Commit

Permalink
Merge branch 'release/v0.1.35'
Browse files Browse the repository at this point in the history
* release/v0.1.35:
  chore: add country data
  feat: cronjob api to post brainery report (#627)
  chore: return chapter data in emp loc resp
  feat: get employee location (#628)
  • Loading branch information
namnhce committed Jun 27, 2023
2 parents c3084bb + ed12a99 commit 4019f83
Show file tree
Hide file tree
Showing 26 changed files with 1,189 additions and 87 deletions.
239 changes: 238 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,62 @@ const docTemplate = `{
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/view.MessageResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/view.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/view.ErrorResponse"
}
}
}
}
},
"/brainery-logs/metrics": {
"get": {
"description": "Get brainery metric",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Project"
],
"summary": "Get brainery metric",
"parameters": [
{
"type": "string",
"description": "jwt token",
"name": "Authorization",
"in": "header",
"required": true
},
{
"type": "string",
"description": "Time view",
"name": "view",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/view.BraineryMetric"
}
},
"400": {
"description": "Bad Request",
"schema": {
Expand Down Expand Up @@ -5508,6 +5564,47 @@ const docTemplate = `{
}
}
},
"/public/employees": {
"get": {
"description": "Get employees list with location",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Employee"
],
"summary": "Get employees list with location",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/view.EmployeeLocationListResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/view.ErrorResponse"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/view.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/view.ErrorResponse"
}
}
}
}
},
"/surveys": {
"get": {
"description": "Get list event",
Expand Down Expand Up @@ -6345,6 +6442,20 @@ const docTemplate = `{
}
}
},
"model.City": {
"type": "object",
"properties": {
"lat": {
"type": "string"
},
"long": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"model.Client": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -6499,7 +6610,7 @@ const docTemplate = `{
"cities": {
"type": "array",
"items": {
"type": "integer"
"$ref": "#/definitions/model.City"
}
},
"code": {
Expand Down Expand Up @@ -9855,6 +9966,41 @@ const docTemplate = `{
}
}
},
"view.BraineryMetric": {
"type": "object",
"properties": {
"contributors": {
"type": "array",
"items": {
"$ref": "#/definitions/view.Post"
}
},
"latestPosts": {
"type": "array",
"items": {
"$ref": "#/definitions/view.Post"
}
},
"newContributors": {
"type": "array",
"items": {
"$ref": "#/definitions/view.Post"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"topContributors": {
"type": "array",
"items": {
"$ref": "#/definitions/view.TopContributor"
}
}
}
},
"view.Chapter": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10265,6 +10411,26 @@ const docTemplate = `{
}
}
},
"view.EmployeeAddress": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"lat": {
"type": "string"
},
"long": {
"type": "string"
}
}
},
"view.EmployeeContentData": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10492,6 +10658,43 @@ const docTemplate = `{
}
}
},
"view.EmployeeLocation": {
"type": "object",
"properties": {
"address": {
"$ref": "#/definitions/view.EmployeeAddress"
},
"avatar": {
"type": "string"
},
"chapters": {
"type": "array",
"items": {
"$ref": "#/definitions/view.Chapter"
}
},
"discordID": {
"type": "string"
},
"displayName": {
"type": "string"
},
"fullName": {
"type": "string"
}
}
},
"view.EmployeeLocationListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/view.EmployeeLocation"
}
}
}
},
"view.EmployeeProjectData": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -11422,6 +11625,26 @@ const docTemplate = `{
}
}
},
"view.Post": {
"type": "object",
"properties": {
"discordID": {
"type": "string"
},
"publishedAt": {
"type": "string"
},
"reward": {
"type": "number"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"view.ProfileData": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12139,6 +12362,20 @@ const docTemplate = `{
}
}
},
"view.TopContributor": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"discordID": {
"type": "string"
},
"ranking": {
"type": "integer"
}
}
},
"view.Topic": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 4019f83

Please sign in to comment.