user_merchant_data_api.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. package apis
  2. type TGdMerchantDataApi struct {
  3. Id int64 `json:"id" description:""`
  4. MerchantId int64 `json:"merchant_id" description:""`
  5. QueryTypeId int64 `json:"data_api_id" description:""`
  6. Count int `json:"count" description:""`
  7. CountPerDay int `json:"count_per_day" description:""`
  8. StartTime int64 `json:"start_time" description:""`
  9. EndTime int64 `json:"end_time" description:""`
  10. ComboType int `json:"combo_type"`
  11. State int `json:"state"`
  12. CountAfterIncrease int `json:"count_after_increase"`
  13. UsedBeforeIncrease int `json:"used_before_increase"`
  14. CountThresholds string `json:"count_thresholds"`
  15. DayThresholds string `json:"day_thresholds"`
  16. CreateTime string `json:"create_time" description:""`
  17. UpdateTime string `json:"update_time" description:""`
  18. DayTotalCount int `json:"day_total_count" description:"日即查量上限"`
  19. IpWhitelist string `json:"ip_whitelist"`
  20. IpWhitelistEnable bool `json:"ip_whitelist_enable"`
  21. CountThresholdsEnable bool `json:"count_thresholds_enable"`
  22. UnitPrice float64 `json:"unit_price"`
  23. }
  24. /*
  25. type MerchantChildApiProvider struct {
  26. Id int64 `json:"id" description:""`
  27. DayCount int `json:"day_count" description:""`
  28. Count int `json:"count" description:""`
  29. Enable bool `json:"enable" description:""`
  30. }
  31. */
  32. type MerchantApiProviderRelation struct {
  33. Id int64 `json:"-"`
  34. MerchantChildApiId int64 `json:"-"`
  35. ProviderApiId int64 `json:"provider_api_id"`
  36. Enable bool `json:"enable"`
  37. DayCount int64 `json:"day_count"`
  38. GroupNo int `json:"group_no"`
  39. GroupName string `json:"group_name"`
  40. Inventory int `json:"inventory"`
  41. }
  42. func (o *MerchantApiProviderRelation) TableName() string {
  43. return "t_gd_merchant_api_provider_api_relation"
  44. }
  45. type TGdMerchantChildDataApi struct {
  46. Id int64 `json:"id" description:""`
  47. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  48. SaleName string `json:"sale_name"`
  49. ApiId int64 `json:"api_id" description:""`
  50. RequestParam string `json:"request_param" description:""`
  51. ResponseParam string `json:"response_param" description:""`
  52. CountType int `json:"count_type" description:""`
  53. CountCode string `json:"count_code" description:""`
  54. ForceUpdate bool `json:"force_update" description:""`
  55. IsCrypto bool `json:"is_crypto" description:""`
  56. IsEnable bool `json:"is_enable" description:""`
  57. CreateTime string `json:"create_time" description:""`
  58. UpdateTime string `json:"updated_time" description:""`
  59. Priority int `json:"priority" orm:"-" description:""`
  60. ReuseTime int `json:"reuse_time"`
  61. Timeout int `json:"timeout"`
  62. IpWhitelist string `json:"ip_whitelist"`
  63. Filter string `json:"filter"`
  64. MinimalTimeConsuming int `json:"minimal_time_consuming"`
  65. RandomPercentage int `json:"random_percentage"`
  66. IsRawErrorCode int `json:"is_raw_error_code"`
  67. RateLimit int `json:"rate_limit" description:"并发限制"`
  68. }
  69. func (o *TGdMerchantChildDataApi) TableName() string {
  70. return "t_gd_merchant_child_data_api"
  71. }
  72. //商户数据api列表
  73. type ManagementGetMerchantDataApiListReq struct {
  74. MerchantId int64 `json:"merchant_id" description:""`
  75. PageNumber int `json:"page_number" description:""`
  76. PageSize int `json:"page_size"`
  77. IsAll bool `json:"is_all"`
  78. }
  79. type MerchantDataApiItem struct {
  80. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  81. Name string `json:"name" description:""`
  82. QueryType string `json:"query_type" description:""`
  83. ComboType int `json:"combo_type" description:"套餐类型1 按总次数,2 按天"`
  84. TotalCount int `json:"total_count" description:""`
  85. RemainCount int `json:"remain_count" description:""`
  86. DayCount int `json:"day_count" description:""`
  87. DayRemainCount int `json:"day_remain_count" description:""`
  88. DayNumberCount int `json:"day_number_count" description:"天数上限"`
  89. DayNumberRemain int `json:"day_number_remain" description:"有效天数"`
  90. Status string `json:"status" description:""`
  91. UseTime string `json:"use_time" description:""`
  92. }
  93. type ManagementGetMerchantDataApiListReply struct {
  94. Total int `json:"total" description:""`
  95. PageSize int `json:"page_size" description:""`
  96. PageNumber int `json:"page_number" description:""`
  97. MerchantDataApiItems []MerchantDataApiItem `json:"merchant_data_api_items"`
  98. }
  99. type MerchantDataApiDayItem struct {
  100. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  101. DataApiName string `json:"data_api_name" description:""`
  102. QueryTypeName string `json:"query_type_name" description:""`
  103. DayCount int64 `json:"day_count" description:"每天次数上限"`
  104. DayUsedCount int64 `json:"day_used_count" description:"当天调用次数"`
  105. DayRemainCount int64 `json:"day_remain_count" description:"当天剩余次数"`
  106. TotalDay int64 `json:"total_day" description:"总天数"`
  107. EffectiveDay int64 `json:"effective_day" description:"剩余有效天数"`
  108. Status string `json:"status" description:""`
  109. UseTime string `json:"use_time" description:""`
  110. QueryTypeId int64 `json:"-"`
  111. TotalConsume int `json:"-"`
  112. CountThresholds string `json:"count_thresholds"`
  113. DayThresholds string `json:"day_thresholds"`
  114. TotalComboId int64 `json:"total_combo_id" description:"按次套餐的id"`
  115. TotalComboCount int64 `json:"total_combo_count" description:"按次套餐总次数"`
  116. DayComboId int64 `json:"day_combo_id" description:"按天套餐的id"`
  117. DayComboCount int64 `json:"day_combo_count" description:"按天套餐总单天次数"`
  118. DayComboDays int `json:"day_combo_days" description:"按天套餐总天数"`
  119. DayTotalCount int `json:"day_total_count" description:"日即查量上限"`
  120. RemainDayTotalCount int `json:"remain_day_total_count" description:"日即查量余量"`
  121. IpWhitelist string `json:"ip_whitelist"`
  122. IpWhitelistEnable bool `json:"ip_whitelist_enable"`
  123. CountThresholdsEnable bool `json:"count_thresholds_enable"`
  124. StatusCode int `json:"status_code"`
  125. Modifiable MerchantDataApiModifiable `json:"modifiable"`
  126. Alias string `json:"alias"`
  127. }
  128. type MerchantDataApiModifiableTotal struct {
  129. CountThresholds string `json:"count_thresholds"`
  130. TotalComboId int64 `json:"total_combo_id" description:"按次套餐的id"`
  131. TotalComboCount int64 `json:"total_combo_count" description:"按次套餐总次数"`
  132. DayTotalCount int `json:"day_total_count" description:"日即查量上限"`
  133. RemainDayTotalCount int `json:"remain_day_total_count" description:"日即查量余量"`
  134. IpWhitelist string `json:"ip_whitelist"`
  135. IpWhitelistEnable bool `json:"ip_whitelist_enable"`
  136. CountThresholdsEnable bool `json:"count_thresholds_enable"`
  137. TotalComboDayCount int `json:"total_combo_day_count"`
  138. }
  139. type MerchantDataApiModifiableDay struct {
  140. CountThresholds string `json:"count_thresholds"`
  141. DayComboId int64 `json:"day_combo_id" description:"按天套餐的id"`
  142. DayComboCount int64 `json:"day_combo_count" description:"按天套餐总单天次数"`
  143. DayComboDays int `json:"day_combo_days" description:"按天套餐总天数"`
  144. DayThresholds string `json:"day_thresholds"`
  145. CountThresholdsEnable bool `json:"count_thresholds_enable"`
  146. DayTotalCount int `json:"day_total_count" description:"日即查量上限"`
  147. RemainDayTotalCount int `json:"remain_day_total_count" description:"日即查量余量"`
  148. EffectiveDay int64 `json:"effective_day" description:"剩余有效天数"`
  149. IpWhitelist string `json:"ip_whitelist"`
  150. IpWhitelistEnable bool `json:"ip_whitelist_enable"`
  151. }
  152. type MerchantDataApiModifiable struct {
  153. DayInfo MerchantDataApiModifiableDay `json:"day_info"`
  154. TotalInfo MerchantDataApiModifiableTotal `json:"total_info"`
  155. }
  156. type MerchantDataApiTotalItem struct {
  157. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  158. DataApiName string `json:"data_api_name" description:""`
  159. QueryTypeName string `json:"query_type_name" description:""`
  160. TotalCount int64 `json:"total_count" description:"总次数"`
  161. UsedCount int64 `json:"used_count" description:"调用次数"`
  162. RemainCount int64 `json:"remain_count" description:"剩余次数"`
  163. Status string `json:"status" description:""`
  164. UseTime string `json:"use_time" description:""`
  165. QueryTypeId int64 `json:"-"`
  166. DayCount int64 `json:"day_count"`
  167. StatusCode int `json:"status_code"`
  168. IsFree bool `json:"is_free"`
  169. Modifiable MerchantDataApiModifiable `json:"modifiable"`
  170. TotalConsume int `json:"-"`
  171. CountThresholds string `json:"count_thresholds"`
  172. TotalComboId int64 `json:"total_combo_id" description:"按次套餐的id"`
  173. TotalComboCount int64 `json:"total_combo_count" description:"按次套餐总次数"`
  174. DayComboId int64 `json:"day_combo_id" description:"按天套餐的id"`
  175. DayComboCount int64 `json:"day_combo_count" description:"按天套餐总单天次数"`
  176. DayComboDays int `json:"day_combo_days" description:"按天套餐总天数"`
  177. DayTotalCount int `json:"day_total_count" description:"日即查量上限"`
  178. RemainDayTotalCount int `json:"remain_day_total_count" description:"日即查量余量"`
  179. IpWhitelist string `json:"ip_whitelist"`
  180. IpWhitelistEnable bool `json:"ip_whitelist_enable"`
  181. CountThresholdsEnable bool `json:"count_thresholds_enable"`
  182. Alias string `json:"alias"`
  183. }
  184. type DayCount struct {
  185. Total int `json:"total" description:""`
  186. PageSize int `json:"page_size" description:""`
  187. PageNumber int `json:"page_number" description:""`
  188. MerchantDataApiDayItem []MerchantDataApiDayItem `json:"merchant_data_api_day_item"`
  189. }
  190. type TotalCount struct {
  191. Total int `json:"total" description:""`
  192. PageSize int `json:"page_size" description:""`
  193. PageNumber int `json:"page_number" description:""`
  194. MerchantDataApiTotalItem []MerchantDataApiTotalItem `json:"merchant_data_api_total_item"`
  195. }
  196. type ManagementGetMerchantDataApiListByDayReq struct {
  197. MerchantId int64 `json:"merchant_id" description:""`
  198. PageNumber int `json:"page_number" description:""`
  199. DataApiName string `json:"data_api_name"`
  200. PageSize int `json:"page_size"`
  201. IsAll bool `json:"is_all"`
  202. }
  203. type ManagementGetMerchantDataApiListByDayReply struct {
  204. DayCount
  205. }
  206. type ManagementGetMerchantDataApiListByTotalReq struct {
  207. MerchantId int64 `json:"merchant_id" description:""`
  208. PageNumber int `json:"page_number" description:""`
  209. DataApiName string `json:"data_api_name"`
  210. PageSize int `json:"page_size"`
  211. IsAll bool `json:"is_all"`
  212. }
  213. type ManagementGetMerchantDataApiListByTotalReply struct {
  214. TotalCount
  215. }
  216. //商户基础api操作
  217. /*type MerchantBaseApiParam struct {
  218. Name string `json:"name" description:""`
  219. Mean string `json:"mean" description:"参数含义"`
  220. Required bool `json:"required" description:"是否必选"`
  221. Type string `json:"type" description:""`
  222. In string `json:"in" description:"body 或query"`
  223. }
  224. */
  225. type MerchantProviderApi struct {
  226. ProviderApiId int64 `json:"provider_api_id"`
  227. Priority int `json:"priority" description:"优先级"`
  228. ThirdpartApiName string `json:"thirdpart_api_name" description:"数据源接口名称"`
  229. PlatformName string `json:"platform_name" description:"数据源平台名称"`
  230. Enable bool `json:"enable"`
  231. DayCount int64 `json:"day_count"`
  232. }
  233. /*type MerchantBaseApiItem struct {
  234. MerchantChildApiId int64 `json:"merchant_child_api_id" description:"商户的某数据api的某子api的id"`
  235. IsCrypto bool `json:"is_crypto" description:""`
  236. CountType int `json:"count_type" description:""`
  237. ForceUpdate bool `json:"force_update" description:"是否开启强更,若开启每次都调数据源"`
  238. MerchantProviderApiList []MerchantProviderApi `json:"merchant_provider_api_list"`
  239. ApiName string `json:"api_name" description:""`
  240. ApiId int64 `json:"api_id" description:""`
  241. RequestParam []MerchantBaseApiParam `json:"request_param" description:""`
  242. ResponseParam []MerchantBaseApiParam `json:"response_param" description:""`
  243. }
  244. */
  245. type ManagementMerchantBaseApiItem struct {
  246. MerchantChildApiId int64 `json:"merchant_child_api_id" description:"商户的某数据api的某子api的id"`
  247. MerchantChildApiName string `json:"merchant_child_api_name" description""`
  248. Router string `json:"router"`
  249. }
  250. //获取商户数据api对应的基础api列表
  251. type ManagementGetMerchantBaseApiListReq struct {
  252. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  253. }
  254. type ManagementGetMerchantBaseApiListReply struct {
  255. ManagementMerchantBaseApiList []ManagementMerchantBaseApiItem `json:"merchant_base_api_list"`
  256. }
  257. type ManagementGetMerchantBaseApiInfoReq struct {
  258. MerchantChildApiId int64 `json:"merchant_child_api_id" description:"商户的某数据api的某子api的id"`
  259. }
  260. type MerchantProviderGroup struct {
  261. GroupNo int `json:"group_no"`
  262. GroupName string `json:"group_name"`
  263. MerchantProviderApiList []MerchantProviderApi `json:"merchant_provider_api_list"`
  264. }
  265. type ManagementGetMerchantBaseApiInfoReply struct {
  266. MerchantChildApiId int64 `json:"merchant_child_api_id" description:"商户的某数据api的某子api的id"`
  267. IsCrypto bool `json:"is_crypto" description:""`
  268. CountType int `json:"count_type" description:""`
  269. ForceUpdate bool `json:"force_update" description:"是否开启强更,若开启每次都调数据源"`
  270. MerchantProviderGroupList []MerchantProviderGroup `json:"merchant_provider_group_list"`
  271. ApiName string `json:"api_name" description:""`
  272. ApiRouter string `json:"api_router"`
  273. RequestParam []ManagementBaseApiParam `json:"request_param" description:""`
  274. ResponseParam []ManagementBaseApiParam `json:"response_param" description:""`
  275. CountCode string `json:"count_code" description:"当计数类型为查得时,错误码"`
  276. ReuseTime int `json:"reuse_time"`
  277. Timeout int `json:"timeout"`
  278. IpWhitelist string `json:"ip_whitelist"`
  279. Filters []BaseApiParamFilter `json:"filters"`
  280. MinimalTimeConsuming int `json:"minimal_time_consuming" description:"最小耗时"`
  281. RandomPercentage int `json:"random_percentage" description:"随机百分比"`
  282. IsRawErrorCode int `json:"is_raw_error_code" description:"是否原始错误码"`
  283. RateLimit int `json:"rate_limit" description:"并发限制"`
  284. }
  285. //在商户数据api中添加基础api
  286. type ManagementAddMerchantBaseApiReq struct {
  287. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  288. BaseApiIds []int64 `json:"base_api_ids" description:""`
  289. }
  290. type ManagementAddMerchantBaseApiReply struct {
  291. //MerchantChildApiId int64 `json:"merchant_child_api_id" description:""`
  292. }
  293. //在商户数据api中删除基础api
  294. type ManagementDelMerchantBaseApiReq struct {
  295. MerchantChildApiId int64 `json:"merchant_child_api_id" description:""`
  296. }
  297. type ManagementDelMerchantBaseApiReply struct {
  298. }
  299. //更新商户数据api中某基础api信息
  300. type ManagementUpdateMerchantBaseApiReq struct {
  301. MerchantChildApiId int64 `json:"merchant_child_api_id" description:"商户的某数据api的某子api的id"`
  302. IsCrypto bool `json:"is_crypto" description:""`
  303. CountType int `json:"count_type" description:""`
  304. ForceUpdate bool `json:"force_update" description:"是否开启强更,若开启每次都调数据源"`
  305. ReuseTime int `json:"reuse_time" description:"复用时效"`
  306. //ProviderApiLimit []MerchantApiProviderRelation `json:"provider_api_limit"`
  307. MerchantProviderGroupList []MerchantProviderGroup `json:"merchant_provider_group_list"`
  308. RequestParam []ManagementBaseApiParam `json:"request_param" description:""`
  309. ResponseParam []ManagementBaseApiParam `json:"response_param" description:""`
  310. CountCode string `json:"count_code" description:"当计数类型为查得时,错误码"`
  311. Timeout int `json:"timeout"`
  312. IpWhitelist string `json:"ip_whitelist"`
  313. Filters []BaseApiParamFilter `json:"filters"`
  314. MinimalTimeConsuming int `json:"minimal_time_consuming" description:"最小耗时"`
  315. RandomPercentage int `json:"random_percentage" description:"随机百分比"`
  316. IsRawErrorCode int `json:"is_raw_error_code"`
  317. RateLimit int `json:"rate_limit" description:"并发限制"`
  318. }
  319. type ManagementUpdateMerchantBaseApiReply struct {
  320. }
  321. //设置商户数据api中基础api优先级
  322. type ManagementSetMerchantBaseApiPriorityReq struct {
  323. MerchantChildApiIds []int64 `json:"merchant_child_api_ids" description:"按优先级排好序的id"`
  324. }
  325. type ManagementSetMerchantBaseApiPriorityReply struct {
  326. }
  327. //修改商户数据api配额
  328. type ManagementSetMerchantDataApiQuotaReq struct {
  329. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  330. DayCount int `json:"day_count" description:"日调用量上限"`
  331. Count int `json:"count" description:"总调用上限"`
  332. DayNumber int `json:"day_number" description:"剩余有效天数"`
  333. }
  334. type ManagementSetMerchantDataApiQuotaReply struct {
  335. }
  336. type ManagementGetMerchantDataApiQuotaReq struct {
  337. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  338. }
  339. type ManagementGetMerchantDataApiQuotaReply struct {
  340. DayCount int `json:"day_count" description:"日调用量上限"`
  341. Count int `json:"count" description:"总调用上限"`
  342. DayNumber int `json:"day_number" description:"剩余有效天数"`
  343. Type int `json:"type" description:"1 按总次数, 2按天"`
  344. }
  345. type ManagementAddMerchantDataApiReq struct {
  346. MerchantId int64 `json:"merchant_id" description:""`
  347. QueryTypeId int64 `json:"query_type_id"`
  348. ComboId int64 `json:"combo_id" description:""`
  349. }
  350. type ManagementAddMerchantDataApiReply struct {
  351. }
  352. type ManagementConvertMerchantDataApiReq struct {
  353. MerchantDataApiId int64 `json:"merchant_data_api_id"`
  354. }
  355. type ParamStruct struct {
  356. StructName string `json:"struct_name"`
  357. Params []ManagementBaseApiParam `json:"params"`
  358. }
  359. type ErrorCode struct {
  360. Code string `json:"code"`
  361. Msg string `json:"msg"`
  362. }
  363. type ApiParamStructInfo struct {
  364. ApiName string `json:"api_name"`
  365. ApiCode string `json:"api_code"`
  366. ApiMethod string `json:"api_method"`
  367. ApiRouter string `json:"api_router"`
  368. Comment string `json:"comment"`
  369. RequestParams []ParamStruct `json:"request_params"`
  370. ResponseParams []ParamStruct `json:"response_params"`
  371. ErrorList []ErrorCode `json:"error_list"`
  372. IsCrypto bool `json:"is_crypto"`
  373. JsonExample string `json:"json_example"`
  374. }
  375. type ManagementConvertMerchantDataApiReply struct {
  376. DataApiName string `json:"data_api_name"`
  377. Apis []ApiParamStructInfo `json:"apis"`
  378. }
  379. type ManagementDelMerchantDataApiReq struct {
  380. MerchantDataApiId int64 `json:"merchant_data_api_id"`
  381. }
  382. type ManagementDelMerchantDataApiReply struct {
  383. }
  384. type ManagementMerchantBaseApiAllInfo struct {
  385. ApiId int64 `json:"api_id"`
  386. DataApiName string `json:"data_api_name"`
  387. Name string `json:"name" description:"基础api名"`
  388. Alias string `json:"alias" description:"别名"`
  389. Method string `json:"method" description:"方法,GET POST等"`
  390. Router string `json:"router" description:"路由"`
  391. RequestParam []ManagementBaseApiParam `json:"request_param" description:"请求参数"`
  392. ResponseParam []ManagementBaseApiParam `json:"response_param" description:"响应参数"`
  393. IsCrypto bool `json:"is_crypto"`
  394. }
  395. type ManagementGetMerchantBaseApiListAllReq struct {
  396. MerchantId int64 `json:"merchant_id"`
  397. OnlyBaseApi bool `json:"only_base_api"`
  398. }
  399. type ManagementGetMerchantBaseApiListAllReply struct {
  400. ManagementMerchantBaseApiList []ManagementMerchantBaseApiAllInfo `json:"merchant_base_api_list"`
  401. }
  402. type GetMerchantDataApiQuotaReq struct {
  403. Id int64 `json:"id"`
  404. }
  405. type GetMerchantDataApiQuotaReply struct {
  406. MerchantId int64 `json:"merchant_id" description:""`
  407. QueryTypeId int64 `json:"data_api_id" description:""`
  408. Count int `json:"count" description:""`
  409. CountPerDay int `json:"count_per_day" description:""`
  410. StartTime int64 `json:"start_time" description:""`
  411. EndTime int64 `json:"end_time" description:""`
  412. ComboType int `json:"combo_type"`
  413. State int `json:"state"`
  414. }
  415. //修改商户数据api 每日调用上限
  416. type ManagementSetDayCountLimitReq struct {
  417. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  418. DayCount int `json:"day_count" description:"日调用量上限"`
  419. DayTotalCount int `json:"day_total_count" description:"日即查量上限"`
  420. }
  421. type ManagementSetDayCountLimitReply struct {
  422. }
  423. type UpdateMerchantDataApiReq struct {
  424. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  425. DayCount int `json:"day_count" description:"日调用量上限"`
  426. Count int `json:"count" description:"总调用上限"`
  427. DayNumber int `json:"day_number" description:"剩余有效天数"`
  428. CountThresholds string `json:"count_thresholds"`
  429. DayThresholds string `json:"day_thresholds"`
  430. ComboId int64 `json:"combo_id"`
  431. DayTotalCount int `json:"day_total_count"`
  432. IpWhitelist string `json:"ip_whitelist"`
  433. IpWhitelistEnable bool `json:"ip_whitelist_enable"`
  434. CountThresholdsEnable bool `json:"count_thresholds_enable"`
  435. TotalComboDayCount int `json:"total_combo_day_count"`
  436. }
  437. type UpdateMerchantDataApiReply struct {
  438. }
  439. type ModifyAliasReq struct {
  440. MerchantDataApiId int64 `json:"merchant_data_api_id" description:""`
  441. Alias string `json:"alias"`
  442. }
  443. type ModifyAliasReply struct{}