wallet.ts 438 B

1234567891011121314151617181920
  1. import { get, post } from './http';
  2. const apis = {
  3. PRE_ONE_KEY: '/api/substituteOrder/preOneKeySubmit',
  4. };
  5. export const preOneKeySubmit = async () => {
  6. const res = await post(apis.PRE_ONE_KEY);
  7. return res;
  8. };
  9. export const info = async (type: string, loading = false) => {
  10. const res = await get('/api/wallet/getByType', { type }, { loading });
  11. return res.data;
  12. };
  13. export default {
  14. preOneKeySubmit,
  15. info,
  16. };