Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
5a86d5ef
Commit
5a86d5ef
authored
Feb 27, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口添加
parent
a22fdb76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
YHMainApplicantInformationViewModel.swift
...tion(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
+4
-3
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+7
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
View file @
5a86d5ef
...
@@ -207,8 +207,9 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -207,8 +207,9 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
func
requestMainInformation
(
_
orderID
:
String
,
callBackBlock
:
@escaping
(
_
success
:
YHMainInformationModel
?,
_
error
:
YHErrorModel
?)
->
())
{
func
requestMainInformation
(
_
orderID
:
String
,
callBackBlock
:
@escaping
(
_
success
:
YHMainInformationModel
?,
_
error
:
YHErrorModel
?)
->
())
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
"frontend/order-information/get_information?order_id=
\(
orderID
)
"
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
OrderInformation
.
getInformation
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
[
weak
self
]
json
,
code
in
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderID
]
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
guard
let
model
=
NetBaseModel
.
deserialize
(
dict
:
json
)
else
{
guard
let
model
=
NetBaseModel
.
deserialize
(
dict
:
json
)
else
{
...
@@ -293,7 +294,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -293,7 +294,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
"hk_macao_pass"
:
hkID
,
"hk_macao_pass"
:
hkID
,
"passport"
:
passport
]
"passport"
:
passport
]
]
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
"frontend/order-information/update_information"
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
OrderInformation
.
updateInformation
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
callBackBlock
(
true
)
callBackBlock
(
true
)
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
5a86d5ef
...
@@ -91,4 +91,11 @@ class YHAllApiName {
...
@@ -91,4 +91,11 @@ class YHAllApiName {
//保存基本资料信息
//保存基本资料信息
static
let
updateBasicInfoApi
=
"frontend/basics/update_basics"
static
let
updateBasicInfoApi
=
"frontend/basics/update_basics"
}
}
struct
OrderInformation
{
//主申请人获取信息
static
let
getInformation
=
"infoflow/order-information/get_information"
// 主申请人信息更新
static
let
updateInformation
=
"infoflow/order-information/update_information"
}
}
}
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