30 lines
775 B
Objective-C
30 lines
775 B
Objective-C
//
|
|
// YMFeedbackPresenter.m
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2021/9/17.
|
|
//
|
|
|
|
#import "XPMineFeedbackPresenter.h"
|
|
///Tool
|
|
#import "AccountInfoStorage.h"
|
|
///Api
|
|
#import "Api+Mine.h"
|
|
///P
|
|
#import "XPMineFeedbackProtocol.h"
|
|
|
|
@implementation XPMineFeedbackPresenter
|
|
|
|
/// 保存反馈
|
|
/// @param feedback 反馈的内容
|
|
/// @param contact 反馈的联系方式
|
|
- (void)saveFeedBackWith:(NSString *)feedback contact:(NSString *)contact {
|
|
NSString * uid = [AccountInfoStorage instance].getUid;
|
|
NSString * ticket = [AccountInfoStorage instance].getTicket;
|
|
[Api saveFeedBackWith:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
[[self getView] saveFeedbackSuccess];
|
|
} showLoading:YES] feedbackDesc:feedback contact:contact uid:uid ticket:ticket];
|
|
}
|
|
|
|
@end
|