authenticationUnit.js 555 B

1234567891011121314151617181920212223
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const saveOrUpdate = (unitAuthenticationInfo,token) => {
  4. return new request({
  5. url: './uc/unitAuthenticationInfos',
  6. method: (unitAuthenticationInfo.id ? 'put' : 'post'),
  7. headers: {
  8. token
  9. },
  10. data: {
  11. unitAuthenticationInfo
  12. }
  13. });
  14. }
  15. export const getUnitAuthenticationStatus = () => {
  16. return new request({
  17. url: './uc/unitAuthenticationInfos/getUnitAuthenticationInfo',
  18. method: 'get'
  19. });
  20. }