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
c03c4d7e
Commit
c03c4d7e
authored
Jul 29, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 在港递交预约
parent
5c7eb4bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
21 deletions
+37
-21
YHResignAppointViewModel.swift
...ResignHKAppoint(在港递交预约)/VM/YHResignAppointViewModel.swift
+35
-21
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/Resign(续签)/ResignHKAppoint(在港递交预约)/VM/YHResignAppointViewModel.swift
View file @
c03c4d7e
...
...
@@ -7,6 +7,16 @@
//
import
UIKit
import
SmartCodable
class
YHResingTimeModel
:
SmartCodable
{
var
stay_deadline
:
String
=
""
var
stay_deadline_start
:
String
=
""
required
init
()
{
}
}
class
YHResignAppointViewModel
:
NSObject
{
...
...
@@ -15,6 +25,31 @@ class YHResignAppointViewModel: NSObject {
// 预约列表预约
var
scheduleInfoList
:
YHResignScheduleListModel
=
YHResignScheduleListModel
()
// 获取续签提交时间
func
getResignSubmitTime
(
renewalId
:
Int
,
userIds
:
[
Int
],
callBack
:
@escaping
(
_
result
:
YHResingTimeModel
?)
->
Void
)
{
let
params
:
[
String
:
Any
]
=
[
"renewal_id"
:
renewalId
,
"user_id"
:
userIds
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignAppoint
.
submitTime
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{[
weak
self
]
json
,
_
in
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHResingTimeModel
.
deserialize
(
from
:
dic
)
else
{
// let err = YHErrorModel(errorCode: YHErrorCode.dictParseError.rawValue, errorMsg: YHErrorCode.dictParseError.description())
callBack
(
nil
)
return
}
callBack
(
resultModel
)
}
else
{
// let err = YHErrorModel(errorCode: Int32(json.code), errorMsg: json.msg.isEmpty ? "" : json.msg)
callBack
(
nil
)
}
}
failBlock
:
{
_
in
callBack
(
nil
)
}
}
// 赴港人员列表
func
getResignAppointUserlist
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
params
=
[
"renewal_id"
:
renewalId
]
...
...
@@ -46,27 +81,6 @@ class YHResignAppointViewModel: NSObject {
}
}
func
getUsers
()
->
[
YHResignAppointMember
]
{
let
m1
=
YHResignAppointMember
()
m1
.
apply_name
=
"刘德华"
m1
.
id
=
123
let
m2
=
YHResignAppointMember
()
m2
.
apply_name
=
"黎明"
m2
.
id
=
124
let
m3
=
YHResignAppointMember
()
m3
.
apply_name
=
"郭富城"
m3
.
id
=
125
let
m4
=
YHResignAppointMember
()
m4
.
apply_name
=
"张学友"
m4
.
id
=
126
return
[
m1
,
m2
,
m3
,
m4
]
}
// 预约列表预约
func
getScheduleInfoList
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
params
=
[
"renewal_id"
:
renewalId
]
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
c03c4d7e
...
...
@@ -622,6 +622,8 @@ class YHAllApiName {
static
let
submitAppoint
=
"super-app/renewal/reservation/submit"
// 提交确认在港
static
let
confirmInHK
=
"super-app/renewal/confirm-stay-hk"
//
static
let
submitTime
=
"super-app/renewal/submit-time"
}
// 续签信息确认
...
...
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