systemConfig.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import request from '@/utils/request';
  2. export function configCheckUnique(pram) {
  3. const data = {
  4. name: pram.name,
  5. };
  6. return request({
  7. url: '/admin/platform/system/config/check',
  8. method: 'GET',
  9. params: data,
  10. });
  11. }
  12. export function configInfo(pram) {
  13. const data = {
  14. formId: pram.id,
  15. };
  16. return request({
  17. url: '/admin/platform/system/config/info',
  18. method: 'GET',
  19. params: data,
  20. });
  21. }
  22. export function configSaveForm(pram) {
  23. return request({
  24. url: '/admin/platform/system/config/save/form',
  25. method: 'POST',
  26. data: pram,
  27. });
  28. }
  29. export function configUpdate(pram) {
  30. const data = {
  31. id: pram.id,
  32. systemConfigRequest: pram.systemConfigRequest,
  33. };
  34. return request({
  35. url: '/admin/platform/system/config/update',
  36. method: 'POST',
  37. params: data,
  38. });
  39. }
  40. export function configSaveUniq(pram) {
  41. const data = {
  42. key: pram.key,
  43. value: pram.value,
  44. };
  45. return request({
  46. url: '/admin/platform/system/config/saveuniq',
  47. method: 'POST',
  48. params: data,
  49. });
  50. }
  51. export function configGetUniq(pram) {
  52. const data = {
  53. key: pram.key,
  54. };
  55. return request({
  56. url: '/admin/platform/system/config/getuniq',
  57. method: 'GET',
  58. params: data,
  59. });
  60. }
  61. /**
  62. * 获取积分配置
  63. */
  64. export function integralGetConfigApi() {
  65. return request({
  66. url: '/admin/platform/integral/get/config',
  67. method: 'GET',
  68. });
  69. }
  70. /**
  71. * 编辑积分配置
  72. */
  73. export function integralSetConfigApi(data) {
  74. return request({
  75. url: '/admin/platform/integral/set/config',
  76. method: 'post',
  77. data,
  78. });
  79. }
  80. /**
  81. * 获取移动端域名
  82. */
  83. export function frontDomainApi() {
  84. return request({
  85. url: '/publicly/config/get/front/domain',
  86. method: 'get',
  87. });
  88. }
  89. /**
  90. * 获取积分商城图片
  91. */
  92. export function picConfigInfo() {
  93. return request({
  94. url: '/admin/platform/userenterprise/picConfigInfo',
  95. method: 'get',
  96. });
  97. }
  98. /**
  99. * 设置积分商城图片
  100. */
  101. export function saveForm(data) {
  102. return request({
  103. url: '/admin/platform/userenterprise/save/form',
  104. method: 'post',
  105. data
  106. });
  107. }