-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add searchUserAssets & search activity by tokenName
- Loading branch information
Showing
9 changed files
with
176 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/EoaServer.Application.Contracts/UserAssets/Dto/SearchUserAssetsDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System.Collections.Generic; | ||
using EoaServer.Commons; | ||
|
||
namespace EoaServer.UserAssets.Dto; | ||
|
||
public class SearchUserAssetsV2Dto | ||
{ | ||
public List<TokenInfoV2Dto> TokenInfos { get; set; } = new(); | ||
public List<NftCollectionDto> NftInfos { get; set; } = new(); | ||
public long TotalRecordCount { get; set; } | ||
} | ||
|
||
public class NftInfoDto : ChainDisplayNameDto | ||
{ | ||
public string ImageUrl { get; set; } | ||
public string Alias { get; set; } | ||
public string TokenId { get; set; } | ||
public string CollectionName { get; set; } // nftItem collectionSymbol | ||
public string Balance { get; set; } | ||
public string TokenContractAddress { get; set; } | ||
public string Decimals { get; set; } | ||
public string TokenName { get; set; } | ||
public bool IsSeed { get; set; } | ||
public int SeedType { get; set; } | ||
public string Label { get; set; } // new nftItem | ||
public string Symbol { get; set; } | ||
} | ||
|
||
public class TokenInfoV2Dto : ChainDisplayNameDto | ||
{ | ||
public string Symbol { get; set; } | ||
public string Address { get; set; } // user address | ||
public string Label { get; set; } | ||
|
||
public string Balance { get; set; } | ||
public string Decimals { get; set; } | ||
public string BalanceInUsd { get; set; } | ||
public string TokenContractAddress { get; set; } | ||
public string ImageUrl { get; set; } | ||
} | ||
|
||
public class NftCollectionDto | ||
{ | ||
public string CollectionName { get; set; } | ||
public string ImageUrl { get; set; } | ||
public List<NftInfoDto> Items { get; set; } = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/EoaServer.Application.Contracts/UserAssets/Request/GetTokenRequestDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using EoaServer.UserAssets; | ||
|
||
namespace EoaServer.UserAssets; | ||
|
||
public class GetTokenRequestDto : GetAssetsBase | ||
|
12 changes: 12 additions & 0 deletions
12
src/EoaServer.Application.Contracts/UserAssets/Request/SearchUserAssetsRequestDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace EoaServer.UserAssets; | ||
|
||
public class SearchUserAssetsRequestDto : GetAssetsBase | ||
{ | ||
[MaxLength(100)] public string Keyword { get; set; } | ||
|
||
public int Width { get; set; } | ||
|
||
public int Height { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters