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

index.js 775 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { request } from '@umijs/max';
  2. // 分页查询代码配置
  3. export function getCodeConfigListReq(params) {
  4. return request(`/api/mmp/codeConfig`, {
  5. method: 'GET',
  6. params,
  7. });
  8. }
  9. // 新增代码配置
  10. export function addCodeConfigReq(data) {
  11. return request(`/api/mmp/codeConfig`, {
  12. method: 'POST',
  13. data,
  14. });
  15. }
  16. // 更新代码配置
  17. export function updateCodeConfigReq(data) {
  18. return request(`/api/mmp/codeConfig`, {
  19. method: 'PUT',
  20. data,
  21. });
  22. }
  23. // 删除代码配置
  24. export function deleteCodeConfigReq(id) {
  25. return request(`/api/mmp/codeConfig/${id}`, {
  26. method: 'DELETE',
  27. });
  28. }
  29. // 查询代码配置详情
  30. export function getCodeConfigDetailReq(id) {
  31. return request(`/api/mmp/codeConfig/${id}`, {
  32. method: 'GET'
  33. });
  34. }