Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
Tour Travel Agency AGR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
Tour Travel Agency AGR
Commits
12f09488
Commit
12f09488
authored
Jun 12, 2023
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add brandcode every API
parent
49386a19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
all_api.dart
lib/api/all_api.dart
+6
-0
main.dart
lib/main.dart
+1
-0
No files found.
lib/api/all_api.dart
View file @
12f09488
...
...
@@ -17,6 +17,7 @@ class Api {
"mobile_phone"
:
mobilePhone
,
"password"
:
password
,
"app_version"
:
getAppVersion
(),
"brand_code"
:
brandCode
,
};
String
bodies
=
jsonEncode
(
data
);
dynamic
jsonObject
=
await
httpRequest
(
...
...
@@ -53,6 +54,7 @@ class Api {
"mobile_phoen"
:
mobile
,
"password"
:
password
,
"confirm_password"
:
cPassword
,
"brand_code"
:
brandCode
,
};
String
bodies
=
jsonEncode
(
data
);
...
...
@@ -95,6 +97,7 @@ class Api {
Map
<
String
,
dynamic
>
data
=
{
"mobile_phone"
:
phone
,
"base_url"
:
baseUrlToReset
,
"brand_code"
:
brandCode
,
};
String
bodies
=
jsonEncode
(
data
);
dynamic
jsonObject
=
httpRequest
(
...
...
@@ -128,6 +131,7 @@ class Api {
try
{
Map
<
String
,
dynamic
>
data
=
{
"registration_id"
:
registerId
,
"brand_code"
:
brandCode
,
};
String
bodies
=
jsonEncode
(
data
);
...
...
@@ -163,6 +167,7 @@ class Api {
"param_id"
:
id
,
"password"
:
password
,
"password_confirmation"
:
cPassword
,
"brand_code"
:
brandCode
,
};
String
bodies
=
jsonEncode
(
data
);
dynamic
jsonObject
=
await
httpRequest
(
...
...
@@ -193,6 +198,7 @@ class Api {
try
{
Map
<
String
,
dynamic
>
data
=
{
"param_id"
:
idPath
,
"brand_code"
:
brandCode
,
};
String
bodies
=
jsonEncode
(
data
);
...
...
lib/main.dart
View file @
12f09488
...
...
@@ -9,6 +9,7 @@ import 'package:url_strategy/url_strategy.dart';
late
SharedPreferences
prefs
;
bool
debug
=
true
;
String
titleApp
=
'Tour & Travel Agency'
;
String
brandCode
=
'AGR'
;
String
baseUrl
=
"https://hibiscus-dev.ravku.com/"
;
String
endPoint
=
"agency/api/"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment