|
|
|
@ -19,7 +19,6 @@ import 'package:shared_preferences/shared_preferences.dart';
|
|
|
|
|
|
|
|
|
|
import 'data/address.dart'; |
|
|
|
|
import 'data/banner.dart'; |
|
|
|
|
import 'data/brand.dart'; |
|
|
|
|
import 'data/brand_data.dart'; |
|
|
|
|
import 'data/exchange_order.dart'; |
|
|
|
|
import 'data/goods.dart'; |
|
|
|
@ -31,10 +30,8 @@ import 'data/page.dart';
|
|
|
|
|
import 'data/rank.dart'; |
|
|
|
|
import 'data/sign_info.dart'; |
|
|
|
|
import 'data/store.dart'; |
|
|
|
|
import 'data/store_info.dart'; |
|
|
|
|
import 'data/upload_result.dart'; |
|
|
|
|
import 'data/user_bill.dart'; |
|
|
|
|
import 'data/user_entity.dart'; |
|
|
|
|
import 'data/user_info.dart'; |
|
|
|
|
import 'data/vip_card.dart'; |
|
|
|
|
import 'data/wx_pay.dart'; |
|
|
|
@ -45,8 +42,6 @@ const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式
|
|
|
|
|
const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 本地 |
|
|
|
|
|
|
|
|
|
@RestApi(baseUrl: baseUrl) |
|
|
|
|
abstract class ApiService { |
|
|
|
|
factory ApiService(Dio dio, |
|
|
|
@ -179,11 +174,13 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///积分商城商品列表 |
|
|
|
|
@POST("/creditGoods/list") |
|
|
|
|
Future<BaseData<PageInfo<Goods>>> creditGoods(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<Goods>>> creditGoods( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///积分商城商品分類列表 |
|
|
|
|
@POST("/creditGoodsCategory/page") |
|
|
|
|
Future<BaseData<PageInfo<GoodsCategory>>> goodsCategory(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<GoodsCategory>>> goodsCategory( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///积分商城商品详情 |
|
|
|
|
@GET("/creditGoods/{id}") |
|
|
|
@ -215,7 +212,8 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///兑换订单列表 |
|
|
|
|
@POST("/creditOrder/list") |
|
|
|
|
Future<BaseData<PageInfo<ExchangeOrder>>> creditOrderList(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<ExchangeOrder>>> creditOrderList( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///创建积分订单 |
|
|
|
|
@POST("/creditOrder/create") |
|
|
|
@ -243,11 +241,13 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///查询领券列表 |
|
|
|
|
@POST("/coupon/centreList") |
|
|
|
|
Future<BaseData<PageInfo<Coupon>>> queryCoupon(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<Coupon>>> queryCoupon( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///查询卡包列表 |
|
|
|
|
@POST("/coupon/packageList") |
|
|
|
|
Future<BaseData<PageInfo<Coupon>>> queryCard(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<Coupon>>> queryCard( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///门店地址列表 |
|
|
|
|
@POST("/store/list") |
|
|
|
@ -255,7 +255,8 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///分页查看资讯列表 |
|
|
|
|
@POST("/information/list") |
|
|
|
|
Future<BaseData<PageInfo<Activity>>> informationList(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<Activity>>> informationList( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///查看资讯详情 |
|
|
|
|
@GET("/information/{id}") |
|
|
|
@ -279,11 +280,13 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///分页查看资讯列表 |
|
|
|
|
@POST("/information/list") |
|
|
|
|
Future<BaseData<PageInfo<Article>>> queryArticle(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<Article>>> queryArticle( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///banner查询 |
|
|
|
|
@POST("/banner/page") |
|
|
|
|
Future<BaseData<PageInfo<BannerData>>> queryBanner(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<BannerData>>> queryBanner( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///品牌信息 |
|
|
|
|
@GET("/home/brand") |
|
|
|
@ -295,7 +298,8 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
/// |
|
|
|
|
@POST("/member/listBill") |
|
|
|
|
Future<BaseData<PageInfo<UserBill>>> queryBillInfo(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<UserBill>>> queryBillInfo( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///会员等级列表 |
|
|
|
|
@GET("/member/rankList") |
|
|
|
@ -303,7 +307,8 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///订单列表 |
|
|
|
|
@POST("/order/list") |
|
|
|
|
Future<BaseData<PageInfo<OrderInfo>>> orderList(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<OrderInfo>>> orderList( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///订单详情 |
|
|
|
|
@GET("/order/orderDetail?id={id}") |
|
|
|
@ -327,7 +332,8 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///分页查询App消息列表 |
|
|
|
|
@POST("/app-msg/list") |
|
|
|
|
Future<BaseData<PageInfo<Message>>> msgList(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<Message>>> msgList( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///App消息详情 |
|
|
|
|
@GET("/app-msg/{id}") |
|
|
|
@ -343,7 +349,8 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///查询评论列表 |
|
|
|
|
@POST("/memberComment/list") |
|
|
|
|
Future<BaseData<PageInfo<MemberCommentList>>> memberCommentList(@Body() Map<String, dynamic> param); |
|
|
|
|
Future<BaseData<PageInfo<MemberCommentList>>> memberCommentList( |
|
|
|
|
@Body() Map<String, dynamic> param); |
|
|
|
|
|
|
|
|
|
///评论点赞 |
|
|
|
|
@GET("/memberComment/likes/{id}") |
|
|
|
@ -355,6 +362,7 @@ abstract class ApiService {
|
|
|
|
|
|
|
|
|
|
///查询物流轨迹 |
|
|
|
|
@GET("/order/getShippingTrace/{shipperCode}/{logisticCode}") |
|
|
|
|
Future<BaseData<Logistics>> shippingTrace(@Path("shipperCode") String shipperCode, @Path("logisticCode") String logisticCode); |
|
|
|
|
|
|
|
|
|
Future<BaseData<Logistics>> shippingTrace( |
|
|
|
|
@Path("shipperCode") String shipperCode, |
|
|
|
|
@Path("logisticCode") String logisticCode); |
|
|
|
|
} |
|
|
|
|