Commit cd6e73affd1da2ff48108d256bfe9b09a76fd287
1 parent
49c8a9ff
暴露方法修改 礼物流程基本跑通
Showing
14 changed files
with
190 additions
and
33 deletions
DSCnliveShopSDK.podspec
| 1 | 1 | ||
| 2 | Pod::Spec.new do |s| | 2 | Pod::Spec.new do |s| |
| 3 | s.name = 'DSCnliveShopSDK' | 3 | s.name = 'DSCnliveShopSDK' |
| 4 | - s.version = '0.3.4.006' | 4 | + s.version = '0.3.4.007' |
| 5 | s.summary = 'cnlive电商SDK' | 5 | s.summary = 'cnlive电商SDK' |
| 6 | s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/DSCnliveShopSDK' | 6 | s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/DSCnliveShopSDK' |
| 7 | s.license = { :type => 'MIT', :file => 'LICENSE' } | 7 | s.license = { :type => 'MIT', :file => 'LICENSE' } |
| @@ -21,6 +21,7 @@ Pod::Spec.new do |s| | @@ -21,6 +21,7 @@ Pod::Spec.new do |s| | ||
| 21 | s.dependency 'Qiniu', '7.2.5' | 21 | s.dependency 'Qiniu', '7.2.5' |
| 22 | s.dependency 'Masonry', '1.1.0' | 22 | s.dependency 'Masonry', '1.1.0' |
| 23 | s.dependency 'PLPlayerKit', '~> 3.4.3' | 23 | s.dependency 'PLPlayerKit', '~> 3.4.3' |
| 24 | + s.dependency 'TXIMSDK_iOS' | ||
| 24 | s.dependency 'CNLiveRequestBastKit' | 25 | s.dependency 'CNLiveRequestBastKit' |
| 25 | s.dependency 'CNLiveSDKs/CNLiveEncryptSDK' | 26 | s.dependency 'CNLiveSDKs/CNLiveEncryptSDK' |
| 26 | s.dependency 'CNLiveSDKs/CNLivePaySDK' | 27 | s.dependency 'CNLiveSDKs/CNLivePaySDK' |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/DSCnliveShopSDK
No preview for this file type
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/DSGiftResource.bundle/GiveGift/ChatAlert/DS_Opt_Give_CA_edit@2x.png
0 → 100644
670 Bytes
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/DSGiftResource.bundle/GiveGift/ChatAlert/DS_Opt_Give_CA_edit@3x.png
0 → 100644
993 Bytes
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSCnliveShopSDK.h
| @@ -15,6 +15,7 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | @@ -15,6 +15,7 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | ||
| 15 | 15 | ||
| 16 | #import <DSCnliveShopSDK/DSCnliveShopSDKManager.h> | 16 | #import <DSCnliveShopSDK/DSCnliveShopSDKManager.h> |
| 17 | #import <DSCnliveShopSDK/DSCnliveShopSDKSkip.h> | 17 | #import <DSCnliveShopSDK/DSCnliveShopSDKSkip.h> |
| 18 | +#import <DSCnliveShopSDK/DSCnliveShopSDKCheck.h> | ||
| 18 | #import <DSCnliveShopSDK/DSCnliveShopSDKProtocol.h> | 19 | #import <DSCnliveShopSDK/DSCnliveShopSDKProtocol.h> |
| 19 | #import <DSCnliveShopSDK/DSCnliveShopSDKShareModel.h> | 20 | #import <DSCnliveShopSDK/DSCnliveShopSDKShareModel.h> |
| 20 | #import <DSCnliveShopSDK/DSCnliveShopSDKConstant.h> | 21 | #import <DSCnliveShopSDK/DSCnliveShopSDKConstant.h> |
| @@ -23,12 +24,10 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | @@ -23,12 +24,10 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | ||
| 23 | #import <DSCnliveShopSDK/DSCnliveShopSDKPBaseViewController.h> | 24 | #import <DSCnliveShopSDK/DSCnliveShopSDKPBaseViewController.h> |
| 24 | #import <DSCnliveShopSDK/DSNavButton.h> | 25 | #import <DSCnliveShopSDK/DSNavButton.h> |
| 25 | 26 | ||
| 26 | -#import <DSCnliveShopSDK/DSOrderListViewController.h> | ||
| 27 | -#import <DSCnliveShopSDK/DSAfterSaleListViewController.h> | ||
| 28 | -#import <DSCnliveShopSDK/DSHappHPParentViewController.h> | ||
| 29 | -#import <DSCnliveShopSDK/DSROrderListViewController.h> | ||
| 30 | -#import <DSCnliveShopSDK/DSServiceHPViewController.h> | 27 | +#import <DSCnliveShopSDK/DSOGiveGiftsViewController.h> |
| 31 | #import <DSCnliveShopSDK/DSOMyGivingGiftsListViewController.h> | 28 | #import <DSCnliveShopSDK/DSOMyGivingGiftsListViewController.h> |
| 29 | +#import <DSCnliveShopSDK/DSOGiftDetailsViewController.h> | ||
| 30 | +#import <DSCnliveShopSDK/DSOGiftDetailsEnum.h> | ||
| 32 | 31 | ||
| 33 | #import <DSCnliveShopSDK/DSAddressRequest.h> | 32 | #import <DSCnliveShopSDK/DSAddressRequest.h> |
| 34 | #import <DSCnliveShopSDK/DSAddressEnum.h> | 33 | #import <DSCnliveShopSDK/DSAddressEnum.h> |
| @@ -38,12 +37,19 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | @@ -38,12 +37,19 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | ||
| 38 | #import <DSCnliveShopSDK/DSAddressViewController.h> | 37 | #import <DSCnliveShopSDK/DSAddressViewController.h> |
| 39 | #import <DSCnliveShopSDK/DSEditAddressViewController.h> | 38 | #import <DSCnliveShopSDK/DSEditAddressViewController.h> |
| 40 | 39 | ||
| 40 | +#import <DSCnliveShopSDK/DSOrderListViewController.h> | ||
| 41 | +#import <DSCnliveShopSDK/DSAfterSaleListViewController.h> | ||
| 42 | +#import <DSCnliveShopSDK/DSHappHPParentViewController.h> | ||
| 43 | +#import <DSCnliveShopSDK/DSROrderListViewController.h> | ||
| 44 | +#import <DSCnliveShopSDK/DSServiceHPViewController.h> | ||
| 45 | + | ||
| 41 | #import <DSCnliveShopSDK/DSCnliveShopSDKExampleListViewController.h> | 46 | #import <DSCnliveShopSDK/DSCnliveShopSDKExampleListViewController.h> |
| 42 | 47 | ||
| 43 | #else | 48 | #else |
| 44 | 49 | ||
| 45 | #import "DSCnliveShopSDKManager.h" | 50 | #import "DSCnliveShopSDKManager.h" |
| 46 | #import "DSCnliveShopSDKSkip.h" | 51 | #import "DSCnliveShopSDKSkip.h" |
| 52 | +#import "DSCnliveShopSDKCheck.h" | ||
| 47 | #import "DSCnliveShopSDKProtocol.h" | 53 | #import "DSCnliveShopSDKProtocol.h" |
| 48 | #import "DSCnliveShopSDKShareModel.h" | 54 | #import "DSCnliveShopSDKShareModel.h" |
| 49 | #import "DSCnliveShopSDKConstant.h" | 55 | #import "DSCnliveShopSDKConstant.h" |
| @@ -52,12 +58,10 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | @@ -52,12 +58,10 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | ||
| 52 | #import "DSCnliveShopSDKPBaseViewController.h" | 58 | #import "DSCnliveShopSDKPBaseViewController.h" |
| 53 | #import "DSNavButton.h" | 59 | #import "DSNavButton.h" |
| 54 | 60 | ||
| 55 | -#import "DSOrderListViewController.h" | ||
| 56 | -#import "DSAfterSaleListViewController.h" | ||
| 57 | -#import "DSHappHPParentViewController.h" | ||
| 58 | -#import "DSROrderListViewController.h" | ||
| 59 | -#import "DSServiceHPViewController.h" | 61 | +#import "DSOGiveGiftsViewController.h" |
| 60 | #import "DSOMyGivingGiftsListViewController.h" | 62 | #import "DSOMyGivingGiftsListViewController.h" |
| 63 | +#import "DSOGiftDetailsViewController.h" | ||
| 64 | +#import "DSOGiftDetailsEnum.h" | ||
| 61 | 65 | ||
| 62 | #import "DSAddressRequest.h" | 66 | #import "DSAddressRequest.h" |
| 63 | #import "DSAddressEnum.h" | 67 | #import "DSAddressEnum.h" |
| @@ -67,6 +71,12 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | @@ -67,6 +71,12 @@ FOUNDATION_EXPORT const unsigned char DSCnliveShopSDKVersionString[]; | ||
| 67 | #import "DSAddressViewController.h" | 71 | #import "DSAddressViewController.h" |
| 68 | #import "DSEditAddressViewController.h" | 72 | #import "DSEditAddressViewController.h" |
| 69 | 73 | ||
| 74 | +#import "DSOrderListViewController.h" | ||
| 75 | +#import "DSAfterSaleListViewController.h" | ||
| 76 | +#import "DSHappHPParentViewController.h" | ||
| 77 | +#import "DSROrderListViewController.h" | ||
| 78 | +#import "DSServiceHPViewController.h" | ||
| 79 | + | ||
| 70 | #import "DSCnliveShopSDKExampleListViewController.h" | 80 | #import "DSCnliveShopSDKExampleListViewController.h" |
| 71 | 81 | ||
| 72 | #endif | 82 | #endif |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSCnliveShopSDKCheck.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSCnliveShopSDKCheck.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/6. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface DSCnliveShopSDKCheck : NSObject | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 检测分享类型 | ||
| 17 | + | ||
| 18 | + @param shareUrl 分享url | ||
| 19 | + @return 分享类型 -1不是电商分享 1文创商品 2普通商品 3主题活动 4店铺首页 5达人 6动态 7达人列表 8礼物分享 9优选库首页 10电影作品详情 12服务号 ... | ||
| 20 | + 分享类型之后会有更多 不能用枚举写了 只要不是-1就是电商的 | ||
| 21 | + */ | ||
| 22 | +-(NSInteger)checkShareTypeByShareUrl:(nonnull NSString*)shareUrl; | ||
| 23 | + | ||
| 24 | +/// 检测是否有礼物 | ||
| 25 | +/// @param completion 检测回调 isHave有没有礼物 有礼物跳转礼物详情 没礼物跳转h5 | ||
| 26 | +/// errorCode 0没错 1没登录 2请求错误 errorMessage错误信息 | ||
| 27 | +-(void)checkIsHaveGiftCompletion:(void (^)(BOOL isHave, NSString * _Nullable giftOrderId, NSString * _Nullable url, NSUInteger errorCode, NSString * _Nullable errorMessage))completion; | ||
| 28 | + | ||
| 29 | +@end | ||
| 30 | + | ||
| 31 | +NS_ASSUME_NONNULL_END |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSCnliveShopSDKEnum.h
| @@ -10,19 +10,32 @@ | @@ -10,19 +10,32 @@ | ||
| 10 | #define DSCnliveShopSDKEnum_h | 10 | #define DSCnliveShopSDKEnum_h |
| 11 | 11 | ||
| 12 | typedef NS_ENUM(NSUInteger, DSUserLoginStatus) {//登录状态 | 12 | typedef NS_ENUM(NSUInteger, DSUserLoginStatus) {//登录状态 |
| 13 | - DSUserLoginStatusNotLogged = 0, //未登录 | ||
| 14 | - DSUserLoginStatusLogged //已登录 | 13 | + DSUserLoginStatusNotLogged = 0, //未登录 |
| 14 | + DSUserLoginStatusLogged //已登录 | ||
| 15 | }; | 15 | }; |
| 16 | 16 | ||
| 17 | typedef NS_ENUM(NSUInteger, DSClearSTVCType) {//清除保存的目标控制器类型 | 17 | typedef NS_ENUM(NSUInteger, DSClearSTVCType) {//清除保存的目标控制器类型 |
| 18 | - DSClearSTVCTypeNone = 0, //不清除 | ||
| 19 | - DSClearSTVCTypeLoginProcess, //登录流程保存的控制器 | 18 | + DSClearSTVCTypeNone = 0, //不清除 |
| 19 | + DSClearSTVCTypeLoginProcess, //登录流程保存的控制器 | ||
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | typedef NS_ENUM(NSUInteger, DSServiceSkipType) {//服务号跳转类型 | 22 | typedef NS_ENUM(NSUInteger, DSServiceSkipType) {//服务号跳转类型 |
| 23 | - DSServiceSkipTypeReleaseInterface = 0, //跳转发布界面 | ||
| 24 | - DSServiceSkipTypeOnlineGamesVC, //跳转线上赛事界面 | ||
| 25 | - DSServiceSkipTypeGlobalGoodsShopVC, //跳转环球优物界面 | 23 | + DSServiceSkipTypeReleaseInterface = 0, //跳转发布界面 |
| 24 | + DSServiceSkipTypeOnlineGamesVC, //跳转线上赛事界面 | ||
| 25 | + DSServiceSkipTypeGlobalGoodsShopVC, //跳转环球优物界面 | ||
| 26 | +}; | ||
| 27 | + | ||
| 28 | +typedef NS_ENUM(NSUInteger, DSUMengCheckType) {//友盟查看类型 | ||
| 29 | + DSUMengCheckTypeViewController = 0, //查看控制器 | ||
| 30 | + DSUMengCheckTypeActionMethod, //查看事件方法 | ||
| 31 | +}; | ||
| 32 | + | ||
| 33 | +typedef NS_ENUM(NSUInteger, DSUMengCheckSLType) {//友盟查看二级类型 | ||
| 34 | + //查看控制器 | ||
| 35 | + DSUMengCheckSLTypeServiceHP = 0, //服务号首页 | ||
| 36 | + //查看事件方法 | ||
| 37 | + DSUMengCheckSLTypeServiceHPClickSearch, //服务号首页点击搜索 | ||
| 38 | + DSUMengCheckSLTypeServiceHPClickItem, //服务号首页点击item | ||
| 26 | }; | 39 | }; |
| 27 | 40 | ||
| 28 | #endif /* DSCnliveShopSDKEnum_h */ | 41 | #endif /* DSCnliveShopSDKEnum_h */ |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSCnliveShopSDKManager.h
| @@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
| 9 | #import <UIKit/UIKit.h> | 9 | #import <UIKit/UIKit.h> |
| 10 | #import "DSCnliveShopSDKProtocol.h" | 10 | #import "DSCnliveShopSDKProtocol.h" |
| 11 | #import "DSCnliveShopSDKSkip.h" | 11 | #import "DSCnliveShopSDKSkip.h" |
| 12 | +#import "DSCnliveShopSDKCheck.h" | ||
| 12 | #import "DSCnliveShopSDKEnum.h" | 13 | #import "DSCnliveShopSDKEnum.h" |
| 13 | 14 | ||
| 14 | NS_ASSUME_NONNULL_BEGIN | 15 | NS_ASSUME_NONNULL_BEGIN |
| @@ -91,17 +92,9 @@ NS_ASSUME_NONNULL_BEGIN | @@ -91,17 +92,9 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 91 | #pragma mark - 检测 | 92 | #pragma mark - 检测 |
| 92 | 93 | ||
| 93 | /** | 94 | /** |
| 94 | - 检测分享类型 | ||
| 95 | - | ||
| 96 | - @param shareUrl 分享url | ||
| 97 | - @return 分享类型 -1不是电商分享 1文创商品 2普通商品 3主题活动 4店铺首页 5达人 6动态 7达人列表 8礼物分享 9优选库首页 10电影作品详情 12服务号 ... | ||
| 98 | - 分享类型之后会有更多 不能用枚举写了 只要不是-1就是电商的 | 95 | + 检测类 |
| 99 | */ | 96 | */ |
| 100 | --(NSInteger)checkShareTypeByShareUrl:(nonnull NSString*)shareUrl; | ||
| 101 | - | ||
| 102 | -/// 检测是否有礼物 | ||
| 103 | -/// @param completion 检测回调 | ||
| 104 | --(void)checkIsHaveGiftCompletion:(void (^)(BOOL isHave))completion; | 97 | +@property (nonatomic,strong,nonnull,readonly) DSCnliveShopSDKCheck * check; |
| 105 | 98 | ||
| 106 | #pragma mark - 跳转 | 99 | #pragma mark - 跳转 |
| 107 | 100 |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSCnliveShopSDKProtocol.h
| @@ -160,6 +160,13 @@ | @@ -160,6 +160,13 @@ | ||
| 160 | /// @param fromVC 当前控制器 | 160 | /// @param fromVC 当前控制器 |
| 161 | -(void)serviceSkipWithSkipType:(DSServiceSkipType)skipType fromVC:(nonnull UIViewController*)fromVC; | 161 | -(void)serviceSkipWithSkipType:(DSServiceSkipType)skipType fromVC:(nonnull UIViewController*)fromVC; |
| 162 | 162 | ||
| 163 | +#pragma mark - 友盟检测回调 | ||
| 164 | + | ||
| 165 | +/// 友盟检测回调 | ||
| 166 | +/// @param checkType 检测类型 | ||
| 167 | +/// @param subType 检测子类型 | ||
| 168 | +-(void)uMengCheckCallBackType:(DSUMengCheckType)checkType subType:(DSUMengCheckSLType)subType; | ||
| 169 | + | ||
| 163 | @end | 170 | @end |
| 164 | 171 | ||
| 165 | #endif /* DSCnliveShopSDKProtocol_h */ | 172 | #endif /* DSCnliveShopSDKProtocol_h */ |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSCnliveShopSDKSkip.h
| @@ -92,12 +92,10 @@ NS_ASSUME_NONNULL_BEGIN | @@ -92,12 +92,10 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 92 | /// @param animated 是否有动画 | 92 | /// @param animated 是否有动画 |
| 93 | -(void)successLoggedSkipTargetVCWithCurrentVC:(nonnull UIViewController*)currentVC animated:(BOOL)animated; | 93 | -(void)successLoggedSkipTargetVCWithCurrentVC:(nonnull UIViewController*)currentVC animated:(BOOL)animated; |
| 94 | 94 | ||
| 95 | -/// 跳转收礼界面 | ||
| 96 | -/// @param giftOrderId 礼物订单id (如果没传会自行获取没有填写地址订单的id,此为已登录的前提) | ||
| 97 | -/// @param receivingValidTime 礼物有效时间(收礼前需要) | 95 | +/// 跳转h5界面 |
| 96 | +/// @param url h5链接 | ||
| 98 | /// @param currentVC 当前控制器 | 97 | /// @param currentVC 当前控制器 |
| 99 | -/// @return YES成功跳转 NO跳转失败,没有查到礼物订单id | ||
| 100 | --(BOOL)skipReceivingGiftsVCWithGiftOrderId:(nullable NSString*)giftOrderId receivingValidTime:(NSTimeInterval)receivingValidTime currentVC:(nonnull UIViewController*)currentVC; | 98 | +-(void)skipWebVCWithUrl:(NSString*)url currentVC:(nonnull UIViewController*)currentVC; |
| 101 | 99 | ||
| 102 | @end | 100 | @end |
| 103 | 101 |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSOGiftDetailsEnum.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSOGiftDetailsEnum.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/2. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#ifndef DSOGiftDetailsEnum_h | ||
| 10 | +#define DSOGiftDetailsEnum_h | ||
| 11 | + | ||
| 12 | +typedef NS_ENUM(NSUInteger, DSOGiftDetailsStyle) { | ||
| 13 | + DSOGiftDetailsStyleGiving = 0, //赠送 | ||
| 14 | + DSOGiftDetailsStyleReceiving, //接收 | ||
| 15 | +}; | ||
| 16 | + | ||
| 17 | +typedef NS_ENUM(NSUInteger, DSOGiftDetailsPresentAlertStyle) { | ||
| 18 | + DSOGiftDetailsPresentAlertStyleNone = 0, //没有弹框 | ||
| 19 | + DSOGiftDetailsPresentAlertStyleShare, //分享弹框 | ||
| 20 | + DSOGiftDetailsPresentAlertStyleNoPay //没支付弹框 | ||
| 21 | +}; | ||
| 22 | + | ||
| 23 | +#endif /* DSOGiftDetailsEnum_h */ |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSOGiftDetailsViewController.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSOGiftDetailsViewController.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/11/19. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import "DSCnliveShopSDKPBaseViewController.h" | ||
| 10 | +#import "DSOGiftDetailsEnum.h" | ||
| 11 | + | ||
| 12 | +NS_ASSUME_NONNULL_BEGIN | ||
| 13 | + | ||
| 14 | +@interface DSOGiftDetailsViewController : DSCnliveShopSDKPBaseViewController | ||
| 15 | + | ||
| 16 | +/// 是否隐藏我的礼盒 | ||
| 17 | +@property (nonatomic,assign) BOOL isHideMyGifts; | ||
| 18 | +/// 显示样式 | ||
| 19 | +@property (nonatomic,assign) DSOGiftDetailsStyle style; | ||
| 20 | +/// 订单id | ||
| 21 | +@property (nonatomic,copy) NSString * orderId; | ||
| 22 | +/// 是否弹弹框(传对应类型弹对应类型弹框) | ||
| 23 | +@property (nonatomic,assign) DSOGiftDetailsPresentAlertStyle presentAlertStyle; | ||
| 24 | + | ||
| 25 | +@end | ||
| 26 | + | ||
| 27 | +NS_ASSUME_NONNULL_END |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Headers/DSOGiveGiftsViewController.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSOGiveGiftsViewController.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/9/19. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import "DSCnliveShopSDKPBaseViewController.h" | ||
| 10 | + | ||
| 11 | +typedef NS_ENUM(NSUInteger, DSOGiveGiftsStyle) { | ||
| 12 | + DSOGiveGiftsStyleGiving = 0, //送礼样式 | ||
| 13 | + DSOGiveGiftsStyleReceiving, //收礼样式 | ||
| 14 | +}; | ||
| 15 | + | ||
| 16 | +NS_ASSUME_NONNULL_BEGIN | ||
| 17 | + | ||
| 18 | +@interface DSOGiveGiftsViewController : DSCnliveShopSDKPBaseViewController | ||
| 19 | + | ||
| 20 | +#pragma mark - 属性 | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + 商品id style == DSOGiveGiftsStyleGiving时用 | ||
| 24 | + */ | ||
| 25 | +@property (nonatomic,copy) NSString * goodsId; | ||
| 26 | +/** | ||
| 27 | + 订单id style == DSOGiveGiftsStyleReceiving时用 | ||
| 28 | + */ | ||
| 29 | +@property (nonatomic,copy) NSString * orderId; | ||
| 30 | +/** | ||
| 31 | + 能接收礼物的截止时间 style == DSOGiveGiftsStyleReceiving时用 | ||
| 32 | + */ | ||
| 33 | +@property (nonatomic,assign) NSTimeInterval receivingValidTime; | ||
| 34 | +/// 是否隐藏我的礼盒 | ||
| 35 | +@property (nonatomic,assign) BOOL isHideMyGifts; | ||
| 36 | + | ||
| 37 | +#pragma mark - 创建方法 | ||
| 38 | + | ||
| 39 | +/** | ||
| 40 | + 样式 | ||
| 41 | + */ | ||
| 42 | +@property (nonatomic,assign,readonly) DSOGiveGiftsStyle style; | ||
| 43 | + | ||
| 44 | +/** | ||
| 45 | + 创建方法 | ||
| 46 | + | ||
| 47 | + @param style 样式 | ||
| 48 | + @return DSOGiveGiftsViewController | ||
| 49 | + */ | ||
| 50 | +-(instancetype)initWithStyle:(DSOGiveGiftsStyle)style; | ||
| 51 | + | ||
| 52 | +@end | ||
| 53 | + | ||
| 54 | +NS_ASSUME_NONNULL_END |
DSCnliveShopSDK/Classes/DSCnliveShopSDK.framework/Info.plist
No preview for this file type