mbti.js 597 B

1234567891011121314151617181920212223242526272829303132
  1. import request from '@/utils/request'
  2. // MBTI 画像管理
  3. export function getMbtiProfileList() {
  4. return request({
  5. url: '/api/admin/mbti/profile/list',
  6. method: 'post'
  7. })
  8. }
  9. export function saveMbtiProfile(data) {
  10. return request({
  11. url: '/api/admin/mbti/profile/save',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. export function deleteMbtiProfile(id) {
  17. return request({
  18. url: '/api/admin/mbti/profile/delete',
  19. method: 'post',
  20. data: { id: id }
  21. })
  22. }
  23. export function initMbtiSeedData() {
  24. return request({
  25. url: '/api/admin/mbti/profile/seed',
  26. method: 'post'
  27. })
  28. }