12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- package apis
- type ManagementCheckApiReq struct {
- Header map[string]string `json:"header" description:"header 非加密"`
- Method string `json:"method" description:"请求方法 POST PUT ..."`
- Router string `json:"router"`
- RequestParam []byte `json:"request_param" description:"query参数"`
- }
- type CheckMerchantApiResult struct {
- MerchantId int64 `json:"merchant_id" description:"商户id"`
- MerchantChildApiId int64 `json:"merchant_child_api_id" description:"商户基础api id"`
- BaseApiId int64 `json:"base_api_id" description:"基础api id"`
- ComboType int `json:"combo_type" description:"套餐类型 1 总次数, 2 按天"`
- CountType int `json:"count_type" description:"计数类型,即查 即得"`
- CountCode string `json:"count_code" description:"如果即查,返回码为该字段中的一种时需扣次数"`
- IsForceUpdate bool `json:"is_force_update" description:"是否强更"`
- RequstParamConf []ManagementBaseApiParam `json:"request_param_conf" description:"请求参数"`
- ResponseParamConf []ManagementBaseApiParam `json:"response_param_conf" description:"响应参数"`
- DecryptParam []byte `json:"descrypt_query_param" description:"解密后的参数"`
- AppSecret string `json:"app_secret"`
- IsCrypto bool `json:"is_encrypt"`
- AccessCountId int64 `json:"access_count_id"`
- }
- type ManagementCheckCountCodeReq struct {
- AccessCountId int64 `json:"access_count_id"`
- CountCode string `json:"count_code"`
- Code string `json:"code"`
- CountType int `json:"count_type" description:"0 即查 1查得"`
- }
- type ManagementCheckCountCodeReply struct {
- }
- type ManagementCheckApiReply struct {
- MerchantApiInfo CheckMerchantApiResult `json:"api_info" description:"校验成功后商户api相关信息"`
- ErrCode int `json:"err_code"`
- ErrMsg string `json:"err_msg"`
- }
- type MerchantProviderLimitInfo struct {
- ProviderApiId int64 `json:"provider_api_id"`
- ProviderId int64 `json:"provider_id"`
- Enable bool `json:"enable" description:"商户数据源是否启用"`
- State bool `json:"state" description:"数据源是否启用"`
- DayCount int64 `json:"day_count" description:"每天限制访问次数"`
- ProviderApiCode string `json:"provider_api_code" description:"三方api 代码"`
- ThirdpartHost string `json:"thirdpart_host" description:"三方api域名"`
- ThirdpartApiName string `json:"thirdpart_api_name" description:"三方api名"`
- ThirdpartApiRouter string `json:"thirdpart_api_router" description:"三方api路由"`
- ThirdpartApiMethod string `json:"thirdpart_api_method" description:"三方api方法"`
- Count int64 `json:"count" description:"当天访问次数"`
- }
- type ManagementCheckProviderApiReq struct {
- MerchantChildApiId int64 `json:"merchant_child_api_id"`
- BaseApiId int64 `json:"base_api_id"`
- }
- type ManagementCheckProviderApiReply struct {
- MerchantProviderLimitInfoList []MerchantProviderLimitInfo `json:"merchant_provider_limit_info"`
- }
- type ManagementThirdpartCount struct {
- Id int64 `json:"id"`
- FailCount int64 `json:"fail_count"`
- Count int64 `json:"count"`
- MerchantChildApiId int64 `json:"merchant_child_api_id"`
- ProviderApiId int64 `json:"provider_api_id"`
- CreateTime string `json:"create_time"`
- }
- func (o *ManagementThirdpartCount) TableName() string {
- return "t_gd_thirdpart_access_count"
- }
- type ManagementThirdpartCountIncreaseReq struct {
- State bool `json:"state" description:"访问三方状态,false失败,true成功"`
- MerchantChildApiId int64 `json:"merchant_child_api_id"`
- ProviderApiId int64 `json:"provider_api_id"`
- }
- type ManagementThirdpartCountIncreaseReply struct {
- }
|