codigo actual del servidor, con avances de joan

This commit is contained in:
Jose Sanchez
2023-08-07 15:52:04 -04:00
commit 3cd9b8bbe8
3070 changed files with 532255 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
import 'dart:convert';
import 'package:active_ecommerce_seller_app/data_model/shop_info_response.dart';
import 'package:active_ecommerce_seller_app/helpers/shared_value_helper.dart';
import 'package:active_ecommerce_seller_app/repositories/shop_repository.dart';
class ShopInfoHelper{
setShopInfo()async{
var _shopInfo = await ShopRepository().getShopInfo();
shop_name.$=_shopInfo.shopInfo!.name!;
shop_name.save();
shop_logo.$=_shopInfo.shopInfo!.logo!;
shop_logo.save();
seller_email.$=_shopInfo.shopInfo!.email!;
seller_email.save();
shop_rating.$=_shopInfo.shopInfo!.rating.toString();
shop_rating.save();
shop_verify.$=_shopInfo.shopInfo!.verified!;
shop_verify.save();
verify_form_submitted.$=_shopInfo.shopInfo!.is_submitted_form!;
verify_form_submitted.save();
}
static loadShopInfo(){
shop_name.load();
shop_logo.load();
seller_email.load();
shop_rating.load();
shop_verify.load();
}
}