buff_http.proto 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. package com.backfire.protoMethod;
  2. option java_package = "com.backfire.protoMethod";
  3. option java_outer_classname = "buff_http";
  4. //是否需要升级请求 UpgradeRequest = "101"
  5. message UpgradeRequest
  6. {
  7. required uint32 appId = 1; //渠道号
  8. required string ver = 2; //版本号
  9. }
  10. //升级请求返回 UpgradeReply
  11. message UpgradeReply
  12. {
  13. required uint32 ret = 1; //是否需要升级1:需要升级 2不需要升级 3强制升级
  14. optional uint32 retCode = 2; // 1:错误码
  15. optional string retMsg = 3; // 升级提示语
  16. optional string downUrl = 4; //下载地址
  17. }
  18. //登陆请求 LoginRequest ="102"
  19. message LoginRequest
  20. {
  21. required uint32 appId = 1; //渠道号
  22. required string ver = 2; //版本号
  23. optional string genSn = 3; //唯一识别ID
  24. optional string phoneSn = 4; //IMEI
  25. optional string open_id = 5; //第三方唯一识别ID
  26. optional string token = 6; //第三方访问token
  27. optional string android_id = 7;
  28. optional string mac_id = 8;
  29. optional string bluetooth_id = 9;
  30. optional string someStr4 = 10;
  31. }
  32. //用户信息返回 LoginReply
  33. message LoginReply
  34. {
  35. required uint32 ret = 1; //是否登陆成功 1:成功 2 失败
  36. optional uint32 retCode = 2; // 失败原因
  37. optional string retMsg = 3; // 失败原因提示语
  38. optional uint64 uid = 4; //用户唯一识别ID
  39. optional string session = 5; //用户session
  40. optional string uname = 6; //用户绑定邮箱
  41. optional string nick = 7; //用户呢称
  42. optional uint32 sex = 8; //用户性别
  43. optional string address = 9; //用户地址
  44. optional string icon = 10; //用户图像地址
  45. optional Experience exp = 11;
  46. optional Money money = 12;
  47. optional Tip tip = 13;
  48. optional Other other = 14; //用户其他信息
  49. }
  50. Message Experience
  51. {
  52. optional uint32 level = 1; //用户等级
  53. optional uint32 exp = 2; //用户经验
  54. optional uint64 winCount = 3; //用户胜场
  55. optional string title = 4; //用户称谓
  56. }
  57. message Money
  58. {
  59. optional uint64 money = 1; //用户筹码
  60. optional uint64 gold = 2; //用户元宝
  61. optional uint32 vip = 3; //VIP等级
  62. optional uint64 viptime = 4; //VIP剩余天数
  63. }
  64. message Tip
  65. {
  66. optional uint32 tipFree = 1; //提示功能是否免费使用
  67. optional uint32 tipCount = 2; //提示功能可使用次数
  68. }
  69. message Other
  70. {
  71. optional string signature = 2; //用户签名
  72. //repeated Gift gifts = 4; //持有礼物 另起接口
  73. }
  74. message Gift
  75. {
  76. optional uint32 id = 1; //礼物ID
  77. optional string name = 2; //礼物名称
  78. optional string icon = 3; //礼物图片地址
  79. optional uint32 count = 4; //礼物数量
  80. }
  81. //请求获取一些辅助信息,比如登陆奖励、在线人数等 AssistMessageRequest = "103"
  82. message AssistMessageRequest
  83. {
  84. required uint64 uid = 1; //用户唯一识别ID
  85. required string session = 2; //用户session
  86. }
  87. message PayTip
  88. {
  89. optional uint32 id =1;
  90. optional string content =2;
  91. }
  92. //辅助信息返回,比如登陆奖励、在线人数等 AssistMessageReply
  93. message AssistMessageReply
  94. {
  95. required uint32 ret = 1; //是否返回辅助信息成功 1:成功 2 失败
  96. optional uint32 retCode = 2; // 失败原因
  97. optional string retMsg = 3; // 失败原因提示语
  98. repeated NotifyMsg notifyMsg = 4;
  99. optional string exerMsg = 5; //活动内容
  100. optional uint64 OnlineNum = 6; //在线人数
  101. repeated Award awards = 7; //连续登陆XX天,奖励XX金币
  102. optional uint32 loginTimes = 8; //已经连续登陆天数
  103. optional uint32 isLogin = 9; //今天是否已经领取了登陆奖励
  104. optional string tipMsg = 10; //房间内点击提示显示信息
  105. repeated PayTip paytips = 11; //支付提示语
  106. optional string sendtips = 12; //支付发货提醒
  107. }
  108. message NotifyMsg
  109. {
  110. required String title = 1;
  111. required String desc = 2;
  112. }
  113. message Award
  114. {
  115. required Money awardMoney = 1; //连续登陆奖励的金币
  116. required Tip awardTip = 2; //连续登陆奖励的提示
  117. }
  118. //获取登陆奖励 LoginAwardRequest = "104"
  119. message LoginAwardRequest
  120. {
  121. required uint64 uid = 1; //用户唯一识别ID
  122. required string session = 2; //用户session
  123. }
  124. //获取登陆奖励返回,LoginAwardReply
  125. message LoginAwardReply
  126. {
  127. required uint32 ret = 1; //是否领取登陆奖励成功 1:成功 2 失败
  128. optional uint32 retCode = 2; // 失败原因
  129. optional string retMsg = 3; // 失败原因提示语、
  130. optional Money money = 4; //筹码
  131. optional Tip tip = 5; //提示
  132. optional string succMsg = 6; //领取登陆奖励成功提示语
  133. }
  134. //用户修改信息,包括昵称、性别、地址、图像,以及绑定邮箱 ModifyUserRequest = "105,106,107" 105代表绑定邮箱,106代表修改昵称等,107修改用户头像
  135. message ModifyUserRequest
  136. {
  137. required uint64 uid = 1; //用户唯一识别ID
  138. required string session = 2; //用户session
  139. optional string uname = 3; //用户绑定邮箱
  140. optional string password = 4; //绑定邮箱时需要输入密码
  141. optional string nick = 5; //用户呢称
  142. optional uint32 sex = 6; //用户性别
  143. optional string address = 7; //用户地址
  144. optional string signature = 8; //用户签名
  145. optional string icon = 9; //用户图像地址
  146. }
  147. //用户修改信息返回 ModifyUserReply
  148. message ModifyUserReply
  149. {
  150. required uint32 ret = 1; //是否修改成功 1:成功 2 失败
  151. optional uint32 retCode = 2; // 失败原因
  152. optional string retMsg = 3; // 失败原因提示语
  153. }
  154. //用户通过绑定的邮箱恢复账号系统, RecoverUserRequest = "108" 返回直接使用 LoginReply
  155. message RecoverUserRequest
  156. {
  157. required uint64 uid = 1; //用户唯一识别ID
  158. required string session = 2; //用户session
  159. optional string uname = 3; //用户绑定邮箱
  160. optional string password = 4; //绑定邮箱时需要输入密码
  161. }
  162. //返回大厅刷新数据请求 BackToHall= "109"
  163. message BackToHallReq
  164. {
  165. required uint64 uid = 1; //用户唯一识别ID
  166. required string session = 2; //用户session
  167. }
  168. //获取进入房间 TableReq = "301"
  169. message TableReq
  170. {
  171. required uint64 uid = 1; //用户唯一识别ID
  172. required string session = 2; //用户session
  173. optional uint32 type = 3; //1:快速进入,2:初级场 3中级场 4高级场 以后场时动态配置,故这个接口得调整
  174. optional uint32 form = 4; //分组编号
  175. }
  176. //进入房间请求返回 TableRpy
  177. message TableRpy
  178. {
  179. required uint32 ret = 1; //是否获取桌子成功 1:成功 2 失败
  180. optional uint32 retCode = 2; // 失败原因
  181. optional string retMsg = 3; // 失败原因提示语
  182. optional string ip = 4; //服务器对应IP
  183. optional uint32 port = 5; //服务器对应端口号
  184. optional uint32 tid = 6; //桌子ID
  185. optional string voip = 7; //语音服务器对应IP
  186. optional uint32 voport = 8; //语音服务器对应端口号
  187. }
  188. //桌子列表请求 CourtListRequest = "302"
  189. message CourtListRequest
  190. {
  191. required uint64 uid = 1; //用户唯一识别ID
  192. required string session = 2; //用户session
  193. required string courtId = 3; //赛场ID,如普通场为1,比赛场为2,换牌场为3,新玩法场为4
  194. }
  195. //桌子列表请求返回 CourtListReply
  196. message CourtListReply
  197. {
  198. required uint32 ret = 1; //1:成功 2 失败
  199. optional uint32 retCode = 2; //错误码
  200. optional string retMsg = 3; //提示语
  201. repeated Court courtBean = 4; //桌子对象
  202. }
  203. message Court
  204. {
  205. optional string name = 1; //桌名
  206. optional uint64 min_enter = 2; //准入
  207. optional uint64 min_chip = 3; //底注
  208. optional string form = 4; //分组编号
  209. optional string desc = 5; //详细介绍
  210. optional uint32 type = 6; //桌类型,用于tableReq
  211. optional uint32 left_icon = 7; //左角标类型
  212. optional uint32 right_icon = 8; //右角标类型
  213. }
  214. //获取进入房间 QuickStartReq= "303"
  215. message QuickStartReq
  216. {
  217. required uint64 uid = 1; //用户唯一识别ID
  218. required string session = 2; //用户session
  219. optional uint32 form = 3; //1:普通场 2比赛场 3换牌场 以后场时动态配置,故这个接口得调整
  220. }
  221. //进入房间请求返回QucikStartRpy
  222. message QuickStartRpy
  223. {
  224. required uint32 ret = 1; //是否获取桌子成功 1:成功 2 失败
  225. optional uint32 retCode = 2; // 失败原因
  226. optional string retMsg = 3; // 失败原因提示语
  227. optional string ip = 4; //服务器对应IP
  228. optional uint32 port = 5; //服务器对应端口号
  229. optional uint32 tid = 6; //桌子ID
  230. optional string voip = 7; //语音服务器对应IP
  231. optional uint32 voport = 8; //语音服务器对应端口号
  232. optional uint64 needMoney = 9; //所需钱数,ret为2时解析此值
  233. }
  234. //赛场详情请求 MatchInfoReq= "304"
  235. message MatchInfoReq
  236. {
  237. required uint64 uid = 1; //用户唯一识别ID
  238. required string session = 2; //用户session
  239. optional uint32 form = 3; //1:普通场 2比赛场 3换牌场 以后场时动态配置,故这个接口得调整
  240. optional uint32 type = 4; //桌类型,用于tableReq
  241. }
  242. //赛场详情请求返回 MatchInfoRpy
  243. message MatchInfoRpy
  244. {
  245. required uint32 ret = 1; //是否获取桌子成功 1:成功 2 失败
  246. optional uint32 retCode = 2; // 失败原因
  247. optional string retMsg = 3; // 失败原因提示语
  248. optional string title = 4; //标题
  249. optional string desc = 5; //详情
  250. optional string beginTime = 6; //开赛时间
  251. optional uint32 count = 7; //参赛人数
  252. optional string condition = 8; //进入条件
  253. }
  254. //获取房间提示信息 TableMsgReq= "305"
  255. message TableMsgReq
  256. {
  257. required uint64 uid = 1; //用户唯一识别ID
  258. required string session = 2; //用户session
  259. optional uint32 form = 3; //1:普通场 2比赛场 3换牌场 以后场时动态配置,故这个接口得调整
  260. optional uint32 type = 4; //桌类型,用于tableReq
  261. }
  262. //获取房间提示信息 TableMsgRpy
  263. message TableMsgRpy
  264. {
  265. required uint32 ret = 1; //是否获取桌子成功 1:成功 2 失败
  266. optional uint32 retCode = 2; // 失败原因
  267. optional string retMsg = 3; // 失败原因提示语
  268. optional string msg = 4; //房间提示信息显示
  269. }
  270. //请求获取商品列表 ListProductReq = "401"
  271. message ListProductReq
  272. {
  273. required uint64 uid = 1; //用户唯一识别ID
  274. required string session = 2; //用户session
  275. required uint32 type = 3; //商品类型
  276. }
  277. message Product
  278. {
  279. required uint32 productID = 1;
  280. required string productName = 2;
  281. required uint32 price = 3;
  282. required string desc = 4;
  283. optional string imageUrl = 5;
  284. optional string paycode = 6; //现在做计费点使用
  285. }
  286. //商品列表返回 ListProductRpy = "shop.PdtRpy"
  287. message ListProductRpy
  288. {
  289. required uint32 ret = 1; //是否获取商品列表成功 1:成功 2 失败
  290. optional uint32 retCode = 2; // 失败原因
  291. optional string retMsg = 3; // 失败原因提示语
  292. repeated Product products = 4;
  293. }
  294. //获取充值所需的商品信息 RechargeGoodsReq = "402",
  295. message RechargeGoodsReq
  296. {
  297. required uint64 uid = 1;
  298. required string session = 2;
  299. required uint32 type = 3; //商品类型,1代表金币,2代表“提示”,3代表“元宝”
  300. required uint64 needMoney = 4;
  301. }
  302. //充值所需的商品信息返回 CollapseTimesRpy
  303. message RechargeGoodsRpy
  304. {
  305. required uint32 ret = 1;
  306. optional uint32 retCode = 2;
  307. optional string retMsg = 3;
  308. optional Product products = 4;
  309. }
  310. //购买提示所需的商品信息 CheckBuyMessageReq = "403"
  311. message CheckBuyMessageReq
  312. {
  313. required uint64 uid = 1; //用户唯一识别ID
  314. required string session = 2; //用户session
  315. optional uint64 orderid = 3; //订单ID
  316. }
  317. message CheckBuyMessageRpy
  318. {
  319. required uint32 ret = 1; //订单是否已经成功 1:成功 2 失败
  320. optional uint32 retCode = 2; // 失败原因
  321. optional string retMsg = 3; // 失败原因提示语
  322. optional Money moneyBean = 4
  323. optional Tip tipBean = 5;
  324. }
  325. //直接购买商品请求 DirectBuyReq = "404",
  326. message DirectBuyReq
  327. {
  328. required uint64 uid = 1;
  329. required string session = 2;
  330. required uint32 type = 3; //商品类型,1代表金币,2代表“提示”,3代表“元宝”
  331. }
  332. //充值所需的商品信息返回DirectBuyRpy
  333. message DirectBuyRpy
  334. {
  335. required uint32 ret = 1;
  336. optional uint32 retCode = 2;
  337. optional string retMsg = 3;
  338. optional Product products = 4;
  339. }
  340. //验证订单失败数据提交,ConfirmOrderFailedRequest= "405" 返回直接使用RpyConfirmOrderFailed
  341. message ConfirmOrderFailedRequest
  342. {
  343. required uint64 uid = 1; //用户唯一识别ID
  344. required string session = 2; //用户session
  345. optional uint64 orderid = 3; //订单ID
  346. }
  347. message ConfirmOrderFailedRpy
  348. {
  349. required uint32 ret = 1; //订单是否已经成功 1:成功 2 失败
  350. optional uint32 retCode = 2; // 失败原因
  351. optional string retMsg = 3; // 失败原因提示语
  352. }
  353. //请求比赛排行列表 ListRankReq = "501,502" 501代表今日排行,502代表上期获奖排行
  354. message ListRankReq
  355. {
  356. required uint64 uid = 1; //用户唯一识别ID
  357. required string session = 2; //用户session
  358. optional uint32 form = 3; //1:普通场 2比赛场 3换牌场 以后场时动态配置,故这个接口得调整
  359. optional uint32 type = 4; //桌类型,不传默认为5
  360. }
  361. //排行列表返回 ListRankRpy = "rank.matchRpy"
  362. message ListRankRpy
  363. {
  364. required uint32 ret = 1; //是否获取商品列表成功 1:成功 2 失败
  365. optional uint32 retCode = 2; // 失败原因
  366. optional string retMsg = 3; // 失败原因提示语
  367. repeated Rank ranks = 4;
  368. }
  369. message Rank
  370. {
  371. optional uint64 uid = 1; //uid
  372. optional uint32 position = 2; //排行
  373. optional string unick = 3; //昵称
  374. optional uint64 money = 4; //赢的筹码
  375. optional string dateTime = 5; //时间
  376. }
  377. //财富榜 "503"
  378. message WealthRankReq
  379. {
  380. required uint64 uid = 1; //用户唯一识别ID
  381. required string session = 2; //用户session
  382. }
  383. message WealthRankRpy
  384. {
  385. required uint32 ret = 1; // 1:成功 2 失败
  386. optional uint32 retCode = 2; // 失败原因
  387. optional string retMsg = 3; // 失败原因提示语
  388. repeated WealthRank wealthRanks = 4;
  389. }
  390. message WealthRank
  391. {
  392. optional uint64 uid = 1; //uid
  393. optional uint32 position = 2; //排行
  394. optional string unick = 3; //昵称
  395. optional uint64 money = 4; //赢的筹码
  396. optional String icon = 5; //图标
  397. }
  398. //充值榜 "504"
  399. message RechargeRankReq
  400. {
  401. required uint64 uid = 1; //用户唯一识别ID
  402. required string session = 2; //用户session
  403. }
  404. message RechargeRankRpy
  405. {
  406. required uint32 ret = 1; // 1:成功 2 失败
  407. optional uint32 retCode = 2; // 失败原因
  408. optional string retMsg = 3; // 失败原因提示语
  409. repeated RechargeRank RechargeRanks = 4;
  410. }
  411. message RechargeRank
  412. {
  413. optional uint64 uid = 1; //uid
  414. optional uint32 position = 2; //排行
  415. optional string unick = 3; //昵称
  416. optional uint64 money = 4; //赢的筹码
  417. optional String icon = 5; //图标
  418. }
  419. //获取活动列表 ExerciseListReq = "601"
  420. message ExerciseListReq
  421. {
  422. required uint32 uid = 1;
  423. required string session = 2;
  424. }
  425. message Exercise
  426. {
  427. required string title = 1;
  428. required string desc = 2;
  429. }
  430. //获取活动列表返回 ExerciseListRpy = "exer.ExerRpy"
  431. message ExerciseListRpy
  432. {
  433. required uint32 ret = 1;
  434. optional uint32 retCode = 2;
  435. optional string retMsg = 3;
  436. repeated Exercise exercises = 4;
  437. }
  438. //获取系统信息列表 使用接口SystemInFoReq = "602" 接口数据类型跟ExerciseListReq一样,返回数据类型跟ExerciseListRpy一样,系统信息类型跟Exercise一样
  439. //获取个人信息列表 使用接口PersonInFoReq = "603" 接口数据类型跟ExerciseListReq一样,返回数据类型跟ExerciseListRpy一样,系统信息类型为PersonInFo
  440. message PersonInFo
  441. {
  442. required uint32 infoID = 1; //个人信息对应ID
  443. required string desc = 3; //个人信息描述
  444. required uint32 canReceive = 4; //是否能够被领取,1:能,其他则不能
  445. }
  446. message PersonListRpy
  447. {
  448. required uint32 ret = 1;
  449. optional uint32 retCode = 2;
  450. optional string retMsg = 3;
  451. repeated PersonInFo info = 4;
  452. }
  453. //请求获取活动奖励 PersonDeliverReq = "604"
  454. message PersonDeliverReq
  455. {
  456. required uint32 uid = 1;
  457. required string session = 2;
  458. optional uint32 infoID = 3;
  459. }
  460. //获取活动奖励返回 PersonDeliverRpy
  461. message PersonDeliverRpy
  462. {
  463. required uint32 ret = 1;
  464. required uint32 retCode = 2;
  465. optional string retMsg = 3;
  466. optional Money money = 4;
  467. optional Tip tip = 5;
  468. optional string succMsg = 6; //提示信息
  469. }
  470. //提交反馈信息 SubmitFeedBackReq = "701"
  471. message SubmitFeedBackReq
  472. {
  473. required uint32 uid = 1;
  474. required string session = 2;
  475. optional string feedBackMsg = 3; //反馈信息
  476. optional string connectPhone = 4; //联系电话
  477. }
  478. //提交反馈信息返回 SubmitFeedBackRpy
  479. message SubmitFeedBackRpy
  480. {
  481. required uint32 ret = 1;
  482. required uint32 retCode = 2;
  483. optional string retMsg = 3;
  484. }
  485. //帮助-游戏规则 GameRuleReq= "702"
  486. message GameRuleReq
  487. {
  488. required uint32 uid = 1;
  489. required string session = 2;
  490. }
  491. //帮助-游戏规则返回
  492. message GameRuleRpy
  493. {
  494. required uint32 ret = 1;
  495. required uint32 retCode = 2;
  496. optional string retMsg = 3;
  497. optional string gamerule = 4; //游戏规则
  498. }
  499. //帮助-常见问题 CommonReq= "703"
  500. message CommonReq
  501. {
  502. required uint32 uid = 1;
  503. required string session = 2;
  504. }
  505. //帮助-常见问题 CommoneRpy
  506. message CommoneRpy
  507. {
  508. required uint32 ret = 1;
  509. required uint32 retCode = 2;
  510. optional string retMsg = 3;
  511. optional string commonedesc = 4; //常见问题描述
  512. }
  513. //获取破产奖励次数 CollapseTimesReq = "801"
  514. message CollapseTimesReq
  515. {
  516. required uint64 uid = 1;
  517. required string session = 2;
  518. }
  519. //破产奖励次数返回 CollapseTimesRpy
  520. message CollapseTimesRpy
  521. {
  522. required uint32 ret = 1;
  523. optional uint32 retCode = 2;
  524. optional string retMsg = 3;
  525. optional uint32 times = 4;
  526. }
  527. //提交减少提示次数 ReduceTipCountReq = "802"
  528. message ReduceTipCountReq
  529. {
  530. required uint64 uid = 1;
  531. required string session = 2;
  532. required uint32 type = 3; //场类型
  533. }
  534. //提交减少提示次数返回 ReduceTipCountRpy
  535. message ReduceTipCountRpy
  536. {
  537. required uint32 ret = 1;
  538. required uint32 retCode = 2;
  539. optional string retMsg = 3;
  540. optional Tip tip = 4; //提示
  541. }
  542. //请求获取任务列表 ListTaskReq = "901"
  543. message ListProductReq
  544. {
  545. required uint64 uid = 1; //用户唯一识别ID
  546. required string session = 2; //用户session
  547. optional uint32 type = 3; //任务类型:0或没有代表每日任务,1代表系统任务
  548. }
  549. message Task
  550. {
  551. required uint32 taskID = 1; //任务ID
  552. required string taskName = 2; //任务名称
  553. optional string taskDesc = 3; //任务奖励描述
  554. optional uint32 compelteRate = 4; //任务已经完成进度
  555. optional uint32 totalRate = 5; //任务总进度
  556. optional uint32 canAliPay = 6; //任务状态:1不能领取 2:可以领取 3:已经领取奖励(已完成)
  557. }
  558. //任务列表返回 ListTaskRpy
  559. message ListTaskRpy
  560. {
  561. required uint32 ret = 1; //是否获取任务列表成功 1:成功 2 失败
  562. optional uint32 retCode = 2; // 失败原因
  563. optional string retMsg = 3; // 失败原因提示语
  564. repeated Task tasks = 4;
  565. optional string tipMsg = 5; // 提示语
  566. }
  567. //领取任务 AliPayTaskReq = "902"
  568. message AliPayTaskReq
  569. {
  570. required uint64 uid = 1; //用户唯一识别ID
  571. required string session = 2; //用户session
  572. optional uint32 type = 3; //任务类型:0或没有代表每日任务,1代表系统任务
  573. optional uint32 taskID = 4; //任务ID
  574. }
  575. //领取任务返回AliPayTaskRpy
  576. message AliPayTaskRpy
  577. {
  578. required uint32 ret = 1; //是否获取任务列表成功 1:成功 2 失败
  579. optional uint32 retCode = 2; // 失败原因
  580. optional string retMsg = 3; // 失败原因提示语
  581. optional uint64 money = 4; //任务奖励money
  582. optional uint32 tip = 5; //任务奖励提示
  583. optional uint64 totalMoney = 6; //用户总money
  584. optional uint32 totalTip = 7; //用户总提示
  585. }
  586. //获取可领取任务的数量 AliPayTaskNumReq = "903"
  587. message AliPayTaskNumReq
  588. {
  589. required uint64 uid = 1; //用户唯一识别ID
  590. required string session = 2; //用户session
  591. optional uint32 type = 3; //任务类型:0或没有代表每日任务,1代表系统任务
  592. }
  593. //领取任务返回AliPayTaskNumRpy
  594. message AliPayTaskNumRpy
  595. {
  596. required uint32 ret = 1; //是否获取任务列表成功 1:成功 2 失败
  597. optional uint32 retCode = 2; // 失败原因
  598. optional string retMsg = 3; // 失败原因提示语
  599. optional uint32 number = 4; //可领取的任务的数量
  600. }