github.com/SupenBysz/gf-admin-community@v0.7.4/sys_model/sdk_tencent.go (about)

     1  package sys_model
     2  
     3  import (
     4  	"github.com/kysion/base-library/base_model"
     5  )
     6  
     7  // 阿里云服务配置信息
     8  
     9  type TencentSdkConf struct {
    10  	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
    11  	Description string `json:"description" dc:"描述"`
    12  	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"AppID"`      // APPID
    13  	AESKey      string `json:"aesKey" v:"required#请输入 AES Key" dc:"AES Key"` // SecretId
    14  	APIKey      string `json:"apiKey" v:"required#请输入 API Key" dc:"API Key"`
    15  	SecretKey   string `json:"secretKey" v:"required#请输入 Secret Key" dc:"Secret Key"` // SecretKey
    16  
    17  	Active  string `json:"active" v:"required#公共参数" dc:"代表应用接口的值"`
    18  	Version string `json:"version" v:"required#公共参数" dc:"接口版本"`
    19  	Region  string `json:"region" dc:"代表请求的地域,公共参数"`
    20  }
    21  
    22  // TencentAccessToken 腾讯平台返回的Token
    23  type TencentAccessToken struct {
    24  	TencentToken TencentToken `json:"response" dc:"token信息"`
    25  }
    26  
    27  type TencentToken struct {
    28  	ExpireTime string `json:"expire_time" dc:"Access Token的有效期"`
    29  	RequestId  string `json:"request_id" dc:"唯一请求 ID" `
    30  	Token      string `json:"token" dc:"请求分配的Token值"`
    31  }
    32  
    33  // TencentSdkConfToken 配置信息 + Token信息
    34  type TencentSdkConfToken struct {
    35  	TencentSdkConf
    36  	TencentAccessToken
    37  }
    38  
    39  type TencentSdkConfList base_model.CollectRes[*TencentSdkConf]
    40  
    41  // 腾讯云服务应用列表
    42  
    43  type TencentOSS struct {
    44  	Bucket     string `json:"bucket"`
    45  	Region     string `json:"region"`
    46  	BaseURL    string `json:"baseURL"`
    47  	SecretID   string `json:"secretID"`
    48  	SecretKey  string `json:"secretKey"`
    49  	PathPrefix string `json:"pathPrefix"`
    50  }
    51  
    52  // 腾讯云API能力-----
    53  
    54  // DetectAuthRes 腾讯云-实名身份核验接口 响应
    55  type DetectAuthRes struct {
    56  	// 用于发起核身流程的URL,仅微信H5场景使用。
    57  	Url *string `json:"Url,omitnil,omitempty" name:"Url" dc:"用于发起核身流程的URL,仅微信H5场景使用。"`
    58  
    59  	// 一次核身流程的标识,有效时间为7,200秒;
    60  	// 完成核身后,可用该标识获取验证结果信息。
    61  	BizToken *string `json:"BizToken,omitnil,omitempty" name:"BizToken" dc:"一次核身流程的标识,有效时间为7,200秒;完成核身后,可用该标识获取验证结果信息。"`
    62  
    63  	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
    64  	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId" dc:"唯一请求 ID,由服务端生成,每次请求都会返回"`
    65  }
    66  
    67  // GetDetectAuthResultRes 腾讯云-获取实名身份核验接口接口 响应
    68  // type GetDetectAuthResultRes struct {  }
    69  
    70  // GetDetectAuthResultRes 腾讯云-获取实名身份核验接口接口 响应
    71  type GetDetectAuthResultRes struct {
    72  	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
    73  	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId" dc:"唯一请求 ID,由服务端生成,每次请求都会返回"`
    74  
    75  	Text struct {
    76  		ErrCode       int         `json:"ErrCode"`
    77  		ErrMsg        string      `json:"ErrMsg"`
    78  		IdCard        string      `json:"IdCard"`
    79  		Name          string      `json:"Name"`
    80  		OcrNation     interface{} `json:"OcrNation"`
    81  		OcrAddress    interface{} `json:"OcrAddress"`
    82  		OcrBirth      interface{} `json:"OcrBirth"`
    83  		OcrAuthority  interface{} `json:"OcrAuthority"`
    84  		OcrValidDate  interface{} `json:"OcrValidDate"`
    85  		OcrName       string      `json:"OcrName"`
    86  		OcrIdCard     string      `json:"OcrIdCard"`
    87  		OcrGender     interface{} `json:"OcrGender"`
    88  		LiveStatus    int         `json:"LiveStatus"`
    89  		LiveMsg       string      `json:"LiveMsg"`
    90  		Comparestatus int         `json:"Comparestatus"`
    91  		Comparemsg    string      `json:"Comparemsg"`
    92  		Sim           string      `json:"Sim"`
    93  		Location      interface{} `json:"Location"`
    94  		Extra         string      `json:"Extra"`
    95  		Detail        struct {
    96  			LivenessData []struct {
    97  				ErrCode int    `json:"ErrCode"`
    98  				ErrMsg  string `json:"ErrMsg"`
    99  				ReqTime string `json:"ReqTime"`
   100  				IdCard  string `json:"IdCard"`
   101  				Name    string `json:"Name"`
   102  			} `json:"LivenessData"`
   103  		} `json:"Detail"`
   104  	} `json:"Text"  dc:"文本类信息"`
   105  
   106  	IdCardData struct {
   107  		OcrFront interface{} `json:"OcrFront"`
   108  		OcrBack  interface{} `json:"OcrBack"`
   109  	} `json:"IdCardData" dc:"身份证照片信息。"`
   110  
   111  	BestFrame struct {
   112  		BestFrame string `json:"BestFrame"`
   113  	} `json:"BestFrame" dc:"最佳帧信息Base64编码。注意:此字段可能返回 null,表示取不到有效值。"`
   114  }
   115  
   116  // type GetDetectAuthPlusResponseRes v20180301.GetDetectInfoEnhancedResponseParams
   117  
   118  // GetDetectAuthPlusResponseRes 获取实名核身结果信息增强版
   119  type GetDetectAuthPlusResponseRes struct {
   120  	//Response struct {
   121  	RequestId string `json:"RequestId" dc:"	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。"`
   122  
   123  	Text struct {
   124  		CompareLibType string `json:"CompareLibType"`
   125  		Comparemsg     string `json:"Comparemsg"`
   126  		Comparestatus  int    `json:"Comparestatus"`
   127  		ErrCode        int    `json:"ErrCode"`
   128  		ErrMsg         string `json:"ErrMsg"`
   129  		Extra          string `json:"Extra"`
   130  		IdCard         string `json:"IdCard"`
   131  		IdInfoFrom     string `json:"IdInfoFrom"`
   132  		LiveMsg        string `json:"LiveMsg"`
   133  		LiveStatus     int    `json:"LiveStatus"`
   134  		LivenessDetail []struct {
   135  			CompareLibType string `json:"CompareLibType"`
   136  			Comparemsg     string `json:"Comparemsg"`
   137  			Comparestatus  int    `json:"Comparestatus"`
   138  			Errcode        int    `json:"Errcode"`
   139  			Errmsg         string `json:"Errmsg"`
   140  			Idcard         string `json:"Idcard"`
   141  			IsNeedCharge   bool   `json:"IsNeedCharge"`
   142  			Livemsg        string `json:"Livemsg"`
   143  			LivenessMode   int    `json:"LivenessMode"`
   144  			Livestatus     int    `json:"Livestatus"`
   145  			Name           string `json:"Name"`
   146  			ReqTime        string `json:"ReqTime"`
   147  			Seq            string `json:"Seq"`
   148  			Sim            string `json:"Sim"`
   149  		} `json:"LivenessDetail"`
   150  		LivenessMode     int           `json:"LivenessMode"`
   151  		Location         interface{}   `json:"Location"`
   152  		Mobile           string        `json:"Mobile"`
   153  		NFCBillingCounts int           `json:"NFCBillingCounts"`
   154  		NFCRequestIds    []interface{} `json:"NFCRequestIds"`
   155  		Name             string        `json:"Name"`
   156  		OcrAddress       interface{}   `json:"OcrAddress"`
   157  		OcrAuthority     interface{}   `json:"OcrAuthority"`
   158  		OcrBirth         interface{}   `json:"OcrBirth"`
   159  		OcrGender        interface{}   `json:"OcrGender"`
   160  		OcrIdCard        string        `json:"OcrIdCard"`
   161  		OcrName          string        `json:"OcrName"`
   162  		OcrNation        interface{}   `json:"OcrNation"`
   163  		OcrValidDate     interface{}   `json:"OcrValidDate"`
   164  		PassNo           interface{}   `json:"PassNo"`
   165  		Sim              string        `json:"Sim"`
   166  		UseIDType        int           `json:"UseIDType"`
   167  		VisaNum          interface{}   `json:"VisaNum"`
   168  	} `json:"Text" dc:"文本类信息"`
   169  
   170  	// TODO 如下不需要的字段先行注释了。。。。有需要解开!
   171  	/*
   172  		BestFrame struct {
   173  			BestFrame  string      `json:"BestFrame"`
   174  			BestFrames interface{} `json:"BestFrames"`
   175  		} `json:"BestFrame" dc:"最佳帧信息。注意:此字段可能返回 null,表示取不到有效值。"`
   176  
   177  		EncryptedBody string `json:"EncryptedBody"`
   178  		Encryption    struct {
   179  			Algorithm      string        `json:"Algorithm"`
   180  			CiphertextBlob string        `json:"CiphertextBlob"`
   181  			EncryptList    []interface{} `json:"EncryptList"`
   182  			Iv             string        `json:"Iv"`
   183  			TagList        []interface{} `json:"TagList"`
   184  		} `json:"Encryption" dc:"敏感数据加密信息"`
   185  
   186  		IdCardData struct {
   187  			Avatar              interface{} `json:"Avatar"`
   188  			BackWarnInfos       interface{} `json:"BackWarnInfos"`
   189  			OcrBack             interface{} `json:"OcrBack"`
   190  			OcrFront            interface{} `json:"OcrFront"`
   191  			ProcessedBackImage  interface{} `json:"ProcessedBackImage"`
   192  			ProcessedFrontImage interface{} `json:"ProcessedFrontImage"`
   193  			WarnInfos           interface{} `json:"WarnInfos"`
   194  		} `json:"IdCardData" dc:"身份证照片信息。"`
   195  
   196  		IntentionActionResult interface{} `json:"IntentionActionResult" dc:"意愿核身点头确认模式的结果信息,若未使用该意愿核身功能,该字段返回值可以不处理。"`
   197  
   198  		IntentionQuestionResult struct {
   199  			AsrResult             []interface{} `json:"AsrResult"`
   200  			Audios                []interface{} `json:"Audios"`
   201  			FinalResultCode       interface{}   `json:"FinalResultCode"`
   202  			FinalResultDetailCode interface{}   `json:"FinalResultDetailCode"`
   203  			FinalResultMessage    interface{}   `json:"FinalResultMessage"`
   204  			ResultCode            []interface{} `json:"ResultCode"`
   205  			ScreenShot            []interface{} `json:"ScreenShot"`
   206  			Video                 interface{}   `json:"Video"`
   207  		} `json:"IntentionQuestionResult" dc:"意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。"`
   208  
   209  		IntentionVerifyData struct {
   210  			AsrResult                interface{} `json:"AsrResult"`
   211  			ErrorCode                interface{} `json:"ErrorCode"`
   212  			ErrorMessage             interface{} `json:"ErrorMessage"`
   213  			IntentionVerifyBestFrame interface{} `json:"IntentionVerifyBestFrame"`
   214  			IntentionVerifyVideo     interface{} `json:"IntentionVerifyVideo"`
   215  		} `json:"IntentionVerifyData" dc:"意愿核身朗读模式结果信息。若未使用意愿核身功能,该字段返回值可以不处理。"`
   216  
   217  		VideoData struct {
   218  			LivenessVideo string      `json:"LivenessVideo"`
   219  			BestFrames    interface{} `json:"BestFrames"`
   220  		} `json:"VideoData" dc:"视频信息"`
   221  	*/
   222  	//} `json:"Response"`
   223  }