Newer
Older
gdtMimiProgram / api / user.js
MrTan on 18 Nov 2022 453 bytes 获取员工类型
import fetch from '@/common/fetch.js';
import BASE_URL from './base.js';
import useNetWork from '@/common/useNetWork.js';

const LOGIN = BASE_URL + '/user/login';
const UserType = BASE_URL + '/user/getUserType'
export function login(code) {
	useNetWork();
  const params = {
    wxcode: code,
  };
  return fetch.post(LOGIN, params).then(res => res);
}

export function getUserType(code) {
	useNetWork();
  return fetch.get(UserType).then(res => res);
}