User.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. <?php
  2. /**
  3. * @api {post} user/checkUserByMobile 检测是否为新用户
  4. * @apiVersion 1.0.0
  5. * @apiName checkUserByMobile
  6. * @apiDescription 检测是否为新用户
  7. * @apiGroup User
  8. *
  9. * @apiParam {String} mobile 手机号码
  10. *
  11. *
  12. * @apiParamExample {json} 发送报文:
  13. {
  14. "mobile": "13136180523"
  15. }
  16. * @apiSuccess {Number} status 为0,新用户;为1已注册
  17. * @apiSuccessExample {json} 返回json数据(举例):
  18. {
  19. "code": 1,
  20. "msg": "操作成功",
  21. "content":{
  22. "status":0
  23. }
  24. }
  25. * @apiUse CreateUserError
  26. */
  27. /**
  28. * @api {post} user/registerSendMobileCode 注册新用户发送验证码
  29. * @apiVersion 1.0.0
  30. * @apiName registerSendMobileCode
  31. * @apiDescription 注册新用户发送验证码,仅限国内手机号
  32. * @apiGroup User
  33. *
  34. * @apiParam {String} mobile 手机号码
  35. * @apiParamExample {json} 发送报文:
  36. {
  37. "mobile": "13136180523"
  38. }
  39. *
  40. * @apiSuccessExample {json} 返回json数据(举例):
  41. {
  42. "code": 1,
  43. "msg": "操作成功"
  44. }
  45. * @apiUse CreateUserError
  46. */
  47. /**
  48. * @api {post} user/register 注册新用户
  49. * @apiVersion 1.0.0
  50. * @apiName register
  51. * @apiDescription 注册新用户
  52. * @apiGroup User
  53. *
  54. * @apiParam {String} mobile 手机号码
  55. * @apiParam {String} mobileCode 手机号码,6位数字
  56. * @apiParam {String} password 密码
  57. * @apiParam {String} passwordRe 重复密码
  58. * @apiParamExample {json} 发送报文:
  59. {
  60. "mobile": "13136180523",
  61. "mobileCode": "2145",
  62. "password": "12313132",
  63. "passwordRe": "66332221144"
  64. }
  65. *
  66. * @apiSuccessExample {json} 返回json数据(举例):
  67. {
  68. "code": 1,
  69. "msg": "操作成功",
  70. "content":{
  71. "token":"a8ajdsjasdfuufayg8aasdfasdfasd"
  72. }
  73. }
  74. * @apiUse CreateUserError
  75. */
  76. /**
  77. * @api {post} user/loginByPassword 密码登录
  78. * @apiVersion 1.0.0
  79. * @apiName loginByPassword
  80. * @apiDescription 注册新用户
  81. * @apiGroup User
  82. *
  83. * @apiParam {String} mobile 手机号码
  84. * @apiParam {String} password 密码
  85. * @apiParamExample {json} 发送报文:
  86. {
  87. "mobile": "13136180523",
  88. "password": "111111"
  89. }
  90. *
  91. * @apiSuccessExample {json} 返回json数据(举例):
  92. {
  93. "code": 1,
  94. "msg": "操作成功",
  95. "content": {
  96. "token": "a8ajdsjasdfuufayg8aasdfasdfasd",
  97. "userInfo":{
  98. "uuid":"123123123123123123"
  99. }
  100. }
  101. }
  102. * @apiUse CreateUserError
  103. */
  104. /**
  105. * @api {post} user/loginSendMobileCode 登录/重置密码发送验证码
  106. * @apiVersion 1.0.0
  107. * @apiName loginSendMobileCode
  108. * @apiDescription 登录/重置密码发送验证码
  109. * @apiGroup User
  110. *
  111. * @apiParam {String} mobile 手机号码
  112. * @apiParamExample {json} 发送报文:
  113. {
  114. "mobile": "13136180523"
  115. }
  116. *
  117. * @apiSuccessExample {json} 返回json数据(举例):
  118. {
  119. "code": 1,
  120. "msg": "操作成功"
  121. }
  122. * @apiUse CreateUserError
  123. */
  124. /**
  125. * @api {post} user/loginByMobileCode 短信验证登录
  126. * @apiVersion 1.0.0
  127. * @apiName loginByMobileCode
  128. * @apiDescription 短信验证登录
  129. * @apiGroup User
  130. *
  131. * @apiParam {String} mobile 手机号码
  132. * @apiParam {String} mobileCode 验证码
  133. * @apiParamExample {json} 发送报文:
  134. {
  135. "mobile": "13136180523",
  136. "mobileCode": "111111"
  137. }
  138. *
  139. * @apiSuccessExample {json} 返回json数据(举例):
  140. {
  141. "code": 1,
  142. "msg": "操作成功",
  143. "content": {
  144. "token": "a8ajdsjasdfuufayg8aasdfasdfasd",
  145. "userInfo":{
  146. "uuid":"123123123123123123"
  147. }
  148. }
  149. }
  150. * @apiUse CreateUserError
  151. */
  152. /**
  153. * @api {post} user/logout 退出登录
  154. * @apiVersion 1.0.0
  155. * @apiName logout
  156. * @apiDescription 退出登录,退出登录后返回首页
  157. * @apiGroup User
  158. *
  159. * @apiSuccessExample {json} 返回json数据(举例):
  160. {
  161. "code": 1,
  162. "msg": "操作成功"
  163. }
  164. * @apiUse CreateUserError
  165. */
  166. /**
  167. * @api {post} user/resetPassword 重置密码
  168. * @apiVersion 1.0.0
  169. * @apiName resetPassword
  170. * @apiDescription 重置密码,重置之后要重新登录
  171. * @apiGroup User
  172. *
  173. * @apiParam {String} mobile 手机号码
  174. * @apiParam {String} mobileCode 验证码
  175. * @apiParam {String} password 密码
  176. * @apiParam {String} passwordRe 重复密码
  177. * @apiParamExample {json} 发送报文:
  178. {
  179. "mobile": "13136180523",
  180. "mobileCode": "111111",
  181. "password":"123123123123123123",
  182. "passwordRe":"123123123123123123"
  183. }
  184. *
  185. * @apiSuccessExample {json} 返回json数据(举例):
  186. {
  187. "code": 1,
  188. "msg": "操作成功"
  189. }
  190. * @apiUse CreateUserError
  191. */
  192. /**
  193. * @api {post} user/recharge 充值
  194. * @apiVersion 1.0.0
  195. * @apiName recharge
  196. * @apiDescription 充值
  197. * @apiGroup User
  198. *
  199. * @apiParam {Number} userBankID 银行卡ID
  200. * @apiParam {Decimal} money 金额
  201. * @apiParamExample {json} 发送报文:
  202. {
  203. "app": {
  204. "userBankID": 12,
  205. "money": 12.01
  206. },
  207. "sign": "4297f44b13955235245b2497399d7a93"
  208. }
  209. *
  210. * @apiSuccess {Number} userRechargeID 充值ID
  211. * @apiSuccess {String} alias 充值单号
  212. * @apiSuccess {String} outerAlias 第三方支付订单号
  213. * @apiSuccess {String} notify 支付完成第三方异步回调(通知服务器)
  214. * @apiSuccessExample {json} 返回json数据(举例):
  215. {
  216. "code": 1,
  217. "msg": "操作成功",
  218. "content": {
  219. "userRechargeID": 12,
  220. "alias": "DC12981726638899",
  221. "outerAlias": "12981726638899",
  222. "notify": "http://wxapp.dahengdian.com/mobile/notify/index"
  223. },
  224. "sign":"4297f44b13955235245b2497399d7a93"
  225. }
  226. * @apiUse CreateUserError
  227. */
  228. /**
  229. * @api {post} user/checkInfo 添加银行卡和实名统一接口
  230. * @apiVersion 1.0.0
  231. * @apiName checkInfo
  232. * @apiDescription 添加银行卡和实名统一接口,验证通过后自动添加一个银行卡;该接口大概有2秒左右的延时,请界面做好优化
  233. * @apiGroup User
  234. *
  235. * @apiParam {Number} bankID 银行ID
  236. * @apiParam {String} trueName 真实姓名
  237. * @apiParam {String} passport 身份证号码
  238. * @apiParam {String} bankNumber 银行卡号码
  239. * @apiParam {String} mobile 手机号码
  240. * @apiParam {String} mobileCode 手机验证码
  241. * @apiParam {String} [payword] 支付密码,密码为6位纯数字
  242. * @apiParam {String} [paywordRe] 重复支付密码,密码为6位纯数字
  243. * @apiParamExample {json} 发送报文:
  244. {
  245. "bankID": 12,
  246. "trueName": "罗贯中",
  247. "passport": "230354635879109",
  248. "bankNumber": "63309871627382991010",
  249. "mobileCode": "123456",
  250. "mobile":"13136180523",
  251. "payword":"123456",
  252. "paywordRe":"123456"
  253. }
  254. *
  255. * @apiSuccessExample {json} 返回json数据(举例):
  256. {
  257. "code": 1,
  258. "msg": "操作成功"
  259. }
  260. * @apiUse CreateUserError
  261. */
  262. /**
  263. * @api {post} user/checkInfo 添加银行卡和实名统一接口
  264. * @apiVersion 1.0.1
  265. * @apiName checkInfo
  266. * @apiDescription 添加银行卡和实名统一接口,验证通过后自动添加一个银行卡;该接口大概有1秒左右的延时,请界面做好优化;app版本号2.1.2注意手机号隐藏和取消了手机短信验证
  267. * @apiGroup User
  268. *
  269. * @apiParam {Number} bankID 银行ID
  270. * @apiParam {String} trueName 真实姓名
  271. * @apiParam {String} passport 身份证号码
  272. * @apiParam {String} bankNumber 银行卡号码
  273. * @apiParam {String} mobile 手机号码,手机号码从app版本号2.1.2后UI隐藏,传值固定为注册手机号
  274. * @apiParam {String} mobileCode 手机验证码,手机验证码从app版本号2.1.2后UI隐藏,传值固定为687888
  275. * @apiParam {String} payword 支付密码,密码至少为6位数字和英文字母
  276. * @apiParam {String} paywordRe 重复支付密码,密码至少为6位数字和英文字母
  277. * @apiParamExample {json} 发送报文:
  278. {
  279. "bankID": 12,
  280. "trueName": "罗贯中",
  281. "passport": "230354635879109",
  282. "bankNumber": "63309871627382991010",
  283. "mobileCode": "123456",
  284. "mobile":"13136180523",
  285. "payword":"123456",
  286. "paywordRe":"123456"
  287. }
  288. *
  289. * @apiSuccessExample {json} 返回json数据(举例):
  290. {
  291. "code": 1,
  292. "msg": "操作成功"
  293. }
  294. * @apiUse CreateUserError
  295. */
  296. /**
  297. * @api {post} user/checkInfoSendMobileCode 预留手机发送验证码
  298. * @apiVersion 1.0.0
  299. * @apiName checkInfoSendMobileCode
  300. * @apiDescription 添加银行卡之前发送验证码,该手机号码为银行卡预留手机号
  301. * @apiGroup User
  302. *
  303. * @apiParam {String} mobile 手机号码
  304. * @apiParamExample {json} 发送报文:
  305. {
  306. "app": {
  307. "mobile": "13136180523"
  308. },
  309. "sign": "4297f44b13955235245b2497399d7a93"
  310. }
  311. *
  312. * @apiSuccessExample {json} 返回json数据(举例):
  313. {
  314. "code": 1,
  315. "msg": "操作成功",
  316. "sign":"4297f44b13955235245b2497399d7a93"
  317. }
  318. * @apiUse CreateUserError
  319. */
  320. /**
  321. * @api {post} user/getUserBankList 得到我的银行卡列表
  322. * @apiVersion 1.0.0
  323. * @apiName getUserBankList
  324. * @apiDescription 得到我的银行卡列表
  325. * @apiGroup User
  326. *
  327. *
  328. *
  329. * @apiSuccess {Object[]} userBankList 银行卡列表
  330. * @apiSuccess {Number} userBankList.userBankID 该银行卡ID
  331. * @apiSuccess {String} userBankList.bankAccount 姓名
  332. * @apiSuccess {String} userBankList.bankNumberAsterisk 银行卡号码,加密
  333. * @apiSuccess {String} userBankList.bankNameFull 银行全称,带支行
  334. * @apiSuccess {String} userBankList.mobile 预留手机号
  335. * @apiSuccess {String} userBankList.isDefault 1默认,0非默认
  336. * @apiSuccess {Object} userBankList.bank 银行
  337. * @apiSuccess {String} userBankList.bank.bankName 银行名称
  338. * @apiSuccess {String} userBankList.bank.appIcon 银行app图标
  339. * @apiSuccess {String} userBankList.bank.color 银行颜色(废弃)
  340. * @apiSuccess {String} userBankList.bank.backgroundColor 银行背景色
  341. * @apiSuccess {String} userBankList.bank.quotaTitle 限额名称描述
  342. * @apiSuccess {String} userBankList.bank.quotaSingleOrder 单笔限额,单位元
  343. * @apiSuccess {String} userBankList.bank.quotaSingleDay 单日限额
  344. * @apiSuccess {String} userBankList.bank.quotaSingleMouth 单月限额
  345. * @apiSuccessExample {json} 返回json数据(举例):
  346. {
  347. "code": 1,
  348. "msg": "操作成功",
  349. "content": {
  350. "userBankList": [
  351. {
  352. "userBankID": 5,
  353. "bankAccount": "张奇",
  354. "bankNameFull": "",
  355. "mobile": "17316900863",
  356. "isDefault": 1,
  357. "bank": {
  358. "bankName": "中国建设银行",
  359. "color": "#5991F0",
  360. "quotaTitle": "限额:",
  361. "quotaText": "单笔5千 单日五万 单月150万",
  362. "quotaSingleDay": 5000000,
  363. "quotaSingleOrder": 500000,
  364. "appIcon": "http://wxapp.dahengdian.com/static/mobile/image/zhongguo_icon2x.png",
  365. "pcIcon": "",
  366. "quotaSingleMonth": 500000000,
  367. "backgroundColor": "#5991F0"
  368. },
  369. "bankNumberAsterisk": "6217 **** **** **** 6968"
  370. }
  371. ]
  372. }
  373. }
  374. * @apiUse CreateUserError
  375. */
  376. /**
  377. * @api {post} user/getUserHongbaoList 得到我的红包列表
  378. * @apiVersion 1.0.0
  379. * @apiName getUserHongbaoList
  380. * @apiDescription 得到我的红包列表
  381. * @apiGroup User
  382. *
  383. * @apiParam {Number=0,1,2,3} [status] 红包状态,0为所有,1-未使用,2-已使用,3-已过期
  384. * @apiParamExample {json} 发送报文:
  385. {
  386. "status": 1
  387. }
  388. *
  389. * @apiSuccess {Object[]} userHongbaoList 红包列表列表
  390. * @apiSuccess {Number} userHongbaoList.userHongbaoID 红包ID
  391. * @apiSuccess {Object} userHongbaoList.hongbao 红包
  392. * @apiSuccess {String} userHongbaoList.hongbao.title 红包名称
  393. * @apiSuccess {String} userHongbaoList.hongbao.money 红包金额,现金券时有效
  394. * @apiSuccess {String} userHongbaoList.hongbao.year 加息年化,加息券有效
  395. * @apiSuccess {Number} userHongbaoList.hongbao.typeID 1-现金券,2-加息券
  396. * @apiSuccess {String} userHongbaoList.hongbao.minMoney 投资满多少可使用
  397. * @apiSuccess {Number} userHongbaoList.hongbao.minDay 不低于多少天的产品可以使用,比如该值为30时,那么低于30天产品可以使用
  398. * @apiSuccess {String} userHongbaoList.hongbao.minMoneyText minMoney描述
  399. * @apiSuccess {String} userHongbaoList.hongbao.minDayText minDay描述
  400. * @apiSuccess {String} userHongbaoList.hongbao.buyText 购买时描述
  401. * @apiSuccess {String} userHongbaoList.beginTime 有效开始时间
  402. * @apiSuccess {String} userHongbaoList.endTime 有效结束时间
  403. * @apiSuccess {Number} userHongbaoList.status 1-未使用,2-已使用,3-已过期
  404. * @apiSuccess {String} userHongbaoList.addTime 添加时间
  405. * @apiSuccessExample {json} 返回json数据(举例):
  406. {
  407. "code": 1,
  408. "msg": "操作成功",
  409. "content": {
  410. "hongbaoList": [
  411. {
  412. "userHongbaoID": 2,
  413. "beginTime": "2017-12-24",
  414. "endTime": "2018-01-08",
  415. "addTime": "2017-12-24 22:30:31",
  416. "status": 1,
  417. "hongbao": {
  418. "title": "新手注册",
  419. "typeID": 1,
  420. "minDay": 0,
  421. "minMoney": "0.00",
  422. "year": "0.00",
  423. "money": "100.00",
  424. "minMoneyText": "满0元使用",
  425. "minDayText": "所有产品通用",
  426. "buyText":"现金券88元"
  427. }
  428. }
  429. ]
  430. }
  431. }
  432. * @apiUse CreateUserError
  433. */
  434. /**
  435. * @api {post} user/getUserInfo 得到个人信息唯一接口
  436. * @apiVersion 1.0.0
  437. * @apiName getUserInfo
  438. * @apiDescription 得到个人信息唯一接口
  439. * @apiGroup User
  440. *
  441. * @apiSuccess {Object} userInfo 红包列表列表
  442. * @apiSuccess {Number} userInfo.userID 红包ID
  443. * @apiSuccess {Object} userInfo.mobile 手机号,该手机号只做展示用
  444. * @apiSuccess {String} userInfo.passport 身份证
  445. * @apiSuccess {String} userInfo.trueName 真实姓名
  446. * @apiSuccess {String} userInfo.avatar 头像
  447. * @apiSuccess {String} userInfo.gender 性别,0-不男不女,1-男,2-女
  448. * @apiSuccess {String} userInfo.loginTime 最后一次登录时间
  449. * @apiSuccess {Number=0,1} userInfo.isAuthTrueName 是否实名认证,0否
  450. * @apiSuccess {Number=0,1} userInfo.isAuthBank 是否绑定银行,目前用于判断实名认证和银行卡认证,0否
  451. * @apiSuccess {Number=0,1} userInfo.isNewInvest 是否是首投用户,0否
  452. * @apiSuccess {Object} userInfo.userAccount 个人资金账户概况
  453. * @apiSuccess {String} userInfo.userAccount.money 可用余额
  454. * @apiSuccess {String} userInfo.userAccount.moneyTotal 资产总额
  455. * @apiSuccess {String} userInfo.userAccount.moneyAcc 累积收益
  456. * @apiSuccess {String} userInfo.userAccount.moneyYesterday 昨日收益
  457. * @apiSuccess {String} userInfo.userAccount.moneyToday 今日收益
  458. * @apiSuccess {String} userInfo.userAccount.waitBen 待收总本金
  459. * @apiSuccess {String} userInfo.userAccount.waitInterest 待收总利息
  460. * @apiSuccess {String} userInfo.userAccount.hasInvestBenTotal 共已投入本金
  461. * @apiSuccess {String} userInfo.userAccount.hasInvestMoneyTotal 共已投入实际金额
  462. * @apiSuccess {String} userInfo.userAccount.hasRepayBenTotal 共已收回的本金
  463. * @apiSuccess {String} userInfo.userAccount.hasRepayInterestTotal 共已收回的利息
  464. * @apiSuccessExample {json} 返回json数据(举例):
  465. {
  466. "code": 1,
  467. "msg": "操作成功",
  468. "content": {
  469. "userInfo": {
  470. "userID": 8,
  471. "mobile": "17316900863",
  472. "trueName": "张奇",
  473. "passport": "230253654125663547",
  474. "avatar": "",
  475. "gender": 0,
  476. "loginTime": 0,
  477. "isAuthTrueName": 0,
  478. "isAuthBank": 0,
  479. "isNewInvest": 0,
  480. "userAccount": {
  481. "moneyTotal": "0.00",
  482. "money": "0.00",
  483. "moneyAcc": "0.00",
  484. "moneyYesterday": 0,
  485. "moneyToday": "0.00",
  486. "waitBen": 0,
  487. "waitInterest": "0.00",
  488. "hasInvestBenTotal": 0,
  489. "hasInvestMoneyTotal": "0.00",
  490. "hasRepayBenTotal": "0.00",
  491. "hasRepayInterestTotal":""
  492. }
  493. }
  494. }
  495. }
  496. * @apiUse CreateUserError
  497. */
  498. /**
  499. * @api {post} user/getUserInfo 得到个人信息唯一接口
  500. * @apiVersion 1.0.1
  501. * @apiName getUserInfo
  502. * @apiDescription 得到个人信息唯一接口
  503. * @apiGroup User
  504. *
  505. * @apiSuccess {Object} userInfo 红包列表列表
  506. * @apiSuccess {Number} userInfo.userID 红包ID
  507. * @apiSuccess {Object} userInfo.mobile 手机号,该手机号只做展示用
  508. * @apiSuccess {String} userInfo.passport 身份证
  509. * @apiSuccess {String} userInfo.trueName 真实姓名
  510. * @apiSuccess {String} userInfo.avatar 头像
  511. * @apiSuccess {String} userInfo.gender 性别,0-不男不女,1-男,2-女
  512. * @apiSuccess {String} userInfo.loginTime 最后一次登录时间
  513. * @apiSuccess {Number=0,1} userInfo.isAuthTrueName 是否实名认证,0否
  514. * @apiSuccess {Number=0,1} userInfo.isAuthBank 是否绑定银行,目前用于判断实名认证和银行卡认证,0否
  515. * @apiSuccess {Number=0,1} userInfo.isNewInvest 是否是首投用户,0否
  516. * @apiSuccess {Object} userInfo.userAccount 个人资金账户概况
  517. * @apiSuccess {String} userInfo.userAccount.money 可用余额
  518. * @apiSuccess {String} userInfo.userAccount.moneyTotal 资产总额
  519. * @apiSuccess {String} userInfo.userAccount.moneyAcc 累积收益
  520. * @apiSuccess {String} userInfo.userAccount.moneyYesterday 昨日收益
  521. * @apiSuccess {String} userInfo.userAccount.moneyToday 今日收益
  522. * @apiSuccess {String} userInfo.userAccount.waitBen 待收总本金
  523. * @apiSuccess {String} userInfo.userAccount.waitInterest 待收总利息
  524. * @apiSuccess {String} userInfo.userAccount.hasInvestBenTotal 共已投入本金
  525. * @apiSuccess {String} userInfo.userAccount.hasInvestMoneyTotal 共已投入实际金额
  526. * @apiSuccess {String} userInfo.userAccount.hasRepayBenTotal 共已收回的本金
  527. * @apiSuccess {String} userInfo.userAccount.hasRepayInterestTotal 共已收回的利息
  528. * @apiSuccess {Object} userInfo.bank 默认银行卡,如果客户未绑定银行卡,则不显示该字段
  529. * @apiSuccess {Number} userInfo.bank.userBankID 银行卡ID
  530. * @apiSuccess {String} userInfo.bank.bankNumber 银行卡号码
  531. * @apiSuccessExample {json} 返回json数据(举例):
  532. {
  533. "code": 1,
  534. "msg": "操作成功",
  535. "content": {
  536. "userInfo": {
  537. "userID": 8,
  538. "mobile": "17316900863",
  539. "trueName": "张奇",
  540. "passport": "230253654125663547",
  541. "avatar": "",
  542. "gender": 0,
  543. "loginTime": 0,
  544. "isAuthTrueName": 0,
  545. "isAuthBank": 0,
  546. "isNewInvest": 0,
  547. "userAccount": {
  548. "moneyTotal": "0.00",
  549. "money": "0.00",
  550. "moneyAcc": "0.00",
  551. "moneyYesterday": 0,
  552. "moneyToday": "0.00",
  553. "waitBen": 0,
  554. "waitInterest": "0.00",
  555. "hasInvestBenTotal": 0,
  556. "hasInvestMoneyTotal": "0.00",
  557. "hasRepayBenTotal": "0.00",
  558. "hasRepayInterestTotal":""
  559. },
  560. "bank": {
  561. "userBankID": 123,
  562. "bankNumber": "62236541254796441"
  563. }
  564. }
  565. }
  566. }
  567. * @apiUse CreateUserError
  568. */
  569. /**
  570. * @api {post} user/getUserFinanceList 得到交易流水
  571. * @apiVersion 1.0.0
  572. * @apiName getUserFinanceList
  573. * @apiDescription 得到交易流水
  574. * @apiGroup User
  575. *
  576. * @apiParam {String=[0,1,2,3,4,5]} mode 模块 0-所有,1-充值,2-提现,3-下单,4-回款,5-其他
  577. * @apiParam {Number} [pageIndex] 页码
  578. * @apiParam {Number} [pageItemCount] 每页条数
  579. * @apiParamExample {json} 发送报文:
  580. {
  581. "mode": 1,
  582. "pageIndex":1,
  583. "pageItemCount":0
  584. }
  585. *
  586. * @apiSuccess {String} mode 模块标识,MODE_RECHARGE-充值,MODE_DRAWCASH-提现,MODE_CANG-购买,MODE_REPAY_INTEREST-利息回款,MODE_REPAY_BEN-本金回款,MODE_EXT-其他
  587. * @apiSuccess {Number} modeID 模块对应的条目ID
  588. * @apiSuccess {String} modeText 模块描述(状态描述)
  589. * @apiSuccess {String} addTime 添加时间
  590. * @apiSuccess {String} updateTime 更新时间
  591. * @apiSuccess {Number} userID 用户ID
  592. * @apiSuccess {String} moneyPre 交易之前可用余额
  593. * @apiSuccess {String} money 交易金额
  594. * @apiSuccess {String} moneyNow 交易之后可用余额
  595. * @apiSuccess {Number} status 状态
  596. * @apiSuccess {Number} userFinanceID 流水ID
  597. * @apiSuccess {Number} pageIndex 页码
  598. * @apiSuccess {Number} pageItemCount 每页条数
  599. * @apiSuccessExample {json} 返回json数据(举例):
  600. {
  601. "code": 1,
  602. "msg": "操作成功",
  603. "content": {
  604. "financeList": [
  605. {
  606. "userFinanceID": 5778,
  607. "mode": "MODE_RECHARGE",
  608. "modeID": 536,
  609. "money": "0.10",
  610. "addTime": "2017-12-30 19:17:38",
  611. "userID": 8,
  612. "status": 1,
  613. "updateTime": "2017-12-30 19:17:38",
  614. "moneyPre": "0.10",
  615. "moneyNow": "0.20",
  616. "modeText": "失败"
  617. }
  618. ],
  619. "count": 1,
  620. "pageItemCount": 10
  621. }
  622. }
  623. * @apiUse CreateUserError
  624. */