-
Notifications
You must be signed in to change notification settings - Fork 5
feat: apis to get employee earns report #672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thay vì
{
"data": {
"last_5_txns": [
{}
]
}
}
thì
{
"data": [
{}
]
}
Mình có thể add thêm query để query lấy 5 last txns luôn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request và response in camelCase.
id ở sau từ thứ 2 là ID thay vì Id
discordId -> discordID cho consistent.
faf443d to
1403daa
Compare
c0f29ef to
b118965
Compare
0b87f4b to
b11c79e
Compare
b118965 to
f352857
Compare
8271d55 to
bdc5b48
Compare
aa3a2ec to
3421000
Compare
docs/swagger.yaml
Outdated
| type: object | ||
| Application: | ||
| properties: | ||
| ID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ID -> id
docs/swagger.yaml
Outdated
| type: object | ||
| AssociatedAccounts: | ||
| properties: | ||
| ID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too
docs/swagger.yaml
Outdated
| type: object | ||
| Chain: | ||
| properties: | ||
| ID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to
3421000 to
b27a26a
Compare
API to get list earn transactions
cURL
Response
{ "data": [ { "ID": "string", "action": "string", "amount": "string", "amountEachProfiles": [ { "amount": "string", "profileID": "string", "usdAmount": 0 } ], "chainID": "string", "createdAt": "string", "expiredAt": "string", "externalID": "string", "fromAmount": "string", "fromProfile": { "ID": "string", "application": { "ID": 0, "active": true, "applicationProfileID": "string", "name": "string", "ownerProfileID": "string", "serviceFee": 0 }, "associatedAccounts": [ { "ID": "string", "createdAt": "string", "isGuildMember": true, "platform": "string", "platformIdentifier": "string", "platformMetadata": "string", "profileID": "string", "updatedAt": "string" } ], "avatar": "string", "createdAt": "string", "profileName": "string", "type": "string", "updatedAt": "string" }, "fromProfileID": "string", "fromProfileSource": "string", "fromToken": { "ID": "string", "address": "string", "chain": { "ID": "string", "chainID": "string", "explorer": "string", "icon": "string", "name": "string", "rpc": "string", "symbol": "string", "type": "string" }, "chainID": "string", "coinGeckoID": "string", "decimal": 0, "icon": "string", "name": "string", "native": true, "price": 0, "symbol": "string" }, "fromTokenId": "string", "internalID": 0, "metadata": { "additionalProp1": {} }, "onchainTxHash": "string", "originalTxID": "string", "otherProfile": { "ID": "string", "application": { "ID": 0, "active": true, "applicationProfileID": "string", "name": "string", "ownerProfileID": "string", "serviceFee": 0 }, "associatedAccounts": [ { "ID": "string", "createdAt": "string", "isGuildMember": true, "platform": "string", "platformIdentifier": "string", "platformMetadata": "string", "profileID": "string", "updatedAt": "string" } ], "avatar": "string", "createdAt": "string", "profileName": "string", "type": "string", "updatedAt": "string" }, "otherProfileID": "string", "otherProfileIds": [ "string" ], "otherProfileSource": "string", "otherProfiles": [ { "ID": "string", "application": { "ID": 0, "active": true, "applicationProfileID": "string", "name": "string", "ownerProfileID": "string", "serviceFee": 0 }, "associatedAccounts": [ { "ID": "string", "createdAt": "string", "isGuildMember": true, "platform": "string", "platformIdentifier": "string", "platformMetadata": "string", "profileID": "string", "updatedAt": "string" } ], "avatar": "string", "createdAt": "string", "profileName": "string", "type": "string", "updatedAt": "string" } ], "settledAt": "string", "sourcePlatform": "string", "status": "string", "toAmount": "string", "toToken": { "ID": "string", "address": "string", "chain": { "ID": "string", "chainID": "string", "explorer": "string", "icon": "string", "name": "string", "rpc": "string", "symbol": "string", "type": "string" }, "chainID": "string", "coinGeckoID": "string", "decimal": 0, "icon": "string", "name": "string", "native": true, "price": 0, "symbol": "string" }, "toTokenId": "string", "token": { "ID": "string", "address": "string", "chain": { "ID": "string", "chainID": "string", "explorer": "string", "icon": "string", "name": "string", "rpc": "string", "symbol": "string", "type": "string" }, "chainID": "string", "coinGeckoID": "string", "decimal": 0, "icon": "string", "name": "string", "native": true, "price": 0, "symbol": "string" }, "tokenID": "string", "totalAmount": "string", "type": "string", "updatedAt": "string", "usdAmount": 0 } ], "page": 0, "size": 0, "total": 0 }API to get total earns of employee by discord id
cURL
Response
{ "data": { "totalEarnsICY": "680", "totalEarnsUSD": 1020 } }