import { request } from '@umijs/max';

export const sign_in = async (
  data: API.SignInData,
): Promise<API.DefaultObjectResponse<API.Staff>> => {
  // console.log("data", data);
  return request('/api/v1/public/admin/login', {
    method: 'post',
    data,
  });
};

export const _verify = async (data: API.SignInData): Promise<API.DefaultObjectResponse> => {
  return request('/api/v1/admin/setting/verify', {
    method: 'get',
    data,
  });
};
