Commit 1aaea71e authored by David黄金龙's avatar David黄金龙

删除 HandyJSON 的使用

parent dcc77b02
......@@ -7,6 +7,7 @@
//
import Foundation
enum YHUatModules: Int {
/*
默认展示
......
......@@ -7,17 +7,17 @@
//
import Foundation
import HandyJSON
import SmartCodable
class YHUatModel2 : HandyJSON {
class YHUatModel2 : SmartCodable {
var op : Int = -1 //"op": 1, //1-可见 2-不可见 3-新界面
required init() {
}
}
class YHUatModel : HandyJSON {
class YHUatModel : SmartCodable {
/*
默认展示
1、我的-我的名片、 true
......@@ -41,7 +41,7 @@ class YHUatModel : HandyJSON {
}
}
class YHUatListModel : HandyJSON {
class YHUatListModel : SmartCodable {
var list : [YHUatModel] = []
required init() {
......@@ -76,7 +76,7 @@ extension YHUatHelperViewModel {
//1. json字符串 转 对象
guard let self = self else { return }
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)
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment