feat:额外收费
This commit is contained in:
1 parent
2b956342f4
commit
e730b6923c
17 files changed
+461
-153
No files matched your search
@@ -1,6 +1,18 @@
|
||||
import 'package:pj_supermarket_cloud/common/index.dart';
|
||||
|
||||
abstract class WalletApi {
|
||||
/// 优惠列表
|
||||
static Future<List<DiscountsItem>?> getDiscountsListByUserId(
|
||||
dynamic params,
|
||||
) async {
|
||||
final res = await HttpManage().dio.get(
|
||||
"/wallet/wallet-setting/ad/get-discounts-list",
|
||||
queryParameters: params,
|
||||
);
|
||||
if (res.data == null) return null;
|
||||
return (res.data as List).map((e) => DiscountsItem.fromJson(e)).toList();
|
||||
}
|
||||
|
||||
/// 支付配置
|
||||
static Future<ServicePaySetting?> getPaySetting() async {
|
||||
final res = await HttpManage().dio.get(
|
||||
|
||||
Reference in new issue
Block a user