Skip to content

[fetcher]封装fetch以完成业务请求 #6

@baizhi958216

Description

@baizhi958216

封装fetch

const fetcher = (url: IUrl,data: any)=>{...}
//GET
...
//POST
...
//PUT
...
//DELETE
...
...

暴露不同的功能模块

export async function userRegister(regForm:IRegForm){...}
...
...
...

使用方式

import { userRegister } from '...'

await userRegister(regForm)
...
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions