装扮购买、赠送接口参数修改

This commit is contained in:
chenguilong
2022-08-04 18:40:30 +08:00
parent 0650dcdc01
commit ff0e889aff
7 changed files with 28 additions and 29 deletions

View File

@@ -34,6 +34,10 @@ typedef NS_ENUM(NSInteger, SecretaryRouterType) {
SecretaryRouterType_User_Card = 55,
///贵族气泡
SecretaryRouterType_Nobel_Bubble = 56,
///装扮商城
SecretaryRouterType_Dressup_Shop = 73,
///我的装扮
SecretaryRouterType_My_Dressup = 74,
};
@interface ContentSecretaryModel : NSObject

View File

@@ -27,6 +27,7 @@
#import "XPMineRechargeViewController.h"
#import "XPMineUserInfoViewController.h"
#import "XPMineDressUpViewController.h"
#import "XPDressUpShopViewController.h"
#import "XPNobleCenterViewController.h"
#import "XPMineLoginPasswordViewController.h"
///P
@@ -219,6 +220,21 @@
} uid:[AccountInfoStorage instance].getUid];
}
break;
case SecretaryRouterType_Dressup_Shop:
{
XPDressUpShopViewController *vc = [[XPDressUpShopViewController alloc] init];
vc.currentIndex = [value integerValue];
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES];
}
break;
case SecretaryRouterType_My_Dressup:
{
XPMineDressUpViewController * dressUpVC = [[XPMineDressUpViewController alloc] init];
dressUpVC.currentIndex = [value integerValue];
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:dressUpVC animated:YES];
}
break;
default:
break;
}

View File

@@ -87,16 +87,14 @@ NS_ASSUME_NONNULL_BEGIN
/// 购买装扮
/// @param completion 完成
/// @param dressType 装扮类型
/// @param dressId 装扮id
+ (void)requestDressUpShopBuy:(HttpRequestHelperCompletion)completion dressType:(NSString *)dressType dressId:(NSString *)dressId;
+ (void)requestDressUpShopBuy:(HttpRequestHelperCompletion)completion id:(NSString *)dressId;
/// 赠送装扮
/// @param completion 完成
/// @param dressType 装扮类型
/// @param dressId 装扮ID
/// @param targetUid 目标用户UID
+ (void)requestSendDress:(HttpRequestHelperCompletion)completion dressType:(NSString *)dressType dressId:(NSString *)dressId targetUid:(NSString *)targetUid;
+ (void)requestSendDress:(HttpRequestHelperCompletion)completion id:(NSString *)dressId targetUid:(NSString *)targetUid;
@end

View File

@@ -117,17 +117,16 @@
///
/// @param completion
/// @param dressId id
+ (void)requestDressUpShopBuy:(HttpRequestHelperCompletion)completion dressType:(NSString *)dressType dressId:(NSString *)dressId {
[self makeRequest:@"dress/shop/buy" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, dressType, dressId, nil];
+ (void)requestDressUpShopBuy:(HttpRequestHelperCompletion)completion id:(NSString *)dressId {
[self makeRequest:@"dress/shop/buy" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, dressId, nil];
}
///
/// @param completion
/// @param dressType
/// @param dressId ID
/// @param targetUid UID
+ (void)requestSendDress:(HttpRequestHelperCompletion)completion dressType:(NSString *)dressType dressId:(NSString *)dressId targetUid:(NSString *)targetUid {
[self makeRequest:@"dress/shop/give" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, dressType, dressId, targetUid, nil];
+ (void)requestSendDress:(HttpRequestHelperCompletion)completion id:(NSString *)dressId targetUid:(NSString *)targetUid {
[self makeRequest:@"dress/shop/give" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, dressId, targetUid, nil];
}
@end

View File

@@ -27,7 +27,7 @@
- (void)buyDressUp:(DressUpShopListType)dressType dressId:(NSString *)dressId {
[Api requestDressUpShopBuy:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
[[self getView] buyShopDressSuccessWithType:dressType];
} showLoading:YES] dressType:[NSString stringWithFormat:@"%zd", dressType] dressId:dressId];
} showLoading:YES] id:dressId];
}
@end

View File

@@ -114,7 +114,7 @@
} else {
[self showErrorToast:msg];
}
} dressType:[NSString stringWithFormat:@"%zd", self.dressType] dressId:self.dressId targetUid:resultModel.uid];
} id:self.dressId targetUid:resultModel.uid];
}
#pragma mark - XPHomeSearchProtocol

View File

@@ -346,24 +346,6 @@ NSString * const kJSOpenRoomForGiftId = @"openRoomForGiftId";
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES];
}
break;
case 73:
{
//
NSString *index = [NSString stringWithFormat:@"%@", bodyDict[@"routerVal"]];
XPDressUpShopViewController *vc = [[XPDressUpShopViewController alloc] init];
vc.currentIndex = [index integerValue];
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES];
}
break;
case 74:
{
//
NSString *index = [NSString stringWithFormat:@"%@", bodyDict[@"routerVal"]];
XPMineDressUpViewController *vc = [[XPMineDressUpViewController alloc] init];
vc.currentIndex = [index integerValue];
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES];
}
break;
default:
break;
}