首页

作者: _源稚生 | 来源:发表于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: "删除成功",
}

相关文章

  • html+css导航栏制作——20160313

    水平导航栏(一) HTML部分: 个人首页 个人首页 个人首页 个人首页 个人首页 个人首页 CSS部分: *{ ...

  • 2018-10-17测试

    搜狐博客首页-搜狐 搜狐博客首页-搜狐 搜狐博客首页-搜狐 搜狐博客首页-搜狐 搜狐博客首页-搜狐 搜狐博客首页-...

  • 病案首页功能

    首页管理 首页信息录入 首页信息查询 首页信息浏览 首页信息保存 首页字典管理 诊断信息字典 手术信息字典 病理信...

  • 学习HM微博项目第7天

    步骤:首页14-时间 -> 首页15-来源 -> 首页16-配图相册 -> 首页17-头像 首页14-时间 通过...

  • 首页

    说明:本文集为Gradle官方用户手册的翻译版本。由于我水平有限,不会100%翻译,但我会尽可能完整翻译,有一些我...

  • 首页

    作业4 .box1{width: 960px;height: 40px;b...

  • 首页

    今天是我对抗抑郁症的第183天

  • 首页

    接口约定 使用httpsrestful风格用户端:https://{域名}/api/{接口版本号}/{resour...

  • 首页

    #import //首页 //UIViewController 视图控制器 //带有容器性质的controller...

  • 首页

    灵感这东西,也就写写玩,说不定下一秒就感应不到呢! 作品: ①连载小说【玄幻】 ②雪橇三傻 ④辣眼睛 ⑤重庆很美 ...

网友评论

      本文标题:首页

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