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
896f278d
Commit
896f278d
authored
Aug 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// model 及其数组实现深拷贝
parent
e4917586
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
YHHKMemberModel.swift
...办证段)/AppointCertificate(3 赴港办证预约)/M/YHHKMemberModel.swift
+16
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/M/YHHKMemberModel.swift
View file @
896f278d
...
...
@@ -9,7 +9,14 @@
import
UIKit
import
SmartCodable
class
YHHKMemberModel
:
SmartCodable
{
// [YHHKMemberModel] 数组实现神拷贝
extension
Array
where
Element
==
YHHKMemberModel
{
func
deepCopy
()
throws
->
[
YHHKMemberModel
]
{
return
map
{
$0
.
copy
()
as!
YHHKMemberModel
}
}
}
class
YHHKMemberModel
:
SmartCodable
,
NSCopying
{
var
id
:
Int
=
0
var
name
:
String
=
""
...
...
@@ -20,6 +27,9 @@ class YHHKMemberModel: SmartCodable {
var
url
:
String
=
""
var
approvalDate
:
String
=
""
// 自定义
var
isSelect
:
Bool
=
false
var
isSelectedFlag
:
Bool
=
false
//本地使用
enum
CodingKeys
:
String
,
CodingKey
{
...
...
@@ -48,6 +58,11 @@ class YHHKMemberModel: SmartCodable {
self
.
approvalDate
=
approvalDate
}
func
copy
(
with
zone
:
NSZone
?
=
nil
)
->
Any
{
return
YHHKMemberModel
(
id
:
self
.
id
,
name
:
self
.
name
,
type
:
self
.
type
,
fileNum
:
self
.
fileNum
,
birthday
:
self
.
birthday
,
isCheck
:
self
.
isCheck
,
url
:
self
.
url
,
approvalDate
:
self
.
approvalDate
)
}
func
isAtLeast11Years
()
->
Bool
{
return
self
.
_isAtLeast11Years
(
from
:
self
.
birthday
)
}
...
...
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