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
1aaea71e
Commit
1aaea71e
authored
Sep 09, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 HandyJSON 的使用
parent
dcc77b02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
YHUatHelper.swift
.../galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
+1
-0
YHUatHelperViewModel.swift
...lasses/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
+5
-5
No files found.
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
View file @
1aaea71e
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
import
Foundation
import
Foundation
enum
YHUatModules
:
Int
{
enum
YHUatModules
:
Int
{
/*
/*
默认展示
默认展示
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
View file @
1aaea71e
...
@@ -7,17 +7,17 @@
...
@@ -7,17 +7,17 @@
//
//
import
Foundation
import
Foundation
import
HandyJSON
import
SmartCodable
class
YHUatModel2
:
HandyJSON
{
class
YHUatModel2
:
SmartCodable
{
var
op
:
Int
=
-
1
//"op": 1, //1-可见 2-不可见 3-新界面
var
op
:
Int
=
-
1
//"op": 1, //1-可见 2-不可见 3-新界面
required
init
()
{
required
init
()
{
}
}
}
}
class
YHUatModel
:
HandyJSON
{
class
YHUatModel
:
SmartCodable
{
/*
/*
默认展示
默认展示
1、我的-我的名片、 true
1、我的-我的名片、 true
...
@@ -41,7 +41,7 @@ class YHUatModel : HandyJSON {
...
@@ -41,7 +41,7 @@ class YHUatModel : HandyJSON {
}
}
}
}
class
YHUatListModel
:
HandyJSON
{
class
YHUatListModel
:
SmartCodable
{
var
list
:
[
YHUatModel
]
=
[]
var
list
:
[
YHUatModel
]
=
[]
required
init
()
{
required
init
()
{
...
@@ -76,7 +76,7 @@ extension YHUatHelperViewModel {
...
@@ -76,7 +76,7 @@ extension YHUatHelperViewModel {
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
let
dic
=
json
.
data
let
dic
=
json
.
data
guard
let
resultModel
=
YHUatListModel
.
deserialize
(
from
:
dic
as?
Dictionary
)
else
{
guard
let
resultModel
=
YHUatListModel
.
deserialize
(
dict
:
dic
as?
[
AnyHashable
:
Any
]
)
else
{
callBackBlock
(
false
,
nil
)
callBackBlock
(
false
,
nil
)
return
return
}
}
...
...
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