FadingLight9291117 / bill-go-fiber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bill-go

api

bill

GET /list
Query {
    skip: int,
    limit: int,
}
return {
    code,
    data: {
        id: int,
        type: int,
        date: string,
        money: float,
        cls: string,
        label: string,
        options: string,
    }[]
    message,
}

POST /create
Body {
    type: int,
    date: string,
    money: float,
    cls: string,
    label: string,
    options: string,
}
return {
    code,
    data: {
        id: string,
    },
    message,
}

GET /search/:year/:month
Param {
    year: int,
    month: int,
}
Query {
    skip: int,
    limit: int,
}
return {
    code,
    data: {
        id: int,
        type: int,
        date: string,
        money: float,
        cls: string,
        label: string,
        options: string,
    }[]
    message,
}

GET /class
return {
    code,
    data: {
        consume: map<string, string[]>,
        income: string[]
    }
}

About


Languages

Language:Go 83.6%Language:Shell 6.6%Language:PowerShell 5.3%Language:Dockerfile 4.5%