authentication completed
This commit is contained in:
@@ -1,27 +1,34 @@
|
||||
// import 'dart:convert';
|
||||
import 'dart:convert';
|
||||
|
||||
// import 'package:vendor_app/src/core/constant/api.dart';
|
||||
// import 'package:vendor_app/src/core/network_services/api_services.dart';
|
||||
import 'package:grocery_app/src/core/constant/api.dart';
|
||||
import 'package:grocery_app/src/core/network_services/api_services.dart';
|
||||
|
||||
// class HomeService extends ApiService {
|
||||
|
||||
// Future getMe(data) async {
|
||||
// var response = await api.get(APIURL.getMe, data: jsonEncode(data));
|
||||
// //response.statusCode
|
||||
class ProductService extends ApiService {
|
||||
|
||||
// return response;
|
||||
// }
|
||||
Future getMe(data) async {
|
||||
var response = await api.get(APIURL.getMe, data: jsonEncode(data));
|
||||
//response.statusCode
|
||||
|
||||
// Future refresh_token(data) async
|
||||
// {
|
||||
// var response = await api.post(APIURL.refresh_token, data: jsonEncode(data));
|
||||
// //response.statusCode
|
||||
return response;
|
||||
}
|
||||
|
||||
// return response;
|
||||
// }
|
||||
Future refresh_token(data) async
|
||||
{
|
||||
var response = await api.post(APIURL.refresh_token, data: jsonEncode(data));
|
||||
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
Future getAllProduct(data) async {
|
||||
var response = await api.get(APIURL.getAllProduct, data: jsonEncode(data));
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user