xq-csg-weapp_uni-ts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
3.4KB

  1. /**
  2. * @name 我的
  3. * @description 请求示例
  4. * @param {Object} data 请求参数
  5. * @param {String} url 请求地址
  6. * @param {String} method 请求类型 可以不设置,默认GET
  7. */
  8. import request from '../utils/request';
  9. /**
  10. * 获取工作公告列表
  11. * @param {*} data
  12. */
  13. const nameAuthApi = function (data) {
  14. return request({
  15. url: '/admin-api/system/auth/real/name/auth',
  16. method: 'post',
  17. data: data
  18. });
  19. };
  20. /**
  21. * 获取我的信息
  22. * @param {*} data
  23. */
  24. const getUserInfoApi = function (data) {
  25. return request({
  26. url: '/admin-api/system/user/profile/get/my/info',
  27. method: 'post',
  28. data: data
  29. });
  30. };
  31. /**
  32. * 获得用户积分规则分页
  33. * @param {*} data
  34. */
  35. const userIntegralRruleApi = function (data) {
  36. return request(
  37. {
  38. url: '/admin-api/system/user-integral-rule/page',
  39. method: 'get',
  40. data: data
  41. },
  42. false
  43. );
  44. };
  45. /**
  46. * 获得用户积分明细分页
  47. * @param {*} data
  48. */
  49. const userIntegralDetailApi = function (data) {
  50. return request({
  51. url: '/admin-api/system/user-integral-detail/page',
  52. method: 'get',
  53. data: data
  54. });
  55. };
  56. /**
  57. * 获得用户我的收藏分页
  58. * @param {*} data
  59. */
  60. const myInfoPageApi = function (data) {
  61. return request({
  62. url: '/admin-api/people/collection/myInfo/page',
  63. method: 'get',
  64. data: data
  65. });
  66. };
  67. /**
  68. * 统计党员-群众点单数据
  69. * @param {*} data
  70. */
  71. const myMasserCountApi = function (data) {
  72. return request({
  73. url: '/admin-api/people/seek-help/count',
  74. method: 'get',
  75. data: data
  76. });
  77. };
  78. /**
  79. * 党员认证
  80. * @param {*} data
  81. */
  82. const myMemberAuthApi = function (data) {
  83. return request({
  84. url: '/admin-api/system/auth/party/member/auth',
  85. method: 'post',
  86. data: data
  87. });
  88. };
  89. /**
  90. * 创建群众点单回复
  91. * @param {*} data
  92. */
  93. const replyCreateApi = function (data) {
  94. return request({
  95. url: '/admin-api/people/seek-help-reply/create',
  96. method: 'post',
  97. data: data
  98. });
  99. };
  100. /**
  101. * 获得群众点单回复
  102. * @param {*} data
  103. */
  104. const replyCreateGetApi = function (data) {
  105. return request({
  106. url: '/admin-api/people/seek-help-reply/get',
  107. method: 'get',
  108. data: data
  109. });
  110. };
  111. /**
  112. * 更新群众点单回复
  113. * @param {*} data
  114. */
  115. const replyCreatUpdateApi = function (data) {
  116. return request({
  117. url: '/admin-api/people/seek-help-reply/update',
  118. method: 'PUT',
  119. data: data
  120. });
  121. };
  122. /**
  123. * 查询优质回复
  124. * @param {*} data
  125. */
  126. const replyGoodPageApi = function (data) {
  127. return request({
  128. url: '/admin-api/people/seek-help-reply/good-page',
  129. method: 'get',
  130. data: data
  131. });
  132. };
  133. // 发送验证码
  134. const sendSmSCodeApi = function (data) {
  135. return request({
  136. url: '/admin-api/system/auth/send-sms-code',
  137. method: 'get',
  138. data: data
  139. });
  140. };
  141. const systemAuthSmsLogin = function (data) {
  142. return request({
  143. url: '/admin-api/system/auth/sms-login',
  144. method: 'get',
  145. data: data
  146. });
  147. };
  148. export {
  149. nameAuthApi,
  150. getUserInfoApi,
  151. userIntegralRruleApi,
  152. userIntegralDetailApi,
  153. myInfoPageApi,
  154. myMasserCountApi,
  155. myMemberAuthApi,
  156. replyCreateApi,
  157. replyCreateGetApi,
  158. replyCreatUpdateApi,
  159. replyGoodPageApi,
  160. sendSmSCodeApi,
  161. systemAuthSmsLogin
  162. };