flutter/lib/api/shop_api.dart

51 lines
1.5 KiB
Dart
Raw Permalink Normal View History

2025-08-21 10:50:38 +08:00
class ShopApi {
///---------------------post
/// [size]分页数量
/// [current] 第几页
/// [categoryId] 分类id
/// [nameLike] 商品名称
static const String shopList = '/app/product/page'; // 商品列表
/// [showStatus]1=显示 [nameLike]分类名称 [level]1
static const String shopCategory = '/app/product/category/tree'; // 商品分类
2025-08-21 10:50:38 +08:00
/// []
static const String shopSwiperList = '/app/article/carousel'; // 商品首页轮播图
///---------------------get
/// [url参数/id]
static const String shopDetail = '/app/product'; // 商品详情
2025-09-01 18:18:26 +08:00
// 创建商品订单
2025-09-03 10:54:08 +08:00
static const String createGoodsOrder = '/app/order/add';
2025-09-01 18:18:26 +08:00
// 订单详情接口
2025-09-03 10:54:08 +08:00
static const String goodsOrderDetail = '/app/order';
2025-09-01 18:18:26 +08:00
2025-09-04 18:08:01 +08:00
// 查询订单状态
static const String goodsOrderStatus= '/trans/easypay/paymentQuery';
// 取消订单
static const String cancelGoodsOrder= '/app/order/cancel';
2025-09-11 16:42:35 +08:00
// app端我的订单
2025-09-12 15:45:53 +08:00
static const String myOrderList= '/app/order/page';
2025-09-11 16:42:35 +08:00
2025-09-12 17:23:08 +08:00
// app商家订单
static const String sellerOrderList= '/app/merchant/order/page';
2025-09-11 16:42:35 +08:00
// 商家营收摘要
static const String revenueInfo= '/app/merchant/account/statistic';
// 商家营收分页
static const String revenueList= '/app/merchant/account/bill/page';
2025-09-13 16:14:27 +08:00
// 根据核销码查询详情
static const String getWriteOffDetail= '/app/merchant/order/scan';
// 确认核销
static const String confirmWriteOff= '/app/merchant/order/verify';
2025-09-15 10:32:08 +08:00
// 绑定推广码
static const String bindSpreadCodeId= '/app/member/bind/spread';
2025-08-21 10:50:38 +08:00
}