Skip to content

Commit

Permalink
feat: update project info (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
namnhce authored Aug 1, 2024
1 parent 0e139e6 commit 70bbe72
Show file tree
Hide file tree
Showing 25 changed files with 1,230 additions and 49 deletions.
365 changes: 362 additions & 3 deletions docs/docs.go

Large diffs are not rendered by default.

365 changes: 362 additions & 3 deletions docs/swagger.json

Large diffs are not rendered by default.

242 changes: 239 additions & 3 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,12 @@ definitions:
type: object
BasicClientInfo:
properties:
address:
type: string
contacts:
items:
$ref: '#/definitions/ClientContact'
type: array
description:
type: string
id:
Expand Down Expand Up @@ -1191,8 +1197,9 @@ definitions:
$ref: '#/definitions/Stack'
type: array
status:
allOf:
- $ref: '#/definitions/WorkingStatus'
description: working info
type: string
teamEmail:
type: string
updatedAt:
Expand Down Expand Up @@ -1308,7 +1315,7 @@ definitions:
totalEarnsICY:
type: string
totalEarnsUSD:
type: number
type: string
type: object
EngagementDashboard:
properties:
Expand Down Expand Up @@ -1596,6 +1603,11 @@ definitions:
type: string
type: array
type: object
GetNftMetadataResponse:
properties:
data:
$ref: '#/definitions/NftInfo'
type: object
GetQuestionResponse:
properties:
data:
Expand Down Expand Up @@ -1871,6 +1883,13 @@ definitions:
$ref: '#/definitions/Bank'
type: array
type: object
ListEarnResponse:
properties:
earns:
items:
$ref: '#/definitions/github_com_dwarvesf_fortress-api_pkg_view.Earn'
type: array
type: object
ListFeedbackResponse:
properties:
data:
Expand All @@ -1886,6 +1905,21 @@ definitions:
total:
type: integer
type: object
ListResearchTopicResponse:
properties:
data:
items:
$ref: '#/definitions/pkg_view.DiscordResearchTopic'
type: array
page:
description: page index
type: integer
size:
description: page size
type: integer
total:
type: integer
type: object
ListSurveyDetailResponse:
properties:
data:
Expand Down Expand Up @@ -2081,6 +2115,21 @@ definitions:
usdAmount:
type: number
type: object
NftInfo:
properties:
attributes:
items:
$ref: '#/definitions/pkg_view.attribute'
type: array
background_color:
type: string
description:
type: string
image:
type: string
name:
type: string
type: object
NotionTechRadar:
properties:
assign:
Expand Down Expand Up @@ -3682,6 +3731,8 @@ definitions:
type: string
clientID:
type: string
companyInfoID:
type: string
countryID:
type: string
deliveryRating:
Expand Down Expand Up @@ -3834,7 +3885,7 @@ definitions:
UpdateWorkingStatusRequest:
properties:
employeeStatus:
type: string
$ref: '#/definitions/WorkingStatus'
type: object
UpdatedProject:
properties:
Expand Down Expand Up @@ -4142,6 +4193,20 @@ definitions:
- WorkUnitTypeManagement
- WorkUnitTypeTraining
- WorkUnitTypeLearning
WorkingStatus:
enum:
- on-boarding
- left
- probation
- full-time
- contractor
type: string
x-enum-varnames:
- WorkingStatusOnBoarding
- WorkingStatusLeft
- WorkingStatusProbation
- WorkingStatusFullTime
- WorkingStatusContractor
github_com_dwarvesf_fortress-api_pkg_model.SortOrder:
enum:
- asc
Expand All @@ -4150,6 +4215,57 @@ definitions:
x-enum-varnames:
- SortOrderASC
- SortOrderDESC
github_com_dwarvesf_fortress-api_pkg_view.Earn:
properties:
bounty:
type: string
function:
type: string
pics:
items:
type: string
type: array
status:
type: string
title:
type: string
url:
type: string
type: object
github_com_dwarvesf_fortress-api_pkg_view.GetListCompanyInfoResponse:
properties:
data:
items:
$ref: '#/definitions/CompanyInfo'
type: array
type: object
pkg_view.DiscordResearchTopic:
properties:
msgCount:
type: integer
name:
type: string
sortedActiveUsers:
items:
$ref: '#/definitions/pkg_view.DiscordTopicActiveUser'
type: array
url:
type: string
type: object
pkg_view.DiscordTopicActiveUser:
properties:
msgCount:
type: integer
userID:
type: string
type: object
pkg_view.attribute:
properties:
trait_type:
type: string
value:
type: string
type: object
info:
contact:
email: benjamin@d.foundation
Expand Down Expand Up @@ -4588,6 +4704,62 @@ paths:
summary: Update client by id
tags:
- Client
/community-nfts/{id}:
get:
consumes:
- application/json
description: Get metadata of a nft
operationId: getNftMetadata
parameters:
- description: NFT ID
in: path
name: id
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/GetNftMetadataResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
"404":
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
summary: Get metadata of a nft
tags:
- CommunityNft
/company-infos:
get:
consumes:
- application/json
description: Get all company info
operationId: get list of company info
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/github_com_dwarvesf_fortress-api_pkg_view.GetListCompanyInfoResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
security:
- BearerAuth: []
summary: Get all company info
tags:
- Client
/cron-jobs/store-vault-transaction:
post:
consumes:
Expand Down Expand Up @@ -5201,6 +5373,43 @@ paths:
summary: List earn transactions of employee
tags:
- Employee
/discords/research-topics:
get:
consumes:
- application/json
description: Get list of research topics on discord
operationId: ListDiscordResearchTopics
parameters:
- description: Page
in: query
name: page
type: string
- description: Size
in: query
name: size
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/ListResearchTopicResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
"404":
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
summary: Get list of research topics on discord
tags:
- Discord
/discords/salary-advance-report:
get:
consumes:
Expand Down Expand Up @@ -5238,6 +5447,33 @@ paths:
summary: List salary advance aggregated by employee
tags:
- Employee
/earn:
get:
consumes:
- application/json
description: List of earns from memo
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/ListEarnResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/ErrorResponse'
"404":
description: Not Found
schema:
$ref: '#/definitions/ErrorResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/ErrorResponse'
summary: List of earns from memo
tags:
- Earn
/employees:
post:
consumes:
Expand Down
4 changes: 0 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ require (
github.com/go-faster/errors v0.6.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-git/go-git v4.7.0+incompatible // indirect
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
Expand Down Expand Up @@ -129,14 +128,12 @@ require (
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/k0kubun/pp v3.0.1+incompatible // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
Expand Down Expand Up @@ -186,7 +183,6 @@ require (
google.golang.org/grpc v1.56.2 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/src-d/go-git.v4 v4.13.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/mysql v1.4.7 // indirect
Expand Down
Loading

0 comments on commit 70bbe72

Please sign in to comment.