Documentation ¶
Index ¶
- func CreateAccount_SignatureStr(address, name, abstract, avatar, account_id, sub_account_id string, ...) (string, *dtcpv1.AccountPost, error)
- func GetAccountAvatarRawImage(account_id string) ([]byte, error)
- func GetSubAccountAvatarRawImage(account_id, sub_account_id string) ([]byte, error)
- type AccountAvatarResponse
- type AccountCommentsResponse
- type AccountContentList
- type AccountCredists
- type AccountCredistsResponse
- type AccountGroupAppsResponse
- type AccountGroupListResponse
- type AccountJoinedGroupsResponse
- type AccountLikesResponse
- type AccountShareAppsResponse
- type AccountSharesInSingleGroup
- type AccountSharesList
- type AddressMetadata
- type AddressMetadataCreator
- type AddressMetadataExtra
- type AddressMetadataResponse
- type CreateAccountResponse
- type CreateAccountResult
- type GetAccountMetadata
- type GetAccountMetadataCreator
- type GetAccountMetadataExtra
- type GetAccountMetadataResponse
- type SubAccountCredists
- type SubAccountCredistsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccount_SignatureStr ¶
func CreateAccount_SignatureStr(address, name, abstract, avatar, account_id, sub_account_id string, created int, extra_hash string) (string, *dtcpv1.AccountPost, error)
CreateAccount Signature string value
Types ¶
type AccountAvatarResponse ¶
type AccountAvatarResponse struct { core.Response Data *dtcpv1.ContentGet `json:"data"` }
func GetAccountAvatarMetadata ¶
func GetAccountAvatarMetadata(account_id string) (*AccountAvatarResponse, error)
func GetSubAccountAvatarMetadata ¶
func GetSubAccountAvatarMetadata(account_id, sub_account_id string) (*AccountAvatarResponse, error)
type AccountCommentsResponse ¶
type AccountCommentsResponse struct { core.Response Data []dtcpv1.ContentCommentGet `json:"data"` }
func GetAccountComments ¶
func GetAccountComments(account_id string, page, pageSize int) (*AccountCommentsResponse, error)
func GetSubAccountComments ¶
func GetSubAccountComments(account_id, sub_account_id string, page, pageSize int) (*AccountCommentsResponse, error)
type AccountContentList ¶
type AccountContentList struct { core.Response Data []dtcpv1.ContentGet `json:"data"` }
func GetAccountContentList ¶
func GetAccountContentList(account_id string, page, pageSize int) (*AccountContentList, error)
func GetSubAccountContentList ¶
func GetSubAccountContentList(account_id, sub_account_id string, page, pageSize int) (*AccountContentList, error)
type AccountCredists ¶
type AccountCredistsResponse ¶
type AccountCredistsResponse struct { core.Response Data *AccountCredists `json:"data"` }
func GetAccountCreditsList ¶
func GetAccountCreditsList(account_id string) (*AccountCredistsResponse, error)
type AccountGroupAppsResponse ¶
type AccountGroupAppsResponse struct { core.Response Data []dtcpv1.GroupMemberGet `json:"data"` }
func GetAccountGroupApplications ¶
func GetAccountGroupApplications(account_id string, page, pageSize int) (*AccountGroupAppsResponse, error)
func GetSubAccountGroupApplications ¶
func GetSubAccountGroupApplications(account_id, sub_account_id string, page, pageSize int) (*AccountGroupAppsResponse, error)
type AccountGroupListResponse ¶
func GetAccountGroupsList ¶
func GetAccountGroupsList(account_id string, page, pageSize int) (*AccountGroupListResponse, error)
func GetSubAccountGroupsList ¶
func GetSubAccountGroupsList(account_id, sub_account_id string, page, pageSize int) (*AccountGroupListResponse, error)
type AccountJoinedGroupsResponse ¶
func GetAccountJoinedGroups ¶
func GetAccountJoinedGroups(account_id string, page, pageSize int) (*AccountJoinedGroupsResponse, error)
func GetSubAccountJoinedGroups ¶
func GetSubAccountJoinedGroups(account_id, sub_account_id string, page, pageSize int) (*AccountJoinedGroupsResponse, error)
type AccountLikesResponse ¶
type AccountLikesResponse struct { core.Response Data []dtcpv1.ContentLikeGet `json:"data"` }
func GetAccountLikes ¶
func GetAccountLikes(account_id string, page, pageSize int) (*AccountLikesResponse, error)
func GetSubAccountLikes ¶
func GetSubAccountLikes(account_id, sub_account_id string, page, pageSize int) (*AccountLikesResponse, error)
type AccountShareAppsResponse ¶
type AccountShareAppsResponse struct {}
func GetAccountShareApplications ¶
func GetAccountShareApplications(account_id string, page, pageSize int) (*AccountShareAppsResponse, error)
func GetSubAccountShareApplications ¶
func GetSubAccountShareApplications(account_id, sub_account_id string, page, pageSize int) (*AccountShareAppsResponse, error)
type AccountSharesInSingleGroup ¶
type AccountSharesInSingleGroup struct {}
func GetAccountSharesInSingleGroup ¶
func GetAccountSharesInSingleGroup(account_id, group_id string, page, pageSize int) (*AccountSharesInSingleGroup, error)
func GetSubAccountSharesInSingleGroup ¶
func GetSubAccountSharesInSingleGroup(account_id, sub_account_id, group_id string, page, pageSize int) (*AccountSharesInSingleGroup, error)
type AccountSharesList ¶
type AccountSharesList struct {}
func GetAccountSharesList ¶
func GetAccountSharesList(account_id string, page, pageSize int) (*AccountSharesList, error)
func GetSubAccountSharesList ¶
func GetSubAccountSharesList(account_id, sub_account_id string, page, pageSize int) (*AccountSharesList, error)
type AddressMetadata ¶
type AddressMetadata struct { Id string `json:"id"` // Account id. Address string `json:"address"` // Account address. Title string `json:"title"` // Account name. Abstract string `json:"abstract,omitempty"` // Description. Avatar string `json:"avatar,omitempty"` // An image id used for avatar. Creator *AddressMetadataCreator `json:"creator"` // Creator of the sub account. Created int `json:"created"` // Account creation time. Unix timestamp. Updated int `json:"updated"` // Account last updating time. Unix timestamp. Extra *AddressMetadataExtra `json:"extra,omitempty"` // Extra metadata. Signature string `json:"signature"` // Metadata signature. Dna string `json:"dna"` // DNA of the account. Hp int `json:"hp"` // available hp value TotalHp int `json:"total_hp"` // total hp value Credits int `json:"credits"` // Current credits. TransactionId string `json:"transaction_id"` // Latest transaction id. }
type AddressMetadataCreator ¶
type AddressMetadataExtra ¶
type AddressMetadataExtra struct {
Hash string `json:"hash"` // In the case of proof of existence of secret data. The hash can be filled in this field.
}
type AddressMetadataResponse ¶
type AddressMetadataResponse struct { core.Response Data *AddressMetadata `json:"data"` }
func GetAddressMetadata ¶
func GetAddressMetadata(address string) (*AddressMetadataResponse, error)
type CreateAccountResponse ¶
type CreateAccountResponse struct { core.Response Data *CreateAccountResult `json:"data"` }
func CreateAccount ¶
func CreateAccount(signature string, preObj *dtcpv1.AccountPost) (*CreateAccountResponse, error)
type CreateAccountResult ¶
type GetAccountMetadata ¶
type GetAccountMetadata struct { Id string `json:"id"` // Account id. Address string `json:"address"` // Account address. Title string `json:"title"` // Account name. Abstract string `json:"abstract,omitempty"` // Description. Avatar string `json:"avatar,omitempty"` // An image id used for avatar. Creator *GetAccountMetadataCreator `json:"creator"` // Creator of the sub account. Created int `json:"created"` // Account creation time. Unix timestamp. Updated int `json:"updated"` // Account last updating time. Unix timestamp. Extra *GetAccountMetadataExtra `json:"extra,omitempty"` // Extra metadata. Signature string `json:"signature"` // Metadata signature. Dna string `json:"dna"` // DNA of the account. Hp int `json:"hp"` // available hp value TotalHp int `json:"total_hp"` // total hp value Credits int `json:"credits"` // Current credits. TransactionId string `json:"transaction_id"` // Latest transaction id. }
type GetAccountMetadataExtra ¶
type GetAccountMetadataExtra struct {
Hash string `json:"hash"` // In the case of proof of existence of secret data. The hash can be filled in this field.
}
type GetAccountMetadataResponse ¶
type GetAccountMetadataResponse struct { core.Response Data *GetAccountMetadata `json:"data"` }
func GetAccountTokenMetadata ¶
func GetAccountTokenMetadata(account_id string) (*GetAccountMetadataResponse, error)
func GetSubAccountTokenMetadata ¶
func GetSubAccountTokenMetadata(account_id, sub_account_id string) (*GetAccountMetadataResponse, error)
type SubAccountCredists ¶
type SubAccountCredistsResponse ¶
type SubAccountCredistsResponse struct { core.Response Data *SubAccountCredists `json:"data"` }
func GetSubAccountCreditsList ¶
func GetSubAccountCreditsList(account_id, sub_account_id string) (*SubAccountCredistsResponse, error)
Source Files ¶
- create_account.go
- get_account-credits_list.go
- get_account_avatar_metadata.go
- get_account_avatar_raw_image.go
- get_account_comments.go
- get_account_content_list.go
- get_account_group_applications.go
- get_account_groups_list.go
- get_account_joined_groups.go
- get_account_likes.go
- get_account_metadata.go
- get_account_share_applications.go
- get_account_shares.go
- get_account_shares_in_single_group.go
- get_address_metadata.go
Click to show internal directories.
Click to hide internal directories.