| | |
| | | |
| | | @IBAction func submitAction(_ sender: UIButton) { |
| | | guard uploadModel != nil else {alert(msg: "Please upload image");return} |
| | | let model = HomeDetailAttachVC.AttachmentType(orderId: orderId, file: uploadModel!.url, name: uploadModel!.deleteUrl, categroy: recordEnum) |
| | | let model = HomeDetailAttachVC.AttachmentType(orderId: orderId, file: uploadModel!.url, name: uploadModel!.deleteUrl, category: recordEnum) |
| | | Services.addOrderAttachment(model: model).subscribe(onNext: { data in |
| | | if data.code == 200{ |
| | | alert(msg: "Upload successed") |