| | |
| | | case queryOfficalCarModel(calType:Int,startLonLat:String,endLonLat:String,startTime:String? = nil,endTime:String? = nil) |
| | | |
| | | case saveOrderBusiness(model:OfficalRequstModel) |
| | | |
| | | case approveOrderList(pageNum:Int) |
| | | |
| | | case approveOrderDetail(id:Int) |
| | | |
| | | case approveOrderAudit(id:Int,status:Int,auditRemark:String? = nil) |
| | | |
| | | } |
| | | |
| | |
| | | return "/api/business/queryBusinessCarModel" |
| | | case .saveOrderBusiness: |
| | | return "/api/business/saveOrderBusiness" |
| | | case .approveOrderList: |
| | | return "/api/business/approveOrderList" |
| | | case .approveOrderDetail: |
| | | return "/api/business/approveOrderDetail" |
| | | case .approveOrderAudit: |
| | | return "/api/business/approveOrder" |
| | | } |
| | | } |
| | | |
| | |
| | | let params = APIParamsAppender() |
| | | params.params = model.toJSON() ?? [:] |
| | | return .requestParameters(parameters: params.done(), encoding: URLEncoding.queryString) |
| | | |
| | | case .approveOrderList(let pageNum): |
| | | let params = APIParamsAppender() |
| | | .append(key: "pageNum", value: pageNum) |
| | | .append(key: "size", value: 20) |
| | | return .requestParameters(parameters: params.done(), encoding: URLEncoding.queryString) |
| | | |
| | | case .approveOrderDetail(let id): |
| | | let params = APIParamsAppender() |
| | | .append(key: "id", value: id) |
| | | return .requestParameters(parameters: params.done(), encoding: URLEncoding.queryString) |
| | | |
| | | case .approveOrderAudit(let id, let status, let auditRemark): |
| | | let params = APIParamsAppender() |
| | | .append(key: "id", value: id) |
| | | .append(key: "auditStatus", value: status) |
| | | .append(key: "auditRemark", value: auditRemark) |
| | | return .requestParameters(parameters: params.done(), encoding: URLEncoding.queryString) |
| | | } |
| | | } |
| | | } |