Documentation ¶
Index ¶
- Variables
- func InitMysql(cfg *config.DB) error
- type APMethod
- type APMethodWithAPInfo
- type AlgorithmProvider
- type ApplicationInfo
- type AuthInfo
- type ClaimNFTRecord
- type DBCon
- func (this *DBCon) AddAPInvokeFrenquency(did string, delay int64) error
- func (this *DBCon) AddAPMethodInvoked(did, method string, delay int64) error
- func (db *DBCon) AddFeedBack(fb *FeedBack) error
- func (db *DBCon) AddNewBasicInfo(did, nickName, email, avatar string) error
- func (db *DBCon) AddNewClaimRecord(record *ClaimNFTRecord) error
- func (db *DBCon) AddNewEmailVerificationCode(did, email, vcode string) error
- func (this *DBCon) AddTask(userdid, ap_did, ap_method, dp_did, dp_method, callerdid, bind_info string) (int64, error)
- func (db *DBCon) AddTaskHistory(th *TaskHistory) error
- func (db *DBCon) AddTaskHistoryByTaskInfo(taskinfo *TaskInfo) error
- func (db *DBCon) AddUUIDNonce(uuid string, action int) error
- func (this *DBCon) AddUserAddressInfo(info *UserAddressInfo) error
- func (this *DBCon) AddUserOScoreInfo(ai *UserOscoreInfo) error
- func (this *DBCon) AddWasmCode(did, address, code, comments string) error
- func (this *DBCon) AppendDPResult(taskid int64, dpresult string, isLast bool, method string) error
- func (this *DBCon) CancelAPInfo(apDID, status string) error
- func (this *DBCon) CancelDPInfo(dpDID, status string) error
- func (this *DBCon) ChangeTaskStatus(taskid int64, fromStatus, toStatus int) (int64, error)
- func (db *DBCon) CheckAPDataSetExistByAPDID(apDid string) (bool, error)
- func (db *DBCon) CheckAPDataSetMethodNameExist(userDId, methodName string) (*model.ApDataSetRes, error)
- func (db *DBCon) CheckAPDataSetNameExist(userDId, dataSetName string) (*model.ApDataSetRes, error)
- func (this *DBCon) CheckAPIKey(key string) (bool, error)
- func (db *DBCon) CheckApNameExist(apName string) (*model.ApInfoRes, string, error)
- func (db *DBCon) CheckDPDataSetExistByDPDID(apDid string) (bool, error)
- func (db *DBCon) CheckDPDataSetMethodNameExist(userDId, methodName string) (*model.DpDataSetRes, error)
- func (db *DBCon) CheckDPDataSetNameExist(userDId, dataSetName string) (*model.DpDataSetRes, error)
- func (db *DBCon) CheckDpNameExist(dpName string) (*model.DpInfoRes, string, error)
- func (this *DBCon) CheckDuplicateAP(apDataSetList []*model.ApDataSetRes, apDataSet *model.ApDataSetInfo) (bool, error)
- func (this *DBCon) CheckDuplicateAPDataSetName(apDataSet *model.ApDataSetInfo, userDid string) (bool, error)
- func (this *DBCon) CheckDuplicateDP(dpDataSetList []*model.DpDataSetRes, dpDataSet *model.DpDataSetInfo) (bool, error)
- func (this *DBCon) CheckDuplicateDPDataSetName(dpDataSet *model.DpDataSetInfo, userDid string) (bool, error)
- func (db *DBCon) CheckProviderMethodMatch(apdid, apmethod, dpdid, dpmethod string) (bool, error)
- func (this *DBCon) DeleteAPDataSet(userDid string, dataSetID int64) (bool, error)
- func (this *DBCon) DeleteDPDataSet(userDid string, dataSetID int64) (bool, error)
- func (this *DBCon) DeleteTask(userdid, ap_did, ap_method, dp_did, dp_method string) error
- func (this *DBCon) DeleteTaskById(taskid int64) error
- func (this *DBCon) DeleteUserAddressInfo(did, chain, address string) error
- func (db *DBCon) EditAppNameAppInfo(did, appName string) error
- func (db *DBCon) EditEmailAddrBasicInfo(did, email, verifyCode string) error
- func (db *DBCon) EditNickNameBasicInfo(did, nickName string) error
- func (db *DBCon) EditWebsiteAppInfo(did, website string) error
- func (this *DBCon) GetAPPopularity(did string) (int64, error)
- func (this *DBCon) GetAllApInfo() ([]*model.MethodInfo, error)
- func (this *DBCon) GetAllTaskHistoryCount() (int64, error)
- func (this *DBCon) GetCompositeDpInfo(did, method string) ([]*model.MethodInfo, error)
- func (this *DBCon) GetDPMethodInfo(did, method string) ([]*model.MethodDetail, error)
- func (this *DBCon) GetDPPopularity(did string) (int64, error)
- func (db *DBCon) GetDataSetLabels(labelType string) (*model.LabelsInfos, error)
- func (db *DBCon) GetEmailVerificationCode(did, email string) (string, error)
- func (db *DBCon) GetGenNFTCountByDID(did string) (int64, error)
- func (this *DBCon) GetInQueryTaskCount() (int64, error)
- func (db *DBCon) GetNFTSettingByCondition(where string) ([]*NFTSetting, error)
- func (db *DBCon) GetNFTSettingCountByCondition(where string) (int64, error)
- func (this *DBCon) GetParamSchema(did, method string) (string, error)
- func (db *DBCon) GetThirdPartyVCCounts(did string) (int64, error)
- func (this *DBCon) GetTimeOutTasks() ([]*TaskInfo, error)
- func (this *DBCon) GetUserAddressInfo(did string) ([]*UserAddressInfo, error)
- func (this *DBCon) GetUserAddressInfoCount(did string) (int64, error)
- func (db *DBCon) GetUserBasicInfo(did string) (*UserBasicInfo, error)
- func (this *DBCon) GetUserCredentialsByCondition(strWhere string) ([]*TaskInfo, error)
- func (this *DBCon) GetUserCredentialsCountByCondition(strWhere string) (int64, error)
- func (this *DBCon) GetUserReputationCount(did string) (int64, error)
- func (this *DBCon) GetUserVisibleAddressInfo(did string) ([]*UserAddressInfo, error)
- func (this *DBCon) IsUserBindLoginAddress(did string, addr string) (bool, error)
- func (this *DBCon) LockTaskStatus(fromStatus, toStatus int, count int64) (int64, error)
- func (this *DBCon) QueryAPDataSetInfo(userDid string, dataSetID int64) (*model.ApDataSetRes, error)
- func (this *DBCon) QueryAPDatatSetCountByCondition(userDId string) (int64, error)
- func (this *DBCon) QueryAPInfo(userDID, status string) (*model.ApInfoRes, error)
- func (this *DBCon) QueryAPMethodByDIDAndMethod(did, method string) (*APMethod, error)
- func (this *DBCon) QueryAlgorithmProviderByDid(did string) (*AlgorithmProvider, error)
- func (this *DBCon) QueryAlgorithmProviderMethodByDid(did string) ([]*APMethod, error)
- func (this *DBCon) QueryAlgorithmProviderTitle(title string) (*AlgorithmProvider, error)
- func (this *DBCon) QueryAllAlgorithmProviderMethodsByCondition(where string) ([]*APMethodWithAPInfo, error)
- func (this *DBCon) QueryAllAlgorithmProviderMethodsCountByCondition(where string) (int64, error)
- func (this *DBCon) QueryAllAlgorithmProviders() ([]*AlgorithmProvider, error)
- func (this *DBCon) QueryAllAlgorithmProvidersByCondition(where string) ([]*AlgorithmProvider, error)
- func (this *DBCon) QueryAllAlgorithmProvidersCountByCondition(where string) (int64, error)
- func (this *DBCon) QueryAllDPMethodByCondition(where string) ([]*DPMethodWithDPInfo, error)
- func (this *DBCon) QueryAllDPMethodCountByCondition(where string) (int64, error)
- func (this *DBCon) QueryAllDataProviders() ([]*DataProvider, error)
- func (this *DBCon) QueryAllDataProvidersByCondition(where string) ([]*DataProvider, error)
- func (this *DBCon) QueryAllDataProvidersCountByCondition(where string) (int64, error)
- func (db *DBCon) QueryAllThirdPartyVcStatus(did string) ([]*model.ThirdPartyVcStatus, error)
- func (db *DBCon) QueryApplicationInfo(did string) (*ApplicationInfo, error)
- func (db *DBCon) QueryAuthInfoByDid(did string) (*AuthInfo, error)
- func (db *DBCon) QueryClaimRecordCountByCondition(where string) (int64, error)
- func (db *DBCon) QueryClaimRecordCountByStatus(status int) (int64, error)
- func (db *DBCon) QueryClaimRecordsByCondition(where string) ([]*ClaimNFTRecord, error)
- func (db *DBCon) QueryClaimRecordsByStatus(status int) ([]*ClaimNFTRecord, error)
- func (this *DBCon) QueryDPAndMethodsByAP(apdid, apMethod string) ([]*DataProvider, []*DPMethod, error)
- func (this *DBCon) QueryDPDataSetInfo(userDid string, dataSetID int64) (*model.DpDataSetRes, error)
- func (this *DBCon) QueryDPDatatSetCountByCondition(userDId string) (int64, error)
- func (this *DBCon) QueryDPInfo(userDID, status string) (*model.DpInfoRes, error)
- func (this *DBCon) QueryDPMethodByDIDAndMethod(did, method string) (*DPMethod, error)
- func (this *DBCon) QueryDataProviderByDid(did string) (*DataProvider, error)
- func (this *DBCon) QueryDataProviderMethodByDid(did string) ([]*DPMethod, error)
- func (this *DBCon) QueryDataProviderTitle(title string) (*DataProvider, error)
- func (this *DBCon) QuerySnapShotAssetsScore(address string) (string, error)
- func (this *DBCon) QueryTaskByPK(taskid int64) (*TaskInfo, error)
- func (this *DBCon) QueryTaskByStatus(status int) ([]*TaskInfo, error)
- func (this *DBCon) QueryTaskByUniqueKey(userdid, ap_did, ap_method, dp_did, dp_method string) (*TaskInfo, error)
- func (db *DBCon) QueryTaskHistoryByUserDID(userdid string) ([]*TaskHistory, error)
- func (db *DBCon) QueryTaskHistoryCountByUserDID(did string) (int64, error)
- func (this *DBCon) QueryTaskInfo(userdid, dp_did, dp_method string) (*TaskInfo, error)
- func (this *DBCon) QueryTasksByUserDID(userdid string) ([]*TaskInfo, error)
- func (db *DBCon) QueryThirdPartyVc(did, mediaType string) (string, error)
- func (db *DBCon) QueryUUIDAction(uuid string) (int, error)
- func (db *DBCon) QueryUserAP(userDID string) (*model.ApInfoRes, error)
- func (this *DBCon) QueryUserAPDataSetList(userDID, status string) ([]*model.ApDataSetRes, error)
- func (this *DBCon) QueryUserAPDataSetLists(userDID, dataSetName, status string, page int64, size int64, ...) (*model.APDataSetList, error)
- func (this *DBCon) QueryUserDIDByAPDID(apDID, status string) (string, error)
- func (this *DBCon) QueryUserDIDByDPDID(dpDID, status string) (string, error)
- func (db *DBCon) QueryUserDP(userDID string) (*model.DpInfoRes, error)
- func (this *DBCon) QueryUserDPDataSetList(userDID, status string) ([]*model.DpDataSetRes, error)
- func (this *DBCon) QueryUserDPDataSetLists(userDID, dataSetName, status string, page int64, size int64, ...) (*model.DPDataSetList, error)
- func (db *DBCon) QueryUserKycInfo(did string) (string, error)
- func (this *DBCon) QueryUserLatestOScoreInfo(did string) (*UserOscoreInfo, error)
- func (this *DBCon) QueryWasmCodeByDIDAndAddress(did, address string) (*WasmCodeInfo, error)
- func (this *DBCon) ResetTimeOutTasks(cnt int) error
- func (this *DBCon) RevokeAPDataSet(userDid, afterStatus, beforeStatus string, dataSetID int64) (bool, error)
- func (this *DBCon) RevokeAPInfo(userDID, afterStatus, beforeStatus string, apInfoID int64) (bool, error)
- func (this *DBCon) RevokeDPDataSet(userDid, afterStatus, beforeStatus string, dataSetID int64) (bool, error)
- func (this *DBCon) RevokeDPInfo(userDID, afterStatus, beforeStatus string, dpInfoID int64) (bool, error)
- func (this *DBCon) RevokePublishedAPDataSet(userDid string, dataSetID int64) (bool, error)
- func (this *DBCon) RevokePublishedDPDataSet(userDid string, dataSetID int64) (bool, error)
- func (db *DBCon) SaveAPInfo(userDID string, apInfo *model.SubmitApInfo) (bool, error)
- func (db *DBCon) SaveApplicationInfo(did, name, website string) error
- func (db *DBCon) SaveDPInfo(userDID string, dpInfo *model.SubmitDpInfo) (bool, error)
- func (db *DBCon) SaveThirdPartyVc(did, mediaType, credential string) error
- func (db *DBCon) SaveUserKycInfo(did, kyc string) error
- func (this *DBCon) SetAPResult(taskid int64, apresult string) error
- func (this *DBCon) SetAPResultFailed(taskid int64, apresult string) error
- func (this *DBCon) SetAddressVisible(userDid, chain, address string, visible bool) error
- func (db *DBCon) SetClaimRecordResultByPK(fromStatus, toStatus int, txhash string, chain string, result string, ...) (int64, error)
- func (this *DBCon) SetDPResult(taskid int64, dpresult string) error
- func (this *DBCon) SetDPResultFailed(taskid int64, dpresult string) error
- func (this *DBCon) SetTaskComments(taskid int64, comments string) error
- func (this *DBCon) SetTaskCredFileAndTxhash(taskid int64, credfile string, txhash string) error
- func (this *DBCon) SubmitAPDataSet(apDataSet *model.ApDataSetInfo, userDid, status string) (bool, error)
- func (db *DBCon) SubmitAPInfo(userDID string, apInfo *model.SubmitApInfo) (bool, error)
- func (this *DBCon) SubmitDPDataSet(dpDataSet *model.DpDataSetInfo, userDid, status string) (bool, error)
- func (db *DBCon) SubmitDPInfo(userDID string, dpInfo *model.SubmitDpInfo) (bool, error)
- func (db *DBCon) UnBindThirdParty(did, mediaType string) error
- func (this *DBCon) UpdateAPDataSetSchema(apDid, dataSetName, inputSchema, outputSchema string) (bool, error)
- func (this *DBCon) UpdateAPDataSetStatus(userDid, afterStatus, beforeStatus string, dataSetID int64) (bool, error)
- func (this *DBCon) UpdateApInfo(apInfo *model.SubmitApInfo) (bool, error)
- func (db *DBCon) UpdateBasicInfo(did, nickName, email string) error
- func (db *DBCon) UpdateClaimRecordResult(fromStatus, toStatus int, txhash string, chain string, result string, ...) (int64, error)
- func (db *DBCon) UpdateClaimRecordStatusByLimit(fromStatus, toStatus, limit int) (int64, error)
- func (db *DBCon) UpdateClaimRecordStatusByPK(fromStatus, toStatus int, txhash string, chain string) (int64, error)
- func (this *DBCon) UpdateDPDataSetSchema(dpDid, dataSetName, inputSchema, outputSchema string) (bool, error)
- func (this *DBCon) UpdateDPDataSetStatus(userDid, afterStatus, beforeStatus string, dataSetID int64) (bool, error)
- func (this *DBCon) UpdateDPMethodInvoked(did, method string, latency int64) error
- func (this *DBCon) UpdateDPMethodLatency(did string, latency int64) error
- func (this *DBCon) UpdateDPMethodStatus(did, method, status string) error
- func (db *DBCon) UpdateEmailVerificationCode(did, email, newcode string) error
- func (db *DBCon) UpdateTaskHistoryByTaskInfo(taskinfo *TaskInfo) error
- func (db *DBCon) UpdateTaskHistoryTxhash(taskid int64, txhash string) error
- func (this *DBCon) UpdateUserLatestOscore(ai *UserOscoreInfo) error
- type DPMethod
- type DPMethodWithDPInfo
- type DataProvider
- type FeedBack
- type GenNFT
- type LabelsInfo
- type NFTSetting
- type TaskHistory
- type TaskInfo
- type ThirdPartyCredential
- type UserAddressInfo
- type UserBasicInfo
- type UserOscoreInfo
- type WasmCodeInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TASK_STATUS_INIT = 0 TASK_STATUS_RESOLVING = 1 TASK_STATUS_DP_QUERYING = 2 TASK_STATUS_DP_FINISHED = 3 TASK_STATUS_DP_FAILED = 4 TASK_STATUS_DP_TIMEOUT = 5 TASK_STATUS_AP_RESOLVING = 6 TASK_STATUS_AP_QUERYING = 7 TASK_STATUS_AP_FAILED = 8 TASK_STATUS_AP_TIMEOUT = 9 TASK_STATUS_AP_FINISHED = 10 TASK_STATUS_VC_STARTING = 11 TASK_STATUS_VC_GENERATING = 12 TASK_STATUS_VC_FAILED = 13 TASK_STATUS_DONE = 14 TASK_STATUS_PARTITIAL_FINISHED = 15 TASK_STATUS_MUTLI_DP_FINISHED = 16 AUTH_INFO_STATE_INIT = 0 AUTH_INFO_STATE_APPROVED = 1 AUTH_INFO_STATE_REJECTED = 2 CLAIM_NFT_STATUS_INIT = 0 CLAIM_NFT_STATUS_QUERYING = 1 CLAIM_NFT_STATUS_RESOLVING = 2 CLAIM_NFT_STATUS_DONE = 3 CLAIM_NFT_STATUS_TIMEOUT = 4 METHOD_REMOVED = "REMOVED" METHOD_PUBLISHED = "published" METHOD_REVOKED = "revoking" )
View Source
var NEW_TASK_RESOLVE_COUNT = 100
Functions ¶
Types ¶
type APMethodWithAPInfo ¶
type APMethodWithAPInfo struct { Ap *AlgorithmProvider ApMethod *APMethod }
type AlgorithmProvider ¶
type ApplicationInfo ¶
type ClaimNFTRecord ¶
type DBCon ¶
var MySqlDB *DBCon
func (*DBCon) AddAPInvokeFrenquency ¶
func (*DBCon) AddAPMethodInvoked ¶
func (*DBCon) AddFeedBack ¶
func (*DBCon) AddNewBasicInfo ¶
func (*DBCon) AddNewClaimRecord ¶
func (db *DBCon) AddNewClaimRecord(record *ClaimNFTRecord) error
func (*DBCon) AddNewEmailVerificationCode ¶
func (*DBCon) AddTaskHistory ¶
func (db *DBCon) AddTaskHistory(th *TaskHistory) error
func (*DBCon) AddTaskHistoryByTaskInfo ¶
func (*DBCon) AddUserAddressInfo ¶
func (this *DBCon) AddUserAddressInfo(info *UserAddressInfo) error
func (*DBCon) AddUserOScoreInfo ¶
func (this *DBCon) AddUserOScoreInfo(ai *UserOscoreInfo) error
func (*DBCon) AddWasmCode ¶
func (*DBCon) AppendDPResult ¶
func (*DBCon) CancelAPInfo ¶
func (*DBCon) CancelDPInfo ¶
func (*DBCon) ChangeTaskStatus ¶
func (*DBCon) CheckAPDataSetExistByAPDID ¶
func (*DBCon) CheckAPDataSetMethodNameExist ¶
func (db *DBCon) CheckAPDataSetMethodNameExist(userDId, methodName string) (*model.ApDataSetRes, error)
func (*DBCon) CheckAPDataSetNameExist ¶
func (db *DBCon) CheckAPDataSetNameExist(userDId, dataSetName string) (*model.ApDataSetRes, error)
func (*DBCon) CheckApNameExist ¶
func (*DBCon) CheckDPDataSetExistByDPDID ¶
func (*DBCon) CheckDPDataSetMethodNameExist ¶
func (db *DBCon) CheckDPDataSetMethodNameExist(userDId, methodName string) (*model.DpDataSetRes, error)
func (*DBCon) CheckDPDataSetNameExist ¶
func (db *DBCon) CheckDPDataSetNameExist(userDId, dataSetName string) (*model.DpDataSetRes, error)
func (*DBCon) CheckDpNameExist ¶
func (*DBCon) CheckDuplicateAP ¶
func (this *DBCon) CheckDuplicateAP(apDataSetList []*model.ApDataSetRes, apDataSet *model.ApDataSetInfo) (bool, error)
func (*DBCon) CheckDuplicateAPDataSetName ¶
func (*DBCon) CheckDuplicateDP ¶
func (this *DBCon) CheckDuplicateDP(dpDataSetList []*model.DpDataSetRes, dpDataSet *model.DpDataSetInfo) (bool, error)
func (*DBCon) CheckDuplicateDPDataSetName ¶
func (*DBCon) CheckProviderMethodMatch ¶
func (*DBCon) DeleteAPDataSet ¶
func (*DBCon) DeleteDPDataSet ¶
func (*DBCon) DeleteTask ¶
func (*DBCon) DeleteTaskById ¶
func (*DBCon) DeleteUserAddressInfo ¶
func (*DBCon) EditAppNameAppInfo ¶
func (*DBCon) EditEmailAddrBasicInfo ¶
func (*DBCon) EditNickNameBasicInfo ¶
func (*DBCon) EditWebsiteAppInfo ¶
func (*DBCon) GetAllApInfo ¶
func (this *DBCon) GetAllApInfo() ([]*model.MethodInfo, error)
func (*DBCon) GetAllTaskHistoryCount ¶
func (*DBCon) GetCompositeDpInfo ¶
func (this *DBCon) GetCompositeDpInfo(did, method string) ([]*model.MethodInfo, error)
func (*DBCon) GetDPMethodInfo ¶
func (this *DBCon) GetDPMethodInfo(did, method string) ([]*model.MethodDetail, error)
func (*DBCon) GetDataSetLabels ¶
func (db *DBCon) GetDataSetLabels(labelType string) (*model.LabelsInfos, error)
func (*DBCon) GetEmailVerificationCode ¶
func (*DBCon) GetInQueryTaskCount ¶
func (*DBCon) GetNFTSettingByCondition ¶
func (db *DBCon) GetNFTSettingByCondition(where string) ([]*NFTSetting, error)
func (*DBCon) GetNFTSettingCountByCondition ¶
func (*DBCon) GetParamSchema ¶
func (*DBCon) GetThirdPartyVCCounts ¶
func (*DBCon) GetTimeOutTasks ¶
func (*DBCon) GetUserAddressInfo ¶
func (this *DBCon) GetUserAddressInfo(did string) ([]*UserAddressInfo, error)
func (*DBCon) GetUserAddressInfoCount ¶
func (*DBCon) GetUserBasicInfo ¶
func (db *DBCon) GetUserBasicInfo(did string) (*UserBasicInfo, error)
func (*DBCon) GetUserCredentialsByCondition ¶
func (*DBCon) GetUserCredentialsCountByCondition ¶
func (*DBCon) GetUserReputationCount ¶
func (*DBCon) GetUserVisibleAddressInfo ¶
func (this *DBCon) GetUserVisibleAddressInfo(did string) ([]*UserAddressInfo, error)
func (*DBCon) IsUserBindLoginAddress ¶
func (*DBCon) LockTaskStatus ¶
func (*DBCon) QueryAPDataSetInfo ¶
func (*DBCon) QueryAPDatatSetCountByCondition ¶
func (*DBCon) QueryAPInfo ¶
func (*DBCon) QueryAPMethodByDIDAndMethod ¶
func (*DBCon) QueryAlgorithmProviderByDid ¶
func (this *DBCon) QueryAlgorithmProviderByDid(did string) (*AlgorithmProvider, error)
func (*DBCon) QueryAlgorithmProviderMethodByDid ¶
func (*DBCon) QueryAlgorithmProviderTitle ¶
func (this *DBCon) QueryAlgorithmProviderTitle(title string) (*AlgorithmProvider, error)
func (*DBCon) QueryAllAlgorithmProviderMethodsByCondition ¶
func (this *DBCon) QueryAllAlgorithmProviderMethodsByCondition(where string) ([]*APMethodWithAPInfo, error)
func (*DBCon) QueryAllAlgorithmProviderMethodsCountByCondition ¶
func (*DBCon) QueryAllAlgorithmProviders ¶
func (this *DBCon) QueryAllAlgorithmProviders() ([]*AlgorithmProvider, error)
func (*DBCon) QueryAllAlgorithmProvidersByCondition ¶
func (this *DBCon) QueryAllAlgorithmProvidersByCondition(where string) ([]*AlgorithmProvider, error)
func (*DBCon) QueryAllAlgorithmProvidersCountByCondition ¶
func (*DBCon) QueryAllDPMethodByCondition ¶
func (this *DBCon) QueryAllDPMethodByCondition(where string) ([]*DPMethodWithDPInfo, error)
func (*DBCon) QueryAllDPMethodCountByCondition ¶
func (*DBCon) QueryAllDataProviders ¶
func (this *DBCon) QueryAllDataProviders() ([]*DataProvider, error)
func (*DBCon) QueryAllDataProvidersByCondition ¶
func (this *DBCon) QueryAllDataProvidersByCondition(where string) ([]*DataProvider, error)
func (*DBCon) QueryAllDataProvidersCountByCondition ¶
func (*DBCon) QueryAllThirdPartyVcStatus ¶
func (db *DBCon) QueryAllThirdPartyVcStatus(did string) ([]*model.ThirdPartyVcStatus, error)
func (*DBCon) QueryApplicationInfo ¶
func (db *DBCon) QueryApplicationInfo(did string) (*ApplicationInfo, error)
func (*DBCon) QueryAuthInfoByDid ¶
func (*DBCon) QueryClaimRecordCountByCondition ¶
func (*DBCon) QueryClaimRecordCountByStatus ¶
func (*DBCon) QueryClaimRecordsByCondition ¶
func (db *DBCon) QueryClaimRecordsByCondition(where string) ([]*ClaimNFTRecord, error)
func (*DBCon) QueryClaimRecordsByStatus ¶
func (db *DBCon) QueryClaimRecordsByStatus(status int) ([]*ClaimNFTRecord, error)
func (*DBCon) QueryDPAndMethodsByAP ¶
func (this *DBCon) QueryDPAndMethodsByAP(apdid, apMethod string) ([]*DataProvider, []*DPMethod, error)
func (*DBCon) QueryDPDataSetInfo ¶
func (*DBCon) QueryDPDatatSetCountByCondition ¶
func (*DBCon) QueryDPInfo ¶
func (*DBCon) QueryDPMethodByDIDAndMethod ¶
func (*DBCon) QueryDataProviderByDid ¶
func (this *DBCon) QueryDataProviderByDid(did string) (*DataProvider, error)
func (*DBCon) QueryDataProviderMethodByDid ¶
func (*DBCon) QueryDataProviderTitle ¶
func (this *DBCon) QueryDataProviderTitle(title string) (*DataProvider, error)
func (*DBCon) QuerySnapShotAssetsScore ¶
func (*DBCon) QueryTaskByStatus ¶
func (*DBCon) QueryTaskByUniqueKey ¶
func (*DBCon) QueryTaskHistoryByUserDID ¶
func (db *DBCon) QueryTaskHistoryByUserDID(userdid string) ([]*TaskHistory, error)
func (*DBCon) QueryTaskHistoryCountByUserDID ¶
func (*DBCon) QueryTaskInfo ¶
func (*DBCon) QueryTasksByUserDID ¶
func (*DBCon) QueryThirdPartyVc ¶
func (*DBCon) QueryUserAPDataSetList ¶
func (this *DBCon) QueryUserAPDataSetList(userDID, status string) ([]*model.ApDataSetRes, error)
func (*DBCon) QueryUserAPDataSetLists ¶
func (this *DBCon) QueryUserAPDataSetLists(userDID, dataSetName, status string, page int64, size int64, labels model.LabelsInfo) (*model.APDataSetList, error)
func (*DBCon) QueryUserDIDByAPDID ¶
func (*DBCon) QueryUserDIDByDPDID ¶
func (*DBCon) QueryUserDPDataSetList ¶
func (this *DBCon) QueryUserDPDataSetList(userDID, status string) ([]*model.DpDataSetRes, error)
func (*DBCon) QueryUserDPDataSetLists ¶
func (this *DBCon) QueryUserDPDataSetLists(userDID, dataSetName, status string, page int64, size int64, labels model.LabelsInfo) (*model.DPDataSetList, error)
func (*DBCon) QueryUserLatestOScoreInfo ¶
func (this *DBCon) QueryUserLatestOScoreInfo(did string) (*UserOscoreInfo, error)
func (*DBCon) QueryWasmCodeByDIDAndAddress ¶
func (this *DBCon) QueryWasmCodeByDIDAndAddress(did, address string) (*WasmCodeInfo, error)
func (*DBCon) ResetTimeOutTasks ¶
func (*DBCon) RevokeAPDataSet ¶
func (*DBCon) RevokeAPInfo ¶
func (*DBCon) RevokeDPDataSet ¶
func (*DBCon) RevokeDPInfo ¶
func (*DBCon) RevokePublishedAPDataSet ¶
func (*DBCon) RevokePublishedDPDataSet ¶
func (*DBCon) SaveAPInfo ¶
func (*DBCon) SaveApplicationInfo ¶
func (*DBCon) SaveDPInfo ¶
func (*DBCon) SaveThirdPartyVc ¶
func (*DBCon) SaveUserKycInfo ¶
func (*DBCon) SetAPResultFailed ¶
func (*DBCon) SetAddressVisible ¶
func (*DBCon) SetClaimRecordResultByPK ¶
func (*DBCon) SetDPResultFailed ¶
func (*DBCon) SetTaskComments ¶
func (*DBCon) SetTaskCredFileAndTxhash ¶
func (*DBCon) SubmitAPDataSet ¶
func (*DBCon) SubmitAPInfo ¶
func (*DBCon) SubmitDPDataSet ¶
func (*DBCon) SubmitDPInfo ¶
func (*DBCon) UnBindThirdParty ¶
func (*DBCon) UpdateAPDataSetSchema ¶
func (*DBCon) UpdateAPDataSetStatus ¶
func (*DBCon) UpdateApInfo ¶
func (this *DBCon) UpdateApInfo(apInfo *model.SubmitApInfo) (bool, error)
func (*DBCon) UpdateBasicInfo ¶
func (*DBCon) UpdateClaimRecordResult ¶
func (*DBCon) UpdateClaimRecordStatusByLimit ¶
func (*DBCon) UpdateClaimRecordStatusByPK ¶
func (*DBCon) UpdateDPDataSetSchema ¶
func (*DBCon) UpdateDPDataSetStatus ¶
func (*DBCon) UpdateDPMethodInvoked ¶
func (*DBCon) UpdateDPMethodLatency ¶
func (*DBCon) UpdateDPMethodStatus ¶
func (*DBCon) UpdateEmailVerificationCode ¶
func (*DBCon) UpdateTaskHistoryByTaskInfo ¶
func (*DBCon) UpdateTaskHistoryTxhash ¶
func (*DBCon) UpdateUserLatestOscore ¶
func (this *DBCon) UpdateUserLatestOscore(ai *UserOscoreInfo) error
type DPMethodWithDPInfo ¶
type DPMethodWithDPInfo struct { Dp *DataProvider DpMethod *DPMethod }
type DataProvider ¶
type LabelsInfo ¶
type NFTSetting ¶
type TaskHistory ¶
type TaskInfo ¶
type TaskInfo struct { TaskId int64 UserDID string ApDID string ApName string ApTitle string ApIcon string ApMethod string APMethodName string DpDID string DpName string DpTitle string DpIcon string DpMethod string DpMethodName string DpResult string CreateTime time.Time UpdateTime time.Time TaskStatus int TaskResult string ResultFile string IssueTxhash string RevokeTxhash string CallerDid string Comments string TaskBindInfo string }
type ThirdPartyCredential ¶
type ThirdPartyCredential struct { Did string `json:"did"` MediaType string `json:"media_type"` Credential string `json:"credential"` }
MediaType: BrightID Twitter ShuftiPro Github Linkedin Facebook Line Amazon Kakao
type UserAddressInfo ¶
type UserBasicInfo ¶
type UserOscoreInfo ¶
Click to show internal directories.
Click to hide internal directories.