首页

作者: _源稚生 | 来源:发表于2021-08-02 21:12 被阅读0次

    目录

    1. 查询指定日期支出/收入总金额
    2. 查询指定日期所有账单
    3. 查询指定账单详情
    4. 新增账单
    5. 修改账单
    6. 删除账单


    1. 查询指定日期支出/收入总金额

    接口功能

    查询指定日期支出/收入总金额

    URL

    http://www.crazyfisher.com/bill/amount

    支持格式

    JSON

    HTTP请求方式

    GET

    请求参数
    参数 必选 类型 说明
    startTime ture String 开始时间
    endTime ture String 结束时间
    consumeType true Int 查询总金额类型。1:支出;2:收入。
    返回字段
    返回字段 字段类型 说明
    resultCode String 返回结果状态。0000:正常;-1:错误。
    resultMesg String 返回结果信息
    data List 包含返回值的对象
    data.amount String 总金额
    返回示例
    {
        resultCode: "0000",
        reslutMesg: "请求成功",
        data: {
            amount: "999"    
        }
    }
    

    2. 查询指定日期所有账单

    接口功能

    查询指定日期所有账单

    URL

    http://www.crazyfisher.com/bill/billList

    支持格式

    JSON

    HTTP请求方式

    GET

    请求参数
    参数 必选 类型 说明
    startTime ture String 开始时间
    endTime ture String 结束时间
    返回字段
    返回字段 字段类型 说明
    resultCode String 返回结果状态。0000:正常;-1:错误。
    resultMesg String 返回结果信息
    data List 包含返回值的对象
    data.billList Array 账单数组
    data.billList[0].id String 账单id
    data.billList[0].consumeType String 消费类型。1:支出;2:收入。
    data.billList[0].amoaunt String 账单金额
    data.billList[0].billType String 账单分类
    data.billList[0].account String 账单消费账户
    data.billList[0].billDate String 账单日期
    data.billList[0].billTime String 账单时间
    返回示例
    {
        resultCode: "0000",
        reslutMesg: "请求成功",
        data: {
            billList: [
              {
                  id: "A123",
                  amount: "32",
                  consumeType: "1",
                  billType: "午餐",
                  account: "支付宝",
                  billDate: "2105-09-08",
                  billTime: "12:09",
              }
            ]    
        }
    }
    

    3. 查询指定账单详情

    接口功能

    查询指定账单详情

    URL

    http://www.crazyfisher.com/bill/billDetail

    支持格式

    JSON

    HTTP请求方式

    GET

    请求参数
    参数 必选 类型 说明
    id true string 账单Id
    返回字段
    返回字段 字段类型 说明
    resultCode String 返回结果状态。0000:正常;-1:错误。
    resultMesg String 返回结果信String息
    data List 包含返回值的对象
    data.id String 账单id
    data.amount String 账单金额
    data.consumeType String 消费类型。1:支出;2:收入 。
    data.billType String 账单分类
    data.account String 账单消费账户
    data.billDate String 账单日期
    data.billTime String 账单时间
    data.address String 账单地点
    data.remarks String 账单备注
    返回示例
    {
        resultCode: "0000",
        reslutMesg: "请求成功",
        data: {
          id: "A123",
          amount: "32",
          consumeType: "1",
          billType: "午餐",
          account: "支付宝",
          billDate: "2105-09-08",
          billTime: "12:09",
          address: "我家",
          remarks: "跟巴菲特共进午餐",
        }
    }
    

    4. 新增账单

    接口功能

    新增账单

    URL

    http://www.crazyfisher.com/bill/addBill

    支持格式

    JSON

    HTTP请求方式

    POST

    请求参数
    参数 必选 类型 说明
    amount true String 账单金额
    consumeType true String 消费类型。1:支出;2:收入 。
    billType true String 账单分类
    account true String 账单消费账户
    billDate true String 账单日期
    billTime true String 账单时间
    address true String 账单地点
    remarks true String 账单备注
    返回字段
    返回字段 字段类型 说明
    resultCode String 返回结果状态。0000:正常;-1:错误。
    resultMesg String 返回结果信息
    返回示例
    {
        resultCode: "0000",
        reslutMesg: "新增成功",
    }
    

    5. 修改订单

    接口功能

    修改订单

    URL

    http://www.crazyfisher.com/bill/updateBill

    支持格式

    JSON

    HTTP请求方式

    POST

    请求参数
    参数 必选 类型 说明
    id ture string 账单Id
    amount true String 账单金额
    consumeType true String 消费类型 1:支出;2:收入
    billType true String 账单分类
    account true String 账单消费账户
    billDate true String 账单日期
    billTime true String 账单时间
    address true String 账单地点
    remarks true String 账单备注
    返回字段
    返回字段 字段类型 说明
    resultCode String 返回结果状态。0000:正常;-1:错误。
    resultMesg String 返回结果信息
    返回示例
    {
        resultCode: "0000",
        reslutMesg: "修改成功",
    }
    

    6. 删除订单

    接口功能

    删除订单

    URL

    http://www.crazyfisher.com/bill/deleteBill

    支持格式

    JSON

    HTTP请求方式

    POST

    请求参数
    参数 必选 类型 说明
    id ture String 账单Id
    返回字段
    返回字段 字段类型 说明
    resultCode String 返回结果状态。0000:正常;-1:错误。
    resultMesg string 返回结果信息
    返回示例
    {
        resultCode: "0000",
        reslutMesg: "删除成功",
    }
    

    相关文章

      网友评论

          本文标题:首页

          本文链接:https://www.haomeiwen.com/subject/wwvjvltx.html