profile.js 372 Bytes
import client from './client';

export const setBJID = ({ username, userBJID }) =>
  client.post('api/profile/setprofile', {
    username: username,
    userBJID: userBJID,
  });

export const getPROFILE = ({ username }) =>
  client.post('api/profile/getprofile', { username });

export const syncBJ = ({ username }) =>
  client.patch('api/profile/syncBJ', { username });