Commit 12f09488 authored by Dio Maulana's avatar Dio Maulana

add brandcode every API

parent 49386a19
...@@ -17,6 +17,7 @@ class Api { ...@@ -17,6 +17,7 @@ class Api {
"mobile_phone": mobilePhone, "mobile_phone": mobilePhone,
"password": password, "password": password,
"app_version": getAppVersion(), "app_version": getAppVersion(),
"brand_code": brandCode,
}; };
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
dynamic jsonObject = await httpRequest( dynamic jsonObject = await httpRequest(
...@@ -53,6 +54,7 @@ class Api { ...@@ -53,6 +54,7 @@ class Api {
"mobile_phoen": mobile, "mobile_phoen": mobile,
"password": password, "password": password,
"confirm_password": cPassword, "confirm_password": cPassword,
"brand_code": brandCode,
}; };
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
...@@ -95,6 +97,7 @@ class Api { ...@@ -95,6 +97,7 @@ class Api {
Map<String, dynamic> data = { Map<String, dynamic> data = {
"mobile_phone": phone, "mobile_phone": phone,
"base_url": baseUrlToReset, "base_url": baseUrlToReset,
"brand_code": brandCode,
}; };
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
dynamic jsonObject = httpRequest( dynamic jsonObject = httpRequest(
...@@ -128,6 +131,7 @@ class Api { ...@@ -128,6 +131,7 @@ class Api {
try { try {
Map<String, dynamic> data = { Map<String, dynamic> data = {
"registration_id": registerId, "registration_id": registerId,
"brand_code": brandCode,
}; };
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
...@@ -163,6 +167,7 @@ class Api { ...@@ -163,6 +167,7 @@ class Api {
"param_id": id, "param_id": id,
"password": password, "password": password,
"password_confirmation": cPassword, "password_confirmation": cPassword,
"brand_code": brandCode,
}; };
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
dynamic jsonObject = await httpRequest( dynamic jsonObject = await httpRequest(
...@@ -193,6 +198,7 @@ class Api { ...@@ -193,6 +198,7 @@ class Api {
try { try {
Map<String, dynamic> data = { Map<String, dynamic> data = {
"param_id": idPath, "param_id": idPath,
"brand_code": brandCode,
}; };
String bodies = jsonEncode(data); String bodies = jsonEncode(data);
......
...@@ -9,6 +9,7 @@ import 'package:url_strategy/url_strategy.dart'; ...@@ -9,6 +9,7 @@ import 'package:url_strategy/url_strategy.dart';
late SharedPreferences prefs; late SharedPreferences prefs;
bool debug = true; bool debug = true;
String titleApp = 'Tour & Travel Agency'; String titleApp = 'Tour & Travel Agency';
String brandCode = 'AGR';
String baseUrl = "https://hibiscus-dev.ravku.com/"; String baseUrl = "https://hibiscus-dev.ravku.com/";
String endPoint = "agency/api/"; String endPoint = "agency/api/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment