Commit 7297531f authored by David黄金龙's avatar David黄金龙

修改 函数扩展

parent c3820a79
...@@ -14,7 +14,10 @@ class YHPrincleViewModel: YHBaseViewModel { ...@@ -14,7 +14,10 @@ class YHPrincleViewModel: YHBaseViewModel {
var waitResultModel = YHPrincipleWaitResultModel() var waitResultModel = YHPrincipleWaitResultModel()
var envelopModel = YHPrincipleEnvelopeModel() var envelopModel = YHPrincipleEnvelopeModel()
var uploadDetailModel = YHPrincipleUploadDetailModel() var uploadDetailModel = YHPrincipleUploadDetailModel()
}
extension YHPrincleViewModel {
func getPrincipleWaitReviewResult(params:[String : Any], callback:((_ success: Bool,_ error:YHErrorModel?)->())?) { func getPrincipleWaitReviewResult(params:[String : Any], callback:((_ success: Bool,_ error:YHErrorModel?)->())?) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Principle.getProfileList let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Principle.getProfileList
...@@ -226,9 +229,9 @@ class YHPrincleViewModel: YHBaseViewModel { ...@@ -226,9 +229,9 @@ class YHPrincleViewModel: YHBaseViewModel {
// model.date = "2024-12-12" // model.date = "2024-12-12"
// return model // return model
// } // }
// //
// func getTestModel() -> YHPrincipleWaitResultModel { // func getTestModel() -> YHPrincipleWaitResultModel {
// //
// var files: [YHFileNumberList] = [] // var files: [YHFileNumberList] = []
// let m = YHFileNumberList() // let m = YHFileNumberList()
// m.applicationName = "杜宇" // m.applicationName = "杜宇"
...@@ -252,7 +255,7 @@ class YHPrincleViewModel: YHBaseViewModel { ...@@ -252,7 +255,7 @@ class YHPrincleViewModel: YHBaseViewModel {
// //
// let applicant = YHApplicant() // let applicant = YHApplicant()
// applicant.userName = "哈哈哈" // applicant.userName = "哈哈哈"
// //
// let model = YHPrincipleWaitResultModel(lastQueryAt: "2024-12-01 23:34:12", // let model = YHPrincipleWaitResultModel(lastQueryAt: "2024-12-01 23:34:12",
// queryCount: 40, // queryCount: 40,
// fileNumberList: files, // fileNumberList: files,
...@@ -261,6 +264,7 @@ class YHPrincleViewModel: YHBaseViewModel { ...@@ -261,6 +264,7 @@ class YHPrincleViewModel: YHBaseViewModel {
// applicationFileNumberAttachment: "你要死啊") // applicationFileNumberAttachment: "你要死啊")
// return model // return model
// } // }
// //
} }
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