apis.js 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. const prefix = '/api/channel'
  2. const apis = {
  3. user: {
  4. current: {
  5. url: `${prefix}/current`,
  6. method: 'GET',
  7. action: 'channel',
  8. },
  9. login: {
  10. url: `${prefix}/signin`,
  11. method: 'POST',
  12. action: 'channel',
  13. login: true
  14. },
  15. logoff: {
  16. url: `${prefix}/signout`,
  17. method: 'POST',
  18. action: 'channel',
  19. logout: true
  20. },
  21. },
  22. member: {
  23. list: {
  24. url: `${prefix}/taUser`,
  25. method: 'GET',
  26. action: 'channel',
  27. },
  28. get: {
  29. url: `${prefix}/taUser/:id`,
  30. method: 'GET',
  31. action: 'channel',
  32. },
  33. save: {
  34. url: `${prefix}/taUser`,
  35. method: 'POST',
  36. action: 'channel',
  37. },
  38. update: {
  39. url: `${prefix}/taUser/:id`,
  40. method: 'PUT',
  41. action: 'channel',
  42. },
  43. },
  44. channel: {
  45. list: {
  46. url: `${prefix}/taChannel`,
  47. method: 'GET',
  48. action: 'channel',
  49. },
  50. put: {
  51. url: `${prefix}/taChannel/:id`,
  52. method: 'PUT',
  53. action: 'channel',
  54. },
  55. post: {
  56. url: `${prefix}/taChannel`,
  57. method: 'POST',
  58. action: 'channel',
  59. },
  60. get: {
  61. url: `${prefix}/taChannel/:id`,
  62. method: 'GET',
  63. action: 'channel',
  64. },
  65. },
  66. sample: {
  67. list: {
  68. url: `${prefix}/taH5Demand`,
  69. method: 'GET',
  70. action: 'channel',
  71. },
  72. put: {
  73. url: `${prefix}/taH5Demand/batch`,
  74. method: 'PUT',
  75. action: 'channel',
  76. },
  77. get: {
  78. url: `${prefix}/taH5Demand/:id`,
  79. method: 'GET',
  80. action: 'channel',
  81. },
  82. update: {
  83. url: `${prefix}/taH5Demand/update/:id`,
  84. method: 'PUT',
  85. action: 'channel',
  86. },
  87. h5list: {
  88. url: `${prefix}/h5Sample/list`,
  89. method: 'GET',
  90. action: 'channel',
  91. },
  92. addh5: {
  93. url: `${prefix}/h5Sample/add`,
  94. method: 'POST',
  95. action: 'channel',
  96. },
  97. geth5: {
  98. url: `${prefix}/get/h5Sample/:id`,
  99. method: 'GET',
  100. action: 'channel',
  101. },
  102. updateh5: {
  103. url: `${prefix}/update/h5Sample/:id`,
  104. method: 'PUT',
  105. action: 'channel',
  106. },
  107. puth5: {
  108. url: `${prefix}/put/h5Sample/:id`,
  109. method: 'PUT',
  110. action: 'channel',
  111. }
  112. },
  113. image: {
  114. uploadForAnt: {
  115. url: `${prefix}/antd/image`,
  116. method: 'POST',
  117. action: 'channel',
  118. },
  119. upload: {
  120. url: `${prefix}/image`,
  121. method: 'POST',
  122. action: 'channel',
  123. },
  124. },
  125. openScreen: {
  126. list: {
  127. url: `${prefix}/listNoticeByCondition`,
  128. method: 'GET',
  129. action: 'channel',
  130. },
  131. post: {
  132. url: `${prefix}/taNotice`,
  133. method: 'post',
  134. action: 'channel',
  135. },
  136. // /api/admin/taNotice/{id}
  137. put: {
  138. url: `${prefix}/taNotice/:id`,
  139. method: 'put',
  140. action: 'channel',
  141. },
  142. get:{
  143. url: `${prefix}/taNotice/:id`,
  144. method: 'GET',
  145. action: 'channel',
  146. },
  147. delete:{
  148. url: `${prefix}/taNotice/batchDelete`,
  149. method: 'put',
  150. action: 'channel',
  151. },
  152. getSample:{
  153. url: `${prefix}/listH5SampleByCondition`,
  154. method: 'GET',
  155. action: 'channel',
  156. }
  157. // /api/admin/ListH5SampleByCondition
  158. },
  159. contact:{
  160. listContactByCondition: {
  161. url: `${prefix}/listContactByCondition`,
  162. method: 'GET',
  163. action: 'channel',
  164. },
  165. taContactAdd: {
  166. url: `${prefix}/taContact`,
  167. method: 'POST',
  168. action: 'channel',
  169. },
  170. batchDeleteContact: {
  171. url: `${prefix}/taContact/batchDelete`,
  172. method: 'PUT',
  173. action: 'channel',
  174. },
  175. taContactGet: {
  176. url: `${prefix}/taContact/:id`,
  177. method: 'GET',
  178. action: 'channel',
  179. },
  180. taContactUpdate: {
  181. url: `${prefix}/taContact/:id`,
  182. method: 'PUT',
  183. action: 'channel',
  184. },
  185. list: {
  186. url: `${prefix}/taContact`,
  187. method: 'GET',
  188. action: 'channel',
  189. },
  190. },
  191. relatedOrganization:{
  192. get:{
  193. url: `${prefix}/contract/listCompanyOrg`,
  194. method: 'GET',
  195. action: 'channel',
  196. },
  197. listCompany:{
  198. url: `${prefix}/contract/listCompany`,
  199. method: 'GET',
  200. action: 'channel',
  201. },
  202. listOrg:{
  203. url: `${prefix}/contract/listOrg`,
  204. method: 'GET',
  205. action: 'channel',
  206. },
  207. post:{
  208. url: `${prefix}/contract/taCompanyOrg`,
  209. method: 'post',
  210. action: 'channel',
  211. },
  212. delete:{
  213. url: `${prefix}/taCompanyOrg/:id`,
  214. method: 'delete',
  215. action: 'channel',
  216. },
  217. },
  218. signedContract:{
  219. get:{
  220. url: `${prefix}/contract/list`,
  221. method: 'GET',
  222. action: 'channel',
  223. },
  224. check:{
  225. url: `${prefix}/contract/checkBeforeBatchUpdatePrice`,
  226. method: 'post',
  227. action: 'channel',
  228. },
  229. put: {
  230. url: `${prefix}/contract/batchUpdatePrice`,
  231. method: 'put',
  232. action: 'channel',
  233. },
  234. },
  235. company: {
  236. list: {
  237. url: `${prefix}/company/list`,
  238. method: 'GET',
  239. action: 'channel',
  240. },
  241. add: {
  242. url: `${prefix}/company/add`,
  243. method: 'POST',
  244. action: 'channel',
  245. },
  246. get: {
  247. url: `${prefix}/company/:id`,
  248. method: 'GET',
  249. action: 'channel',
  250. },
  251. update: {
  252. url: `${prefix}/company/:id`,
  253. method: 'PUT',
  254. action: 'channel',
  255. },
  256. companyById: {
  257. url: `${prefix}/taCompany/:id`,
  258. method: 'GET',
  259. action: 'channel',
  260. },
  261. autoAuthSeal: {
  262. url: `${prefix}/company/autoAuthCompany/:id`,
  263. method: 'PUT',
  264. action: 'channel',
  265. },
  266. getAuthStatus: {
  267. url: `${prefix}/company/getAuthStatus/:id`,
  268. method: 'GET',
  269. action: 'channel',
  270. },
  271. taCompanyList: {
  272. url: `${prefix}/taCompanyList`,
  273. method: 'GET',
  274. action: 'channel',
  275. }
  276. },
  277. seal: {
  278. listByCompanyId: {
  279. url: `${prefix}/taCompanySeal`,
  280. method: 'GET',
  281. action: 'channel',
  282. },
  283. addSeal: {
  284. url: `${prefix}/taCompanySeal`,
  285. method: 'POST',
  286. action: 'channel',
  287. },
  288. taSealById: {
  289. url: `${prefix}/taCompanySeal/:id`,
  290. method: 'GET',
  291. action: 'channel',
  292. },
  293. updateSealById: {
  294. url: `${prefix}/taCompanySeal/:id`,
  295. method: 'PUT',
  296. action: 'channel',
  297. },
  298. delSealById: {
  299. url: `${prefix}/deleteCompanySeal/:id`,
  300. method: 'PUT',
  301. action: 'channel',
  302. },
  303. refresh: {
  304. url: `${prefix}/company/fdd/:id`,
  305. method: 'GET',
  306. action: 'channel',
  307. },
  308. delete: {
  309. url: `${prefix}/company/delete`,
  310. method: 'DELETE',
  311. action: 'channel',
  312. }
  313. }
  314. }
  315. export default apis;