rcvr.go 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549
  1. package impl
  2. import (
  3. "context"
  4. "gd_management/apis"
  5. "gd_management/impl/accounting"
  6. "gd_management/impl/base_api"
  7. "gd_management/impl/data_api"
  8. "gd_management/impl/error_code"
  9. "gd_management/impl/h5"
  10. "gd_management/impl/management"
  11. "gd_management/impl/order"
  12. "gd_management/impl/provider"
  13. "gd_management/impl/try_api"
  14. "gd_management/impl/user_merchant"
  15. "time"
  16. "gd_management/common.in/task"
  17. "gd_management/common.in/utils"
  18. /*"gd_service/common.in/jsonrpc2"
  19. "encoding/json"*/
  20. "github.com/astaxie/beego/orm"
  21. )
  22. // 具体实现
  23. type Rcvr struct {
  24. }
  25. //基础api操作
  26. func (c *Rcvr) ManagementAddBaseApi(ctx context.Context, req *apis.ManagementAddBaseApiReq, reply *apis.ManagementAddBaseApiReply) error {
  27. t1 := func() error {
  28. return base_api.ManagementAddBaseApi(ctx, req, reply)
  29. }
  30. return task.Do(ctx, t1)
  31. }
  32. func (c *Rcvr) ManagementDelBaseApi(ctx context.Context, req *apis.ManagementDelBaseApiReq, reply *apis.ManagementDelBaseApiReply) error {
  33. t1 := func() error {
  34. return base_api.ManagementDelBaseApi(ctx, req, reply)
  35. }
  36. return task.Do(ctx, t1)
  37. }
  38. func (c *Rcvr) ManagementUpdateBaseApi(ctx context.Context, req *apis.ManagementUpdateBaseApiReq, reply *apis.ManagementUpdateBaseApiReply) error {
  39. t1 := func() error {
  40. return base_api.ManagementUpdateBaseApi(ctx, req, reply)
  41. }
  42. return task.Do(ctx, t1)
  43. }
  44. func (c *Rcvr) ManagementGetBaseApiList(ctx context.Context, req *apis.ManagementGetBaseApiListReq, reply *apis.ManagementGetBaseApiListReply) error {
  45. t1 := func() error {
  46. return base_api.ManagementGetBaseApiList(ctx, req, reply)
  47. }
  48. return task.Do(ctx, t1)
  49. }
  50. func (c *Rcvr) ManagementGetBaseApiInfo(ctx context.Context, req *apis.ManagementGetBaseApiInfoReq, reply *apis.ManagementGetBaseApiInfoReply) error {
  51. t1 := func() error {
  52. return base_api.ManagementGetBaseApiInfo(ctx, req, reply)
  53. }
  54. return task.Do(ctx, t1)
  55. }
  56. func (c *Rcvr) ManagementSetBaseApiState(ctx context.Context, req *apis.ManagementSetBaseApiStateReq, reply *apis.ManagementSetBaseApiStateReply) error {
  57. t1 := func() error {
  58. return base_api.ManagementSetBaseApiState(ctx, req, reply)
  59. }
  60. return task.Do(ctx, t1)
  61. }
  62. //通用错误码操作
  63. func (c *Rcvr) ManagementAddError(ctx context.Context, req *apis.ManagementAddErrorReq, reply *apis.ManagementAddErrorReply) error {
  64. t1 := func() error {
  65. return error_code.ManagementAddError(ctx, req, reply)
  66. }
  67. return task.Do(ctx, t1)
  68. }
  69. func (c *Rcvr) ManagementDelError(ctx context.Context, req *apis.ManagementDelErrorReq, reply *apis.ManagementDelErrorReply) error {
  70. t1 := func() error {
  71. return error_code.ManagementDelError(ctx, req, reply)
  72. }
  73. return task.Do(ctx, t1)
  74. }
  75. func (c *Rcvr) ManagementUpdateError(ctx context.Context, req *apis.ManagementUpdateErrorReq, reply *apis.ManagementUpdateErrorReply) error {
  76. t1 := func() error {
  77. return error_code.ManagementUpdateError(ctx, req, reply)
  78. }
  79. return task.Do(ctx, t1)
  80. }
  81. func (c *Rcvr) ManagementGetErrorList(ctx context.Context, req *apis.ManagementGetErrorListReq, reply *apis.ManagementGetErrorListReply) error {
  82. t1 := func() error {
  83. return error_code.ManagementGetErrorList(ctx, req, reply)
  84. }
  85. return task.Do(ctx, t1)
  86. }
  87. func (c *Rcvr) ManagementAddProviderPlatform(ctx context.Context, req *apis.ManagementAddProviderPlatformReq, reply *apis.ManagementAddProviderPlatformReply) error {
  88. t1 := func() error {
  89. return provider.ManagementAddProviderPlatform(ctx, req, reply)
  90. }
  91. return task.Do(ctx, t1)
  92. }
  93. func (c *Rcvr) ManagementDelProviderPlatform(ctx context.Context, req *apis.ManagementDelProviderPlatformReq, reply *apis.ManagementDelProviderPlatformReply) error {
  94. t1 := func() error {
  95. return provider.ManagementDelProviderPlatform(ctx, req, reply)
  96. }
  97. return task.Do(ctx, t1)
  98. }
  99. func (c *Rcvr) ManagementUpdateProviderPlatform(ctx context.Context, req *apis.ManagementUpdateProviderPlatformReq, reply *apis.ManagementUpdateProviderPlatformReply) error {
  100. t1 := func() error {
  101. return provider.ManagementUpdateProviderPlatform(ctx, req, reply)
  102. }
  103. return task.Do(ctx, t1)
  104. }
  105. func (c *Rcvr) ManagementGetProviderPlatformList(ctx context.Context, req *apis.ManagementGetProviderPlatformListReq, reply *apis.ManagementGetProviderPlatformListReply) error {
  106. t1 := func() error {
  107. return provider.ManagementGetProviderPlatformList(ctx, req, reply)
  108. }
  109. return task.Do(ctx, t1)
  110. }
  111. func (c *Rcvr) ManagementAddProviderApi(ctx context.Context, req *apis.ManagementAddProviderApiReq, reply *apis.ManagementAddProviderApiReply) error {
  112. t1 := func() error {
  113. return provider.ManagementAddProviderApi(ctx, req, reply)
  114. }
  115. return task.Do(ctx, t1)
  116. }
  117. func (c *Rcvr) ManagementDelProviderApi(ctx context.Context, req *apis.ManagementDelProviderApiReq, reply *apis.ManagementDelProviderApiReply) error {
  118. t1 := func() error {
  119. return provider.ManagementDelProviderApi(ctx, req, reply)
  120. }
  121. return task.Do(ctx, t1)
  122. }
  123. func (c *Rcvr) ManagementUpdateProviderApi(ctx context.Context, req *apis.ManagementUpdateProviderApiReq, reply *apis.ManagementUpdateProviderApiReply) error {
  124. t1 := func() error {
  125. return provider.ManagementUpdateProviderApi(ctx, req, reply)
  126. }
  127. return task.Do(ctx, t1)
  128. }
  129. func (c *Rcvr) ManagementGetProviderApiList(ctx context.Context, req *apis.ManagementGetProviderApiListReq, reply *apis.ManagementGetProviderApiListReply) error {
  130. t1 := func() error {
  131. return provider.ManagementGetProviderApiList(ctx, req, reply)
  132. }
  133. return task.Do(ctx, t1)
  134. }
  135. //基础api关联数据源操作
  136. func (c *Rcvr) ManagementAddBaseApiProvider(ctx context.Context, req *apis.ManagementAddBaseApiProviderReq, reply *apis.ManagementAddBaseApiProviderReply) error {
  137. t1 := func() error {
  138. return base_api.ManagementAddBaseApiProvider(ctx, req, reply)
  139. }
  140. return task.Do(ctx, t1)
  141. }
  142. /*func (c *Rcvr) ManagementDelBaseApiProvider(ctx context.Context, req *apis.ManagementDelBaseApiProviderReq, reply *apis.ManagementDelBaseApiProviderReply) error {
  143. t1 := func() error {
  144. return base_api.ManagementDelBaseApiProvider(ctx, req, reply)
  145. }
  146. return task.Do(ctx, t1)
  147. }
  148. func (c *Rcvr) ManagementSetBaseApiProviderPriority(ctx context.Context, req *apis.ManagementSetBaseApiProviderPriorityReq, reply *apis.ManagementSetBaseApiProviderPriorityReply) error {
  149. t1 := func() error {
  150. return base_api.ManagementSetBaseApiProviderPriority(ctx, req, reply)
  151. }
  152. return task.Do(ctx, t1)
  153. }
  154. */
  155. func (c *Rcvr) ManagementGetBaseApiProviderList(ctx context.Context, req *apis.ManagementGetBaseApiProviderListReq, reply *apis.ManagementGetBaseApiProviderListReply) error {
  156. t1 := func() error {
  157. return base_api.ManagementGetBaseApiProviderList(ctx, req, reply)
  158. }
  159. return task.Do(ctx, t1)
  160. }
  161. func (c *Rcvr) DataApiAddApi(ctx context.Context, req *apis.ManagementDataApiAddApiReq, reply *apis.ManagementDataApiAddApiReply) error {
  162. t1 := func() error {
  163. return data_api.DataApiAddApi(ctx, req, reply)
  164. }
  165. return task.Do(ctx, t1)
  166. }
  167. func (c *Rcvr) DataApiDeleteApi(ctx context.Context, req *apis.ManagementDataApiDeleteApiReq, reply *apis.ManagementDataApiDeleteApiReply) error {
  168. t1 := func() error {
  169. return data_api.DataApiDeleteApi(ctx, req, reply)
  170. }
  171. return task.Do(ctx, t1)
  172. }
  173. func (c *Rcvr) DataApiModifyApi(ctx context.Context, req *apis.ManagementDataApiModifyApiReq, reply *apis.ManagementDataApiModifyApiReply) error {
  174. t1 := func() error {
  175. return data_api.DataApiModifyApi(ctx, req, reply)
  176. }
  177. return task.Do(ctx, t1)
  178. }
  179. func (c *Rcvr) DataApiGetAll(ctx context.Context, req *apis.ManagementDataApiGetAllReq, reply *apis.ManagementDataApiGetAllReply) error {
  180. t1 := func() error {
  181. return data_api.DataApiGetAll(ctx, req, reply)
  182. }
  183. return task.Do(ctx, t1)
  184. }
  185. func (c *Rcvr) DataApiGetApiInfo(ctx context.Context, req *apis.ManagementDataApiGetApiInfoReq, reply *apis.ManagementDataApiGetApiInfoReply) error {
  186. t1 := func() error {
  187. return data_api.DataApiGetApiInfo(ctx, req, reply)
  188. }
  189. return task.Do(ctx, t1)
  190. }
  191. func (c *Rcvr) DataApiReleaseApi(ctx context.Context, req *apis.ManagementDataApiReleaseApiReq, reply *apis.ManagementDataApiReleaseApiReply) error {
  192. t1 := func() error {
  193. return data_api.DataApiReleaseApi(ctx, req, reply)
  194. }
  195. return task.Do(ctx, t1)
  196. }
  197. func (c *Rcvr) DataApiAddQueryType(ctx context.Context, req *apis.ManagementDataApiAddQueryTypeReq, reply *apis.ManagementDataApiAddQueryTypeReply) error {
  198. t1 := func() error {
  199. return data_api.DataApiAddQueryType(ctx, req, reply)
  200. }
  201. return task.Do(ctx, t1)
  202. }
  203. func (c *Rcvr) DataApiModifyQueryType(ctx context.Context, req *apis.ManagementDataApiModifyQueryTypeReq, reply *apis.ManagementDataApiModifyQueryTypeReply) error {
  204. t1 := func() error {
  205. return data_api.DataApiModifyQueryType(ctx, req, reply)
  206. }
  207. return task.Do(ctx, t1)
  208. }
  209. func (c *Rcvr) DataApiRemoveQueryType(ctx context.Context, req *apis.ManagementDataApiRemoveQueryTypeReq, reply *apis.ManagementDataApiRemoveQueryTypeReply) error {
  210. t1 := func() error {
  211. return data_api.DataApiRemoveQueryType(ctx, req, reply)
  212. }
  213. return task.Do(ctx, t1)
  214. }
  215. func (c *Rcvr) DataApiGetQueryType(ctx context.Context, req *apis.ManagementDataApiGetQueryTypeReq, reply *apis.ManagementDataApiGetQueryTypeReply) error {
  216. t1 := func() error {
  217. return data_api.DataApiGetQueryType(ctx, req, reply)
  218. }
  219. return task.Do(ctx, t1)
  220. }
  221. func (c *Rcvr) DataApiAddBaseApi(ctx context.Context, req *apis.ManagementDataApiAddBaseApiReq, reply *apis.ManagementDataApiAddBaseApiReply) error {
  222. t1 := func() error {
  223. return data_api.DataApiAddBaseApi(ctx, req, reply)
  224. }
  225. return task.Do(ctx, t1)
  226. }
  227. func (c *Rcvr) DataApiRemoveBaseApi(ctx context.Context, req *apis.ManagementDataApiRemoveBaseApiReq, reply *apis.ManagementDataApiRemoveBaseApiReply) error {
  228. t1 := func() error {
  229. return data_api.DataApiRemoveBaseApi(ctx, req, reply)
  230. }
  231. return task.Do(ctx, t1)
  232. }
  233. func (c *Rcvr) DataApiModifyBaseApi(ctx context.Context, req *apis.ManagementDataApiModifyBaseApiReq, reply *apis.ManagementDataApiModifyBaseApiReply) error {
  234. t1 := func() error {
  235. return data_api.DataApiModifyBaseApi(ctx, req, reply)
  236. }
  237. return task.Do(ctx, t1)
  238. }
  239. func (c *Rcvr) DataApiGetBaseApi(ctx context.Context, req *apis.ManagementDataApiGetBaseApiReq, reply *apis.ManagementDataApiGetBaseApiReply) error {
  240. t1 := func() error {
  241. return data_api.DataApiGetBaseApi(ctx, req, reply)
  242. }
  243. return task.Do(ctx, t1)
  244. }
  245. /*func (c *Rcvr) DataApiChangeBaseApiIndex(ctx context.Context, req *apis.ManagementDataApiChangeBaseApiIndexReq, reply *apis.ManagementDataApiChangeBaseApiIndexReply) error {
  246. t1 := func() error {
  247. return data_api.DataApiChangeBaseApiIndex(ctx, req, reply)
  248. }
  249. return task.Do(ctx, t1)
  250. }*/
  251. func (c *Rcvr) DataApiAddDataCombo(ctx context.Context, req *apis.ManagementDataApiAddDataComboReq, reply *apis.ManagementDataApiAddDataComboReply) error {
  252. t1 := func() error {
  253. return data_api.DataApiAddDataCombo(ctx, req, reply)
  254. }
  255. return task.Do(ctx, t1)
  256. }
  257. func (c *Rcvr) DataApiModifyDataCombo(ctx context.Context, req *apis.ManagementDataApiModifyDataComboReq, reply *apis.ManagementDataApiModifyDataComboReply) error {
  258. t1 := func() error {
  259. return data_api.DataApiModifyDataCombo(ctx, req, reply)
  260. }
  261. return task.Do(ctx, t1)
  262. }
  263. func (c *Rcvr) DataApiRemoveDataCombo(ctx context.Context, req *apis.ManagementDataApiRemoveDataComboReq, reply *apis.ManagementDataApiRemoveDataComboReply) error {
  264. t1 := func() error {
  265. return data_api.DataApiRemoveDataCombo(ctx, req, reply)
  266. }
  267. return task.Do(ctx, t1)
  268. }
  269. func (c *Rcvr) DataApiGetDataCombo(ctx context.Context, req *apis.ManagementDataApiGetDataComboReq, reply *apis.ManagementDataApiGetDataComboReply) error {
  270. t1 := func() error {
  271. return data_api.DataApiGetDataCombo(ctx, req, reply)
  272. }
  273. return task.Do(ctx, t1)
  274. }
  275. /*func (c *Rcvr) DataApiChooseProviderApi(ctx context.Context, req *apis.ManagementDataApiChooseProviderApiReq, reply *apis.ManagementDataApiChooseProviderApiReply) error {
  276. t1 := func() error {
  277. return data_api.DataApiChooseProviderApi(ctx, req, reply)
  278. }
  279. return task.Do(ctx, t1)
  280. }
  281. */
  282. //商户操作
  283. func (c *Rcvr) ManagementAddUserMerchant(ctx context.Context, req *apis.ManagementAddUserMerchantReq, reply *apis.ManagementAddUserMerchantReply) error {
  284. t1 := func() error {
  285. return user_merchant.ManagementAddUserMerchant(ctx, req, reply)
  286. }
  287. return task.Do(ctx, t1)
  288. }
  289. func (c *Rcvr) ManagementUpdateUserMerchant(ctx context.Context, req *apis.ManagementUpdateUserMerchantReq, reply *apis.ManagementUpdateUserMerchantReply) error {
  290. t1 := func() error {
  291. return user_merchant.ManagementUpdateUserMerchant(ctx, req, reply)
  292. }
  293. return task.Do(ctx, t1)
  294. }
  295. func (c *Rcvr) ManagementGetUserMerchantList(ctx context.Context, req *apis.ManagementGetUserMerchantListReq, reply *apis.ManagementGetUserMerchantListReply) error {
  296. t1 := func() error {
  297. return user_merchant.ManagementGetUserMerchantList(ctx, req, reply)
  298. }
  299. return task.Do(ctx, t1)
  300. }
  301. func (c *Rcvr) ManagementSetUserMerchantAuthState(ctx context.Context, req *apis.ManagementSetUserMerchantAuthStateReq, reply *apis.ManagementSetUserMerchantAuthStateReply) error {
  302. t1 := func() error {
  303. return user_merchant.ManagementSetUserMerchantAuthState(ctx, req, reply)
  304. }
  305. return task.Do(ctx, t1)
  306. }
  307. //商户数据api操作
  308. func (c *Rcvr) ManagementGetMerchantDataApiList(ctx context.Context, req *apis.ManagementGetMerchantDataApiListReq, reply *apis.ManagementGetMerchantDataApiListReply) error {
  309. t1 := func() error {
  310. return user_merchant.ManagementGetMerchantDataApiList(ctx, req, reply)
  311. }
  312. return task.Do(ctx, t1)
  313. }
  314. func (c *Rcvr) ManagementGetMerchantDataApiListByTotal(ctx context.Context, req *apis.ManagementGetMerchantDataApiListByTotalReq, reply *apis.ManagementGetMerchantDataApiListByTotalReply) error {
  315. t1 := func() error {
  316. return user_merchant.ManagementGetMerchantDataApiListByTotal(ctx, req, reply)
  317. }
  318. return task.Do(ctx, t1)
  319. }
  320. func (c *Rcvr) ManagementGetMerchantDataApiListByDay(ctx context.Context, req *apis.ManagementGetMerchantDataApiListByDayReq, reply *apis.ManagementGetMerchantDataApiListByDayReply) error {
  321. t1 := func() error {
  322. return user_merchant.ManagementGetMerchantDataApiListByDay(ctx, req, reply)
  323. }
  324. return task.Do(ctx, t1)
  325. }
  326. func (c *Rcvr) ManagementGetMerchantBaseApiList(ctx context.Context, req *apis.ManagementGetMerchantBaseApiListReq, reply *apis.ManagementGetMerchantBaseApiListReply) error {
  327. t1 := func() error {
  328. return user_merchant.ManagementGetMerchantBaseApiList(ctx, req, reply)
  329. }
  330. return task.Do(ctx, t1)
  331. }
  332. func (c *Rcvr) ManagementAddMerchantBaseApi(ctx context.Context, req *apis.ManagementAddMerchantBaseApiReq, reply *apis.ManagementAddMerchantBaseApiReply) error {
  333. t1 := func() error {
  334. return user_merchant.ManagementAddMerchantBaseApi(ctx, req, reply)
  335. }
  336. return task.Do(ctx, t1)
  337. }
  338. /*
  339. func (c *Rcvr) ManagementDelMerchantBaseApi(ctx context.Context, req *apis.ManagementDelMerchantBaseApiReq, reply *apis.ManagementDelMerchantBaseApiReply) error {
  340. t1 := func() error {
  341. return user_merchant.ManagementDelMerchantBaseApi(ctx, req, reply)
  342. }
  343. return task.Do(ctx, t1)
  344. }
  345. */
  346. func (c *Rcvr) ManagementUpdateMerchantBaseApi(ctx context.Context, req *apis.ManagementUpdateMerchantBaseApiReq, reply *apis.ManagementUpdateMerchantBaseApiReply) error {
  347. t1 := func() error {
  348. return user_merchant.ManagementUpdateMerchantBaseApi(ctx, req, reply)
  349. }
  350. return task.Do(ctx, t1)
  351. }
  352. /*func (c *Rcvr) ManagementSetMerchantBaseApiPriority(ctx context.Context, req *apis.ManagementSetMerchantBaseApiPriorityReq, reply *apis.ManagementSetMerchantBaseApiPriorityReply) error {
  353. t1 := func() error {
  354. return user_merchant.ManagementSetMerchantBaseApiPriority(ctx, req, reply)
  355. }
  356. return task.Do(ctx, t1)
  357. }
  358. */
  359. func (c *Rcvr) ManagementGetMerchantBaseApiInfo(ctx context.Context, req *apis.ManagementGetMerchantBaseApiInfoReq, reply *apis.ManagementGetMerchantBaseApiInfoReply) error {
  360. t1 := func() error {
  361. return user_merchant.ManagementGetMerchantBaseApiInfo(ctx, req, reply)
  362. }
  363. return task.Do(ctx, t1)
  364. }
  365. func (c *Rcvr) ManagementSetMerchantDataApiQuota(ctx context.Context, req *apis.ManagementSetMerchantDataApiQuotaReq, reply *apis.ManagementSetMerchantDataApiQuotaReply) error {
  366. t1 := func() error {
  367. return user_merchant.ManagementSetMerchantDataApiQuota(ctx, req, reply)
  368. }
  369. return task.Do(ctx, t1)
  370. }
  371. func (c *Rcvr) ManagementAddOrder(ctx context.Context, req *apis.ManagementAddOrderReq, reply *apis.ManagementAddOrderReply) error {
  372. t1 := func() error {
  373. return user_merchant.ManagementAddOrder(ctx, req, reply)
  374. }
  375. return task.Do(ctx, t1)
  376. }
  377. func (c *Rcvr) ManagementPayOrder(ctx context.Context, req *apis.ManagementPayOrderReq, reply *apis.ManagementPayOrderReply) error {
  378. t1 := func() error {
  379. return user_merchant.ManagementPayOrder(ctx, req, reply)
  380. }
  381. return task.Do(ctx, t1)
  382. }
  383. func (c *Rcvr) ManagementGetMerchantOrderList(ctx context.Context, req *apis.ManagementGetMerchantOrderListReq, reply *apis.ManagementGetMerchantOrderListReply) error {
  384. t1 := func() error {
  385. return user_merchant.ManagementGetMerchantOrderList(ctx, req, reply)
  386. }
  387. return task.Do(ctx, t1)
  388. }
  389. func (c *Rcvr) MangementDataApiOrderConfirm(ctx context.Context, req *apis.MangementDataApiOrderConfirmReq, reply *apis.MangementDataApiOrderConfirmReply) error {
  390. t1 := func() error {
  391. return order.MangementDataApiOrderConfirm(ctx, req, reply)
  392. }
  393. return task.Do(ctx, t1)
  394. }
  395. func (c *Rcvr) ManagementMerchantOrderDetailInfo(ctx context.Context, req *apis.ManagementMerchantOrderDetailInfoReq, reply *apis.ManagementMerchantOrderDetailInfoReply) error {
  396. t1 := func() error {
  397. return order.ManagementMerchantOrderDetailInfo(ctx, req, reply)
  398. }
  399. return task.Do(ctx, t1)
  400. }
  401. func (c *Rcvr) ManagementSetMerchantOrderPrice(ctx context.Context, req *apis.ManagementSetMerchantOrderPriceReq, reply *apis.ManagementSetMerchantOrderPriceReply) error {
  402. t1 := func() error {
  403. return user_merchant.ManagementSetMerchantOrderPrice(ctx, req, reply)
  404. }
  405. return task.Do(ctx, t1)
  406. }
  407. /*
  408. func (c *Rcvr) ManagementCheckApi(ctx context.Context, req *apis.ManagementCheckApiReq, reply *apis.ManagementCheckApiReply) error {
  409. t1 := func() error {
  410. return user_merchant.ManagementCheckApi(ctx, req, reply)
  411. }
  412. err := task.Do(ctx, t1)
  413. if err != nil {
  414. var e jsonrpc2.Error
  415. merr := json.Unmarshal([]byte(err.Error()), &e)
  416. if merr != nil {
  417. reply.ErrCode = int(10003)
  418. reply.ErrMsg = "内部服务错误"
  419. }
  420. reply.ErrCode = e.Code
  421. reply.ErrMsg = e.Message
  422. }
  423. return nil
  424. }*/
  425. /*
  426. func (c *Rcvr) ManagementGetName(ctx context.Context, req *apis.ManagementGetNameReq, reply *apis.ManagementGetNameReply) error {
  427. t1 := func() error {
  428. return provider.ManagementGetName(ctx, req, reply)
  429. }
  430. return task.Do(ctx, t1)
  431. }
  432. */
  433. func (c *Rcvr) DataApiSetFreeDataCombo(ctx context.Context, req *apis.ManagementDataApiSetFreeDataComboReq, reply *apis.ManagementDataApiSetFreeDataComboReply) error {
  434. t1 := func() error {
  435. return data_api.DataApiSetFreeDataCombo(ctx, req, reply)
  436. }
  437. return task.Do(ctx, t1)
  438. }
  439. func (c *Rcvr) DataApiGetQueryTypeList(ctx context.Context, req *apis.ManagementDataApiGetQueryTypeListReq, reply *apis.ManagementDataApiGetQueryTypeListReply) error {
  440. t1 := func() error {
  441. return data_api.DataApiGetQueryTypeList(ctx, req, reply)
  442. }
  443. return task.Do(ctx, t1)
  444. }
  445. func (c *Rcvr) ManagementGetMerchantDataApiQuota(ctx context.Context, req *apis.ManagementGetMerchantDataApiQuotaReq, reply *apis.ManagementGetMerchantDataApiQuotaReply) error {
  446. t1 := func() error {
  447. return user_merchant.ManagementGetMerchantDataApiQuota(ctx, req, reply)
  448. }
  449. return task.Do(ctx, t1)
  450. }
  451. func (c *Rcvr) ManagementGetAllProviderApi(ctx context.Context, req *apis.ManagementGetAllProviderApiReq, reply *apis.ManagementGetAllProviderApiReply) error {
  452. t1 := func() error {
  453. return provider.ManagementGetAllProviderApi(ctx, req, reply)
  454. }
  455. return task.Do(ctx, t1)
  456. }
  457. /*
  458. func (c *Rcvr) ManagementCheckProviderApi(ctx context.Context, req *apis.ManagementCheckProviderApiReq, reply *apis.ManagementCheckProviderApiReply) error {
  459. t1 := func() error {
  460. return user_merchant.ManagementCheckProviderApi(ctx, req, reply)
  461. }
  462. return task.Do(ctx, t1)
  463. }*/
  464. /*
  465. func (c *Rcvr) ManagementThirdpartCountIncrease(ctx context.Context, req *apis.ManagementThirdpartCountIncreaseReq, reply *apis.ManagementThirdpartCountIncreaseReply) error {
  466. t1 := func() error {
  467. return user_merchant.ManagementThirdpartCountIncrease(ctx, req, reply)
  468. }
  469. return task.Do(ctx, t1)
  470. }*/
  471. func (c *Rcvr) ManagementQueryTypeBaseApiList(ctx context.Context, req *apis.ManagementQueryTypeBaseApiListReq, reply *apis.ManagementQueryTypeBaseApiListReply) error {
  472. t1 := func() error {
  473. return data_api.ManagementQueryTypeBaseApiList(ctx, req, reply)
  474. }
  475. return task.Do(ctx, t1)
  476. }
  477. func (c *Rcvr) ManagementDataApiComboList(ctx context.Context, req *apis.ManagementDataApiComboListReq, reply *apis.ManagementDataApiComboListReply) error {
  478. t1 := func() error {
  479. return data_api.ManagementDataApiComboList(ctx, req, reply)
  480. }
  481. return task.Do(ctx, t1)
  482. }
  483. func (c *Rcvr) UpdateMerchantDataApiQouta(ctx context.Context, req *apis.UpdateMerchantDataApiReq, reply *apis.UpdateMerchantDataApiReply) error {
  484. t1 := func() error {
  485. return user_merchant.Update(ctx, req, reply)
  486. }
  487. return task.Do(ctx, t1)
  488. }
  489. func RegisterModel() {
  490. orm.RegisterModel(new(apis.GdBill))
  491. orm.RegisterModel(new(apis.GdBillDetail))
  492. orm.RegisterModel(new(apis.GdConsume))
  493. orm.RegisterModel(new(apis.TGdApi))
  494. orm.RegisterModel(new(apis.TGdErrorCode))
  495. orm.RegisterModel(new(apis.TGdMerchants))
  496. orm.RegisterModel(new(apis.TGdMerchantChildDataApi))
  497. orm.RegisterModel(new(apis.TGdMerchantDataApi))
  498. orm.RegisterModel(new(apis.TGdBankInfo))
  499. orm.RegisterModel(new(apis.TGdDataApiOrder))
  500. orm.RegisterModel(new(apis.TGdUser))
  501. orm.RegisterModel(new(apis.ProviderApi))
  502. orm.RegisterModel(new(apis.ProviderPlatform))
  503. orm.RegisterModel(new(apis.DataApi))
  504. orm.RegisterModel(new(apis.QueryType))
  505. orm.RegisterModel(new(apis.ManagementDataApiBaseApi))
  506. orm.RegisterModel(new(apis.DataCombo))
  507. orm.RegisterModel(new(apis.ManagementApiProviderRelation))
  508. orm.RegisterModel(new(apis.MerchantApiProviderRelation))
  509. orm.RegisterModel(new(apis.ManagementThirdpartCount))
  510. orm.RegisterModel(new(apis.TGdH5ServiceMerchant))
  511. orm.RegisterModel(new(apis.TGdH5ServiceOrder))
  512. orm.RegisterModel(new(apis.TGdH5Api))
  513. orm.RegisterModel(new(apis.TGdH5Service))
  514. orm.RegisterModel(new(apis.TGdH5BaseApiRelation))
  515. orm.RegisterModel(new(apis.TGdH5ServiceApiRelation))
  516. orm.RegisterModel(new(apis.TGdH5ServiceCombo))
  517. orm.RegisterModel(new(apis.TGdH5ServiceAccessCount))
  518. orm.RegisterModel(new(apis.TGdH5ThemeColorItem))
  519. orm.RegisterModel(new(apis.TGdDataApiProviderApiRelation))
  520. orm.RegisterModel(new(apis.TryApi))
  521. orm.RegisterModel(new(apis.TGdDataEditorDb))
  522. orm.RegisterModel(new(apis.TGdDataEditorSearch))
  523. orm.RegisterModel(new(apis.UpdateProviderApiHystrixReq))
  524. }
  525. func (c *Rcvr) ManagementGetSecret(ctx context.Context, req *apis.ManagementGetSecretReq, reply *apis.ManagementGetSecretReply) error {
  526. t1 := func() error {
  527. return provider.ManagementGetSecret(ctx, req, reply)
  528. }
  529. return task.Do(ctx, t1)
  530. }
  531. func (c *Rcvr) ManagementAddMerchantDataApi(ctx context.Context, req *apis.ManagementAddMerchantDataApiReq, reply *apis.ManagementAddMerchantDataApiReply) error {
  532. t1 := func() error {
  533. return user_merchant.ManagementAddMerchantDataApi(ctx, req, reply)
  534. }
  535. return task.Do(ctx, t1)
  536. }
  537. /*
  538. func (c *Rcvr) ManagementCheckCountCode(ctx context.Context, req *apis.ManagementCheckCountCodeReq, reply *apis.ManagementCheckCountCodeReply) error {
  539. t1 := func() error {
  540. return user_merchant.ManagementCheckCountCode(ctx, req, reply)
  541. }
  542. return task.Do(ctx, t1)
  543. }*/
  544. /*
  545. func (c *Rcvr) ManagementH5AddCount(ctx context.Context, req *apis.ManagementH5AddCountReq, reply *apis.ManagementH5AddCountReply) error {
  546. t1 := func() error {
  547. return h5.ManagementH5AddCount(ctx, req, reply)
  548. }
  549. return task.Do(ctx, t1)
  550. }
  551. */
  552. func (c *Rcvr) ManagementAddH5Api(ctx context.Context, req *apis.ManagementAddH5ApiReq, reply *apis.ManagementAddH5ApiReply) error {
  553. t1 := func() error {
  554. return h5.ManagementAddH5Api(ctx, req, reply)
  555. }
  556. return task.Do(ctx, t1)
  557. }
  558. func (c *Rcvr) ManagementH5AuthCheck(ctx context.Context, req *apis.ManagementH5AuthCheckReq, reply *apis.ManagementH5AuthCheckReply) error {
  559. t1 := func() error {
  560. return h5.ManagementH5AuthCheck(ctx, req, reply)
  561. }
  562. return task.Do(ctx, t1)
  563. }
  564. func (c *Rcvr) ManagementDelH5Api(ctx context.Context, req *apis.ManagementDelH5ApiReq, reply *apis.ManagementDelH5ApiReply) error {
  565. t1 := func() error {
  566. return h5.ManagementDelH5Api(ctx, req, reply)
  567. }
  568. return task.Do(ctx, t1)
  569. }
  570. func (c *Rcvr) ManagementUpdateH5Api(ctx context.Context, req *apis.ManagementUpdateH5ApiReq, reply *apis.ManagementUpdateH5ApiReply) error {
  571. t1 := func() error {
  572. return h5.ManagementUpdateH5Api(ctx, req, reply)
  573. }
  574. return task.Do(ctx, t1)
  575. }
  576. func (c *Rcvr) ManagementSetH5ApiState(ctx context.Context, req *apis.ManagementSetH5ApiStateReq, reply *apis.ManagementSetH5ApiStateReply) error {
  577. t1 := func() error {
  578. return h5.ManagementSetH5ApiState(ctx, req, reply)
  579. }
  580. return task.Do(ctx, t1)
  581. }
  582. func (c *Rcvr) ManagementGetH5ApiList(ctx context.Context, req *apis.ManagementGetH5ApiListReq, reply *apis.ManagementGetH5ApiListReply) error {
  583. t1 := func() error {
  584. return h5.ManagementGetH5ApiList(ctx, req, reply)
  585. }
  586. return task.Do(ctx, t1)
  587. }
  588. func (c *Rcvr) ManagementH5ApiAddBaseApi(ctx context.Context, req *apis.ManagementH5ApiAddBaseApiReq, reply *apis.ManagementH5ApiAddBaseApiReply) error {
  589. t1 := func() error {
  590. return h5.ManagementH5ApiAddBaseApi(ctx, req, reply)
  591. }
  592. return task.Do(ctx, t1)
  593. }
  594. func (c *Rcvr) ManagementAddH5Service(ctx context.Context, req *apis.ManagementAddH5ServiceReq, reply *apis.ManagementAddH5ServiceReply) error {
  595. t1 := func() error {
  596. return h5.ManagementAddH5Service(ctx, req, reply)
  597. }
  598. return task.Do(ctx, t1)
  599. }
  600. func (c *Rcvr) ManagementReleaseH5Service(ctx context.Context, req *apis.ManagementReleaseH5ServiceReq, reply *apis.ManagementReleaseH5ServiceReply) error {
  601. t1 := func() error {
  602. return h5.ManagementReleaseH5Service(ctx, req, reply)
  603. }
  604. return task.Do(ctx, t1)
  605. }
  606. func (c *Rcvr) ManagementUpdateH5Service(ctx context.Context, req *apis.ManagementUpdateH5ServiceReq, reply *apis.ManagementUpdateH5ServiceReply) error {
  607. t1 := func() error {
  608. return h5.ManagementUpdateH5Service(ctx, req, reply)
  609. }
  610. return task.Do(ctx, t1)
  611. }
  612. func (c *Rcvr) ManagementDelH5Service(ctx context.Context, req *apis.ManagementDelH5ServiceReq, reply *apis.ManagementDelH5ServiceReply) error {
  613. t1 := func() error {
  614. return h5.ManagementDelH5Service(ctx, req, reply)
  615. }
  616. return task.Do(ctx, t1)
  617. }
  618. func (c *Rcvr) ManagementGetH5ServiceList(ctx context.Context, req *apis.ManagementGetH5ServiceListReq, reply *apis.ManagementGetH5ServiceListReply) error {
  619. t1 := func() error {
  620. return h5.ManagementGetH5ServiceList(ctx, req, reply)
  621. }
  622. return task.Do(ctx, t1)
  623. }
  624. func (c *Rcvr) ManagementH5ServiceAddH5Api(ctx context.Context, req *apis.ManagementH5ServiceAddH5ApiReq, reply *apis.ManagementH5ServiceAddH5ApiReply) error {
  625. t1 := func() error {
  626. return h5.ManagementH5ServiceAddH5Api(ctx, req, reply)
  627. }
  628. return task.Do(ctx, t1)
  629. }
  630. func (c *Rcvr) ManagementH5ServiceGetH5ApiList(ctx context.Context, req *apis.ManagementH5ServiceGetH5ApiListReq, reply *apis.ManagementH5ServiceGetH5ApiListReply) error {
  631. t1 := func() error {
  632. return h5.ManagementH5ServiceGetH5ApiList(ctx, req, reply)
  633. }
  634. return task.Do(ctx, t1)
  635. }
  636. func (c *Rcvr) ManagementH5ServiceAddCombo(ctx context.Context, req *apis.ManagementH5ServiceAddComboReq, reply *apis.ManagementH5ServiceAddComboReply) error {
  637. t1 := func() error {
  638. return h5.ManagementH5ServiceAddCombo(ctx, req, reply)
  639. }
  640. return task.Do(ctx, t1)
  641. }
  642. func (c *Rcvr) ManagementH5ServiceUpdateCombo(ctx context.Context, req *apis.ManagementH5ServiceUpdateComboReq, reply *apis.ManagementH5ServiceUpdateComboReply) error {
  643. t1 := func() error {
  644. return h5.ManagementH5ServiceUpdateCombo(ctx, req, reply)
  645. }
  646. return task.Do(ctx, t1)
  647. }
  648. func (c *Rcvr) ManagementH5ServiceGetComboList(ctx context.Context, req *apis.ManagementH5ServiceGetComboListReq, reply *apis.ManagementH5ServiceGetComboListReply) error {
  649. t1 := func() error {
  650. return h5.ManagementH5ServiceGetComboList(ctx, req, reply)
  651. }
  652. return task.Do(ctx, t1)
  653. }
  654. func (c *Rcvr) ManagementH5ServiceDelCombo(ctx context.Context, req *apis.ManagementH5ServiceDelComboReq, reply *apis.ManagementH5ServiceDelComboReply) error {
  655. t1 := func() error {
  656. return h5.ManagementH5ServiceDelCombo(ctx, req, reply)
  657. }
  658. return task.Do(ctx, t1)
  659. }
  660. func (c *Rcvr) ManagementH5ServiceSetComboFree(ctx context.Context, req *apis.ManagementH5ServiceSetComboFreeReq, reply *apis.ManagementH5ServiceSetComboFreeReply) error {
  661. t1 := func() error {
  662. return h5.ManagementH5ServiceSetComboFree(ctx, req, reply)
  663. }
  664. return task.Do(ctx, t1)
  665. }
  666. func (c *Rcvr) ManagementAddMerchantH5Service(ctx context.Context, req *apis.ManagementAddMerchantH5ServiceReq, reply *apis.ManagementAddMerchantH5ServiceReply) error {
  667. t1 := func() error {
  668. return user_merchant.ManagementAddMerchantH5Service(ctx, req, reply)
  669. }
  670. return task.Do(ctx, t1)
  671. }
  672. func (c *Rcvr) ManagementGetMerchantH5Service(ctx context.Context, req *apis.ManagementGetMerchantH5ServiceReq, reply *apis.ManagementGetMerchantH5ServiceReply) error {
  673. t1 := func() error {
  674. return user_merchant.ManagementGetMerchantH5Service(ctx, req, reply)
  675. }
  676. return task.Do(ctx, t1)
  677. }
  678. func (c *Rcvr) ManagementGetMerchantH5Combo(ctx context.Context, req *apis.ManagementGetMerchantH5ComboReq, reply *apis.ManagementGetMerchantH5ComboReply) error {
  679. t1 := func() error {
  680. return user_merchant.ManagementGetMerchantH5Combo(ctx, req, reply)
  681. }
  682. return task.Do(ctx, t1)
  683. }
  684. func (c *Rcvr) ManagementSetMerchantH5Combo(ctx context.Context, req *apis.ManagementSetMerchantH5ComboReq, reply *apis.ManagementSetMerchantH5ComboReply) error {
  685. t1 := func() error {
  686. return user_merchant.ManagementSetMerchantH5Combo(ctx, req, reply)
  687. }
  688. return task.Do(ctx, t1)
  689. }
  690. func (c *Rcvr) ManagementH5ApiGetBaseApiList(ctx context.Context, req *apis.ManagementH5ApiGetBaseApiListReq, reply *apis.ManagementH5ApiGetBaseApiListReply) error {
  691. t1 := func() error {
  692. return h5.ManagementH5ApiGetBaseApiList(ctx, req, reply)
  693. }
  694. return task.Do(ctx, t1)
  695. }
  696. func (c *Rcvr) ManagementGetUserMerchantName(ctx context.Context, req *apis.ManagementGetUserMerchantNameReq, reply *apis.ManagementGetUserMerchantNameReply) error {
  697. t1 := func() error {
  698. return user_merchant.ManagementGetUserMerchantName(ctx, req, reply)
  699. }
  700. return task.Do(ctx, t1)
  701. }
  702. func (c *Rcvr) ManagementGetBaseApiId(ctx context.Context, req *apis.ManagementGetBaseApiIdReq, reply *apis.ManagementGetBaseApiIdReply) error {
  703. t1 := func() error {
  704. return base_api.ManagementGetBaseApiId(ctx, req, reply)
  705. }
  706. return task.Do(ctx, t1)
  707. }
  708. func (c *Rcvr) ManagementAddH5ThemeColor(ctx context.Context, req *apis.ManagementAddH5ThemeColorReq, reply *apis.ManagementAddH5ThemeColorReply) error {
  709. t1 := func() error {
  710. return h5.ManagementAddH5ThemeColor(ctx, req, reply)
  711. }
  712. return task.Do(ctx, t1)
  713. }
  714. func (c *Rcvr) ManagementDelH5ThemeColor(ctx context.Context, req *apis.ManagementDelH5ThemeColorReq, reply *apis.ManagementDelH5ThemeColorReply) error {
  715. t1 := func() error {
  716. return h5.ManagementDelH5ThemeColor(ctx, req, reply)
  717. }
  718. return task.Do(ctx, t1)
  719. }
  720. func (c *Rcvr) ManagementUpdateH5ThemeColor(ctx context.Context, req *apis.ManagementUpdateH5ThemeColorReq, reply *apis.ManagementUpdateH5ThemeColorReply) error {
  721. t1 := func() error {
  722. return h5.ManagementUpdateH5ThemeColor(ctx, req, reply)
  723. }
  724. return task.Do(ctx, t1)
  725. }
  726. func (c *Rcvr) ManagementGetH5ThemeColorList(ctx context.Context, req *apis.ManagementGetH5ThemeColorListReq, reply *apis.ManagementGetH5ThemeColorListReply) error {
  727. t1 := func() error {
  728. return h5.ManagementGetH5ThemeColorList(ctx, req, reply)
  729. }
  730. return task.Do(ctx, t1)
  731. }
  732. /*
  733. func (r *Rcvr) MangementGetH5OrderInfo(ctx context.Context, req *apis.MangementGetH5OrderInfoReq, reply *apis.MangementGetH5OrderInfoReply) error {
  734. t1 := func() error {
  735. return user_merchant.MangementGetH5OrderInfo(ctx, req, reply)
  736. }
  737. return task.Do(ctx, t1)
  738. }
  739. */
  740. func (r *Rcvr) MangementGetApiOrderInfo(ctx context.Context, req *apis.MangementGetApiOrderInfoReq, reply *apis.MangementGetApiOrderInfoReply) error {
  741. t1 := func() error {
  742. return user_merchant.MangementGetApiOrderInfo(ctx, req, reply)
  743. }
  744. return task.Do(ctx, t1)
  745. }
  746. // order
  747. func (r *Rcvr) ManagementCreateDataApiOrder(ctx context.Context, req *apis.ManagementCreateDataApiOrderReq, reply *apis.ManagementCreateDataApiOrderReply) error {
  748. t1 := func() error {
  749. return order.ManagementCreateDataApiOrder(ctx, req, reply)
  750. }
  751. return task.Do(ctx, t1)
  752. }
  753. func (r *Rcvr) ManagementCancelDataApiOrder(ctx context.Context, req *apis.ManagementCancelDataApiOrderReq, reply *apis.ManagementCancelDataApiOrderReply) error {
  754. t1 := func() error {
  755. return order.ManagementCancelDataApiOrder(ctx, req, reply)
  756. }
  757. return task.Do(ctx, t1)
  758. }
  759. func (r *Rcvr) ManagementChangeDataApiOrderPrice(ctx context.Context, req *apis.ManagementChangeDataApiOrderPriceReq, reply *apis.ManagementChangeDataApiOrderPriceReply) error {
  760. t1 := func() error {
  761. return order.ManagementChangeDataApiOrderPrice(ctx, req, reply)
  762. }
  763. return task.Do(ctx, t1)
  764. }
  765. func (r *Rcvr) MangementGetDataApiOrderInfo(ctx context.Context, req *apis.MangementGetDataApiOrderInfoReq, reply *apis.MangementGetDataApiOrderInfoReply) error {
  766. t1 := func() error {
  767. return order.MangementGetDataApiOrderInfo(ctx, req, reply)
  768. }
  769. return task.Do(ctx, t1)
  770. }
  771. func (r *Rcvr) ManagementGetDataApiOrderList(ctx context.Context, req *apis.ManagementGetDataApiOrderListReq, reply *apis.ManagementGetDataApiOrderListReply) error {
  772. t1 := func() error {
  773. return order.ManagementGetDataApiOrderList(ctx, req, reply)
  774. }
  775. return task.Do(ctx, t1)
  776. }
  777. func (r *Rcvr) ManagementPayDataApiOrder(ctx context.Context, req *apis.ManagementPayDataApiOrderReq, reply *apis.ManagementPayDataApiOrderReply) error {
  778. t1 := func() error {
  779. return order.ManagementPayDataApiOrder(ctx, req, reply)
  780. }
  781. return task.Do(ctx, t1)
  782. }
  783. func (r *Rcvr) ManagementCreateH5Order(ctx context.Context, req *apis.ManagementCreateH5OrderReq, reply *apis.ManagementCreateH5OrderReply) error {
  784. t1 := func() error {
  785. return order.ManagementCreateH5Order(ctx, req, reply)
  786. }
  787. return task.Do(ctx, t1)
  788. }
  789. func (r *Rcvr) ManagementCancelH5Order(ctx context.Context, req *apis.ManagementCancelH5OrderReq, reply *apis.ManagementCancelH5OrderReply) error {
  790. t1 := func() error {
  791. return order.ManagementCancelH5Order(ctx, req, reply)
  792. }
  793. return task.Do(ctx, t1)
  794. }
  795. func (r *Rcvr) ManagementChangeH5OrderPrice(ctx context.Context, req *apis.ManagementChangeH5OrderPriceReq, reply *apis.ManagementChangeH5OrderPriceReply) error {
  796. t1 := func() error {
  797. return order.ManagementChangeH5OrderPrice(ctx, req, reply)
  798. }
  799. return task.Do(ctx, t1)
  800. }
  801. func (r *Rcvr) MangementGetH5OrderInfo(ctx context.Context, req *apis.MangementGetH5OrderInfoReq, reply *apis.MangementGetH5OrderInfoReply) error {
  802. t1 := func() error {
  803. return order.MangementGetH5OrderInfo(ctx, req, reply)
  804. }
  805. return task.Do(ctx, t1)
  806. }
  807. func (r *Rcvr) ManagementGetH5OrderList(ctx context.Context, req *apis.ManagementGetH5OrderListReq, reply *apis.ManagementGetH5OrderListReply) error {
  808. t1 := func() error {
  809. return order.ManagementGetH5OrderList(ctx, req, reply)
  810. }
  811. return task.Do(ctx, t1)
  812. }
  813. func (r *Rcvr) ManagementPayH5Order(ctx context.Context, req *apis.ManagementPayH5OrderReq, reply *apis.ManagementPayH5OrderReply) error {
  814. t1 := func() error {
  815. return order.ManagementPayH5Order(ctx, req, reply)
  816. }
  817. return task.Do(ctx, t1)
  818. }
  819. func (r *Rcvr) ManagementAddMerchantDataApiNew(ctx context.Context, req *apis.ManagementCreateDataApiOrderReq, reply *apis.ManagementCreateDataApiOrderReply) error {
  820. t1 := func() error {
  821. return order.ManagementAddMerchantDataApi(ctx, req, reply)
  822. }
  823. return task.Do(ctx, t1)
  824. }
  825. func (r *Rcvr) ManagementAddMerchantH5ServiceNew(ctx context.Context, req *apis.ManagementCreateH5OrderReq, reply *apis.ManagementCreateH5OrderReply) error {
  826. t1 := func() error {
  827. return order.ManagementAddMerchantH5Service(ctx, req, reply)
  828. }
  829. return task.Do(ctx, t1)
  830. }
  831. /*func (r *Rcvr) ManagementGetProviderApiLimitCount(ctx context.Context, req *apis.ManagementGetProviderApiLimitCountReq, reply *apis.ManagementGetProviderApiLimitCountReply) error {
  832. t1 := func() error {
  833. return provider.ManagementGetProviderApiLimitCount(ctx, req, reply)
  834. }
  835. return task.Do(ctx, t1)
  836. }
  837. */
  838. func (r *Rcvr) ManagementGetUserMerchantListNew(ctx context.Context, req *apis.ManagementGetUserMerchantListNewReq, reply *apis.ManagementGetUserMerchantListNewReply) error {
  839. t1 := func() error {
  840. return user_merchant.ManagementGetUserMerchantListNew(ctx, req, reply)
  841. }
  842. return task.Do(ctx, t1)
  843. }
  844. func (r *Rcvr) ManagementGetUserMerchantAuthList(ctx context.Context, req *apis.ManagementGetUserMerchantAuthListNewReq, reply *apis.ManagementGetUserMerchantAuthListNewReply) error {
  845. t1 := func() error {
  846. return user_merchant.ManagementGetUserMerchantAuthList(ctx, req, reply)
  847. }
  848. return task.Do(ctx, t1)
  849. }
  850. func (r *Rcvr) ManagementTryBaseApi(ctx context.Context, req *apis.ManagementTryBaseApiReq, reply *apis.ManagementTryBaseApiReply) error {
  851. t1 := func() error {
  852. return base_api.ManagementTryBaseApi(ctx, req, reply)
  853. }
  854. return task.Do(ctx, t1)
  855. }
  856. func (r *Rcvr) ManagementGetBaseApiByRouter(ctx context.Context, req *apis.ManagementGetBaseApiByRouterReq, reply *apis.ManagementGetBaseApiByRouterReply) error {
  857. t1 := func() error {
  858. return base_api.ManagementGetBaseApiByRouter(ctx, req, reply)
  859. }
  860. return task.Do(ctx, t1)
  861. }
  862. func (r *Rcvr) ManagementBatchTryApi(ctx context.Context, req *apis.ManagementBatchTryApiReq, reply *apis.ManagementBatchTryApiReply) error {
  863. t1 := func() error {
  864. return base_api.ManagementBatchTryApi(ctx, req, reply)
  865. }
  866. return task.Do(ctx, t1)
  867. }
  868. func (r *Rcvr) ManagementCreateTryApiTask(ctx context.Context, req *apis.ManagementCreateTryApiTaskReq, reply *apis.ManagementCreateTryApiTaskReply) error {
  869. t1 := func() error {
  870. return base_api.ManagementCreateTryApiTask(ctx, req, reply)
  871. }
  872. return task.Do(ctx, t1)
  873. }
  874. func (r *Rcvr) ManagementUpdateTryApiTask(ctx context.Context, req *apis.ManagementUpdateTryApiTaskReq, reply *apis.ManagementUpdateTryApiTaskReply) error {
  875. t1 := func() error {
  876. return base_api.ManagementUpdateTryApiTask(ctx, req, reply)
  877. }
  878. return task.Do(ctx, t1)
  879. }
  880. func (r *Rcvr) ManagementDeleteTryApiTask(ctx context.Context, req *apis.ManagementDeleteTryApiTaskReq, reply *apis.ManagementDeleteTryApiTaskReply) error {
  881. t1 := func() error {
  882. return base_api.ManagementDeleteTryApiTask(ctx, req, reply)
  883. }
  884. return task.Do(ctx, t1)
  885. }
  886. func (r *Rcvr) ManagementGetTryApiTaskList(ctx context.Context, req *apis.ManagementGetTryApiTaskListReq, reply *apis.ManagementGetTryApiTaskListReply) error {
  887. t1 := func() error {
  888. return base_api.ManagementGetTryApiTaskList(ctx, req, reply)
  889. }
  890. return task.Do(ctx, t1)
  891. }
  892. func (r *Rcvr) ProviderBatchRequest(ctx context.Context, req *apis.ProviderBatchRequestReq, reply *apis.ProviderBatchRequestReply) error {
  893. t1 := func() error {
  894. return try_api.ProviderBatchRequest(ctx, req, reply)
  895. }
  896. return task.Do(ctx, t1)
  897. }
  898. func (r *Rcvr) TryApiTaskAdd(ctx context.Context, req *apis.TryApiTaskAddReq, reply *apis.TryApiTaskAddReply) error {
  899. t1 := func() error {
  900. return try_api.TryApiTaskAdd(ctx, req, reply)
  901. }
  902. return task.Do(ctx, t1)
  903. }
  904. func (r *Rcvr) TryApiTaskUpdate(ctx context.Context, req *apis.TryApiTaskUpdateReq, reply *apis.TryApiTaskUpdateReply) error {
  905. t1 := func() error {
  906. return try_api.TryApiTaskUpdate(ctx, req, reply)
  907. }
  908. return task.Do(ctx, t1)
  909. }
  910. func (r *Rcvr) GetTryApiTaskList(ctx context.Context, req *apis.GetTryApiTaskListReq, reply *apis.GetTryApiTaskListReply) error {
  911. t1 := func() error {
  912. return try_api.GetTryApiTaskList(ctx, req, reply)
  913. }
  914. return task.Do(ctx, t1)
  915. }
  916. func (r *Rcvr) ManagementConvertMerchantDataApi(ctx context.Context, req *apis.ManagementConvertMerchantDataApiReq, reply *apis.ManagementConvertMerchantDataApiReply) error {
  917. t1 := func() error {
  918. return user_merchant.ManagementConvertMerchantDataApi(ctx, req, reply)
  919. }
  920. return task.Do(ctx, t1)
  921. }
  922. func (r *Rcvr) ManagementSetBaseApiThreshold(ctx context.Context, req *apis.ManagementSetBaseApiThresholdReq, reply *apis.ManagementSetBaseApiThresholdReply) error {
  923. t1 := func() error {
  924. return base_api.ManagementSetBaseApiThreshold(ctx, req, reply)
  925. }
  926. return task.Do(ctx, t1)
  927. }
  928. func (r *Rcvr) ManagementSetProviderThreshold(ctx context.Context, req *apis.ManagementSetProviderThresholdReq, reply *apis.ManagementSetProviderThresholdReply) error {
  929. t1 := func() error {
  930. return provider.ManagementSetProviderThreshold(ctx, req, reply)
  931. }
  932. return task.Do(ctx, t1)
  933. }
  934. func (r *Rcvr) ManagementDelMerchantDataApi(ctx context.Context, req *apis.ManagementDelMerchantDataApiReq, reply *apis.ManagementDelMerchantDataApiReply) error {
  935. t1 := func() error {
  936. return user_merchant.ManagementDelMerchantDataApi(ctx, req, reply)
  937. }
  938. return task.Do(ctx, t1)
  939. }
  940. func (r *Rcvr) ManagementGetMerchantBaseApiListAll(ctx context.Context, req *apis.ManagementGetMerchantBaseApiListAllReq, reply *apis.ManagementGetMerchantBaseApiListAllReply) error {
  941. t1 := func() error {
  942. return user_merchant.ManagementGetMerchantBaseApiListAll(ctx, req, reply)
  943. }
  944. return task.Do(ctx, t1)
  945. }
  946. func (r *Rcvr) GetMerchantInfo(ctx context.Context, req *apis.GetMerchantInfoReq, reply *apis.GetMerchantInfoReply) error {
  947. t1 := func() error {
  948. return user_merchant.Info(ctx, req, reply)
  949. }
  950. return task.Do(ctx, t1)
  951. }
  952. func (r *Rcvr) MerchantAppLogin(ctx context.Context, req *apis.MerchantAppLoginReq, reply *apis.MerchantAppLoginReply) error {
  953. t1 := func() error {
  954. return user_merchant.MerchantAppLogin(ctx, req, reply)
  955. }
  956. return task.Do(ctx, t1)
  957. }
  958. func (r *Rcvr) GetMerchantDataApiQuota(ctx context.Context, req *apis.GetMerchantDataApiQuotaReq, reply *apis.GetMerchantDataApiQuotaReply) error {
  959. t1 := func() error {
  960. return user_merchant.GetMerchantDataApiQuota(ctx, req, reply)
  961. }
  962. return task.Do(ctx, t1)
  963. }
  964. func (r *Rcvr) GetDataApiInfo(ctx context.Context, req *apis.GetApiInfoReq, reply *apis.GetApiInfoReply) error {
  965. t1 := func() error {
  966. return data_api.GetApiInfo(ctx, req, reply)
  967. }
  968. return task.Do(ctx, t1)
  969. }
  970. //总次数套餐设置每天调用上限
  971. func (c *Rcvr) ManagementSetDayCountLimit(ctx context.Context, req *apis.ManagementSetDayCountLimitReq, reply *apis.ManagementSetDayCountLimitReply) error {
  972. t1 := func() error {
  973. return user_merchant.ManagementSetDayCountLimit(ctx, req, reply)
  974. }
  975. return task.Do(ctx, t1)
  976. }
  977. func (r *Rcvr) ManagementSetBaseApiShowInfo(ctx context.Context, req *apis.ManagementSetBaseApiShowInfoReq, reply *apis.ManagementSetBaseApiShowInfoReply) error {
  978. t1 := func() error {
  979. return base_api.ManagementSetBaseApiShowInfo(ctx, req, reply)
  980. }
  981. return task.Do(ctx, t1)
  982. }
  983. func (r *Rcvr) ManagementGetProviderApiLimitCount(ctx context.Context, req *apis.ManagementGetProviderApiLimitCountReq, reply *apis.ManagementGetProviderApiLimitCountReply) error {
  984. t1 := func() error {
  985. return management.ManagementGetProviderApiLimitCount(ctx, req, reply)
  986. }
  987. return task.Do(ctx, t1)
  988. }
  989. func (c *Rcvr) ManagementGetName(ctx context.Context, req *apis.ManagementGetNameReq, reply *apis.ManagementGetNameReply) error {
  990. t1 := func() error {
  991. return management.ManagementGetName(ctx, req, reply)
  992. }
  993. return task.Do(ctx, t1)
  994. }
  995. func (c *Rcvr) GetApiThreshold(ctx context.Context, req *apis.GetApiThresholdReq, reply *apis.GetApiThresholdReply) error {
  996. t1 := func() error {
  997. return management.GetApiThreshold(ctx, req, reply)
  998. }
  999. return task.Do(ctx, t1)
  1000. }
  1001. // 获取商户计数码
  1002. func (c *Rcvr) MangementGetUserMerchantCountCode(ctx context.Context, req *apis.MangementGetUserMerchantCountCodeReq, reply *apis.MangementGetUserMerchantCountCodeReply) error {
  1003. t1 := func() error {
  1004. return management.MangementGetUserMerchantCountCode(ctx, req, reply)
  1005. }
  1006. return task.Do(ctx, t1)
  1007. }
  1008. // 获取商户id和名称列表
  1009. func (c *Rcvr) ManagementGetMerchantIds(ctx context.Context, req *apis.ManagementGetMerchantIdsReq, reply *apis.ManagementGetMerchantIdsReply) error {
  1010. t1 := func() error {
  1011. return management.ManagementGetMerchantIds(ctx, req, reply)
  1012. }
  1013. return task.Do(ctx, t1)
  1014. }
  1015. func (c *Rcvr) ManagementGetMerchantApiId(ctx context.Context, req *apis.ManagementGetMerchantApiIdReq, reply *apis.ManagementGetMerchantApiIdReply) error {
  1016. t1 := func() error {
  1017. return management.ManagementGetMerchantApiId(ctx, req, reply)
  1018. }
  1019. return task.Do(ctx, t1)
  1020. }
  1021. func (c *Rcvr) ManagementGetProviderCountInfo(ctx context.Context, req *apis.ManagementGetProviderCountInfoReq, reply *apis.ManagementGetProviderCountInfoReply) error {
  1022. t1 := func() error {
  1023. return management.ManagementGetProviderCountInfo(ctx, req, reply)
  1024. }
  1025. return task.Do(ctx, t1)
  1026. }
  1027. func (c *Rcvr) ManagementGetProviderIds(ctx context.Context, req *apis.ManagementGetProviderIdsReq, reply *apis.ManagementGetProviderIdsReply) error {
  1028. t1 := func() error {
  1029. return management.ManagementGetProviderIds(ctx, req, reply)
  1030. }
  1031. return task.Do(ctx, t1)
  1032. }
  1033. func (c *Rcvr) ManagementGetApiShowInfo(ctx context.Context, req *apis.ManagementGetApiShowInfoReq, reply *apis.ManagementGetApiShowInfoReply) error {
  1034. t1 := func() error {
  1035. return management.ManagementGetApiShowInfo(ctx, req, reply)
  1036. }
  1037. return task.Do(ctx, t1)
  1038. }
  1039. func (c *Rcvr) ManagementGetMerchantApiTimeout(ctx context.Context, req *apis.ManagementGetMerchantApiTimeoutReq, reply *apis.ManagementGetMerchantApiTimeoutReply) error {
  1040. t1 := func() error {
  1041. return management.ManagementGetMerchantApiTimeout(ctx, req, reply)
  1042. }
  1043. return task.Do(ctx, t1)
  1044. }
  1045. func (c *Rcvr) ManagementGetProviderMerchantApiList(ctx context.Context, req *apis.ManagementGetProviderMerchantApiListReq, reply *apis.ManagementGetProviderMerchantApiListReply) error {
  1046. t1 := func() error {
  1047. return provider.ManagementGetProviderMerchantApiList(ctx, req, reply)
  1048. }
  1049. return task.Do(ctx, t1)
  1050. }
  1051. func (c *Rcvr) ManagementDelProviderOldCount(ctx context.Context, req *apis.ManagementDelProviderOldCountReq, reply *apis.ManagementDelProviderOldCountReply) error {
  1052. t1 := func() error {
  1053. return provider.ManagementDelProviderOldCount(ctx, req, reply)
  1054. }
  1055. return task.Do(ctx, t1)
  1056. }
  1057. func (c *Rcvr) ManagementGetApiTask(ctx context.Context, req *apis.ManagementGetApiTaskReq, reply *apis.ManagementGetApiTaskReply) error {
  1058. t1 := func() error {
  1059. return base_api.ManagementGetApiTask(ctx, req, reply)
  1060. }
  1061. return task.Do(ctx, t1)
  1062. }
  1063. func (c *Rcvr) ManagementGetFilterRule(ctx context.Context, req *apis.ManagementGetFilterRuleReq, reply *apis.ManagementGetFilterRuleReply) error {
  1064. t1 := func() error {
  1065. return data_api.ManagementGetFilterRule(ctx, req, reply)
  1066. }
  1067. return task.Do(ctx, t1)
  1068. }
  1069. func (c *Rcvr) GetProviderApiHystrix(ctx context.Context, req *apis.GetProviderApiHystrixReq, reply *apis.GetProviderApiHystrixReply) error {
  1070. t1 := func() error {
  1071. return provider.GetHystrix(ctx, req, reply)
  1072. }
  1073. return task.Do(ctx, t1)
  1074. }
  1075. func (c *Rcvr) UpdateProviderApiHystrix(ctx context.Context, req *apis.UpdateProviderApiHystrixReq, reply *apis.UpdateProviderApiHystrixReply) error {
  1076. t1 := func() error {
  1077. return provider.UpdateHystrix(ctx, req, reply)
  1078. }
  1079. return task.Do(ctx, t1)
  1080. }
  1081. func (c *Rcvr) UpdateMerchantDataApiAlias(ctx context.Context, req *apis.ModifyAliasReq, reply *apis.ModifyAliasReply) error {
  1082. t1 := func() error {
  1083. return user_merchant.ModifyAlias(ctx, req, reply)
  1084. }
  1085. return task.Do(ctx, t1)
  1086. }
  1087. func (c *Rcvr) GenerateBill(ctx context.Context, req *apis.GenerateBillReq, reply *apis.GenerateBillReply) error {
  1088. t1 := func() error {
  1089. return accounting.GenerateBill(ctx, req, reply)
  1090. }
  1091. return task.Do(ctx, t1)
  1092. }
  1093. func (c *Rcvr) BillList(ctx context.Context, req *apis.BillListReq, reply *apis.BillListReply) error {
  1094. t1 := func() error {
  1095. return accounting.BillList(ctx, req, reply)
  1096. }
  1097. return task.Do(ctx, t1)
  1098. }
  1099. func (c *Rcvr) ChargeList(ctx context.Context, req *apis.ChargeListReq, reply *apis.ChargeListReply) error {
  1100. t1 := func() error {
  1101. return accounting.ChargeList(ctx, req, reply)
  1102. }
  1103. return task.Do(ctx, t1)
  1104. }
  1105. func (c *Rcvr) ConsumeList(ctx context.Context, req *apis.ConsumeListReq, reply *apis.ConsumeListReply) error {
  1106. t1 := func() error {
  1107. return accounting.ConsumeList(ctx, req, reply)
  1108. }
  1109. return task.Do(ctx, t1)
  1110. }
  1111. func (c *Rcvr) ConsumeTrendList(ctx context.Context, req *apis.ConsumeTrendListReq, reply *apis.ConsumeTrendListReply) error {
  1112. t1 := func() error {
  1113. return accounting.ConsumeTrendList(ctx, req, reply)
  1114. }
  1115. return task.Do(ctx, t1)
  1116. }
  1117. func (c *Rcvr) MerchantCharge(ctx context.Context, req *apis.MerchantChargeReq, reply *apis.MerchantChargeReply) error {
  1118. t1 := func() error {
  1119. return accounting.MerchantCharge(ctx, req, reply)
  1120. }
  1121. return task.Do(ctx, t1)
  1122. }
  1123. func (c *Rcvr) MerchantDataApiPriceList(ctx context.Context, req *apis.MerchantDataApiPriceListReq, reply *apis.MerchantDataApiPriceListReply) error {
  1124. t1 := func() error {
  1125. return accounting.MerchantDataApiPriceList(ctx, req, reply)
  1126. }
  1127. return task.Do(ctx, t1)
  1128. }
  1129. func (c *Rcvr) MerchantPriceList(ctx context.Context, req *apis.MerchantPriceListReq, reply *apis.MerchantPriceListReply) error {
  1130. t1 := func() error {
  1131. return accounting.MerchantPriceList(ctx, req, reply)
  1132. }
  1133. return task.Do(ctx, t1)
  1134. }
  1135. func (c *Rcvr) SetMerchantDataApiPrice(ctx context.Context, req *apis.SetMerchantDataApiPriceReq, reply *apis.SetMerchantDataApiPriceReply) error {
  1136. t1 := func() error {
  1137. return accounting.SetMerchantDataApiPrice(ctx, req, reply)
  1138. }
  1139. return task.Do(ctx, t1)
  1140. }
  1141. func (c *Rcvr) SetMerchantType(ctx context.Context, req *apis.SetMerchantTypeReq, reply *apis.SetMerchantTypeReply) error {
  1142. t1 := func() error {
  1143. return accounting.SetMerchantType(ctx, req, reply)
  1144. }
  1145. return task.Do(ctx, t1)
  1146. }
  1147. func (c *Rcvr) BillDetailList(ctx context.Context, req *apis.BillDetailListReq, reply *apis.BillDetailListReply) error {
  1148. t1 := func() error {
  1149. return accounting.BillDetailList(ctx, req, reply)
  1150. }
  1151. return task.Do(ctx, t1)
  1152. }
  1153. func (c *Rcvr) BillExportExcel(ctx context.Context, req *apis.BillExportExcelReq, reply *apis.BillExportExcelReply) error {
  1154. t1 := func() error {
  1155. return accounting.BillExportExcel(ctx, req, reply)
  1156. }
  1157. return task.Do(ctx, t1)
  1158. }
  1159. func (c *Rcvr) UpdateBillDetail(ctx context.Context, req *apis.UpdateBillDetailReq, reply *apis.UpdateBillDetailReply) error {
  1160. t1 := func() error {
  1161. return accounting.UpdateBillDetail(ctx, req, reply)
  1162. }
  1163. return task.Do(ctx, t1)
  1164. }
  1165. func (c *Rcvr) BillRemark(ctx context.Context, req *apis.BillRemarkReq, reply *apis.BillRemarkReply) error {
  1166. t1 := func() error {
  1167. return accounting.BillRemark(ctx, req, reply)
  1168. }
  1169. return task.Do(ctx, t1)
  1170. }
  1171. func (c *Rcvr) BillNotify(ctx context.Context, req *apis.BillNotifyReq, reply *apis.BillNotifyReply) error {
  1172. t1 := func() error {
  1173. return accounting.BillNotify(ctx, req, reply)
  1174. }
  1175. return task.Do(ctx, t1)
  1176. }
  1177. func (c *Rcvr) BillConfirm(ctx context.Context, req *apis.BillConfirmReq, reply *apis.BillConfirmReply) error {
  1178. t1 := func() error {
  1179. return accounting.BillConfirm(ctx, req, reply)
  1180. }
  1181. return task.Do(ctx, t1)
  1182. }
  1183. func CleanLocalCache() {
  1184. t := time.NewTicker(5 * time.Minute)
  1185. for {
  1186. select {
  1187. case <-t.C:
  1188. LoadRedis()
  1189. }
  1190. }
  1191. }
  1192. func LoadRedis() {
  1193. o := orm.NewOrm()
  1194. apiTabs := []apis.TGdApi{}
  1195. merchantTabs := []apis.TGdMerchants{}
  1196. o.QueryTable("t_gd_api").All(&apiTabs)
  1197. o.QueryTable("t_gd_merchants").All(&merchantTabs)
  1198. for _, v := range apiTabs {
  1199. tmp := v
  1200. utils.RedisSet("t_gd_api", v.Method+"-"+v.Router, tmp)
  1201. }
  1202. for _, v := range merchantTabs {
  1203. tmp := v
  1204. utils.RedisSet("t_gd_merchants", v.AppKey, tmp)
  1205. }
  1206. }
  1207. func InitProviderRelation() {
  1208. data_api.InitProviderRelation()
  1209. }