otc.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import Serve from '@/api/serve/index'
  2. class Otc {
  3. static userPayment(data) {
  4. return Serve.get(`/userPayment`,data,{loading:true});
  5. }
  6. static editUserPayment(data) {
  7. return Serve.post(`/userPayment/${data.id}`,data,{loading:true});
  8. }
  9. static getUserPayment(data) {
  10. return Serve.post(`/userPayment/${data.id}`,{},{loading:true});
  11. }
  12. static addUserPayment(data) {
  13. return Serve.post(`/userPayment`,data,{loading:true});
  14. }
  15. static otcTicker(){
  16. return Serve.get(`/otc/otcTicker`,{});
  17. }
  18. static tradingEntrusts(data){
  19. return Serve.get(`/otc/tradingEntrusts`,data,{loading:true})
  20. }
  21. static storeEntrust(data){
  22. return Serve.post(`/otc/storeEntrust`,data,{loading:true})
  23. }
  24. static storeOrder(data){
  25. return Serve.post(`/otc/storeOrder`,data,{loading:true})
  26. }
  27. static myEntrusts(data){
  28. return Serve.get(`/otc/myEntrusts`,data,{loading:true})
  29. }
  30. static myOrders(data){
  31. return Serve.get(`/otc/myOrders`,data,{loading:true})
  32. }
  33. static cancelEntrust(data){
  34. return Serve.post(`/otc/cancelEntrust`,data,{loading:true})
  35. }
  36. static cancelOrder(data){
  37. return Serve.post(`/otc/cancelOrder`,data,{loading:true})
  38. }
  39. static confirmPaidOrder(data){
  40. return Serve.post(`/otc/confirmPaidOrder`,data,{loading:true})
  41. }
  42. static confirmOrder(data){
  43. return Serve.post(`/otc/confirmOrder`,data,{loading:true})
  44. }
  45. static notConfirmOrder(data){
  46. return Serve.post(`/otc/notConfirmOrder`,data,{loading:true})
  47. }
  48. static orderDetail(data){
  49. return Serve.get(`/otc/orderDetail`,data,{loading:true})
  50. }
  51. static otcAccount(data){
  52. return Serve.get(`/otc/otcAccount`,data,{loading:true})
  53. }
  54. }
  55. export default Otc;