12345678910111213141516171819202122232425262728 |
- //
- // RQHTTPService+RQPostEamilInfo.m
- // SDJK
- //
- // Created by 张嵘 on 2022/7/1.
- //
- #import "RQHTTPService+RQPostEamilInfo.h"
- @implementation RQHTTPService (RQPostEamilInfo)
- /**
- 发送邮件
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)postEmailInfoWithAddress:(NSString *)address dictCode:(NSInteger)dictCode {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"address"] = address;
- subscript[@"dictCode"] = @(dictCode);
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_EmailInfo parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQBaseModel class]]
- rq_parsedResults];
- }
- @end
|