40 lines
1.4 KiB
Objective-C
40 lines
1.4 KiB
Objective-C
//
|
|
// Api+GameOrder.m
|
|
// YuMi
|
|
//
|
|
// Created by P on 2024/7/10.
|
|
//
|
|
|
|
#import "Api+GameOrder.h"
|
|
|
|
@implementation Api (GameOrder)
|
|
|
|
+ (void)requestGamePartnerInfoList:(HttpRequestHelperCompletion)completion
|
|
uid:(NSString *)uid {
|
|
[self makeRequest:@"gamePartnerInfo/list"
|
|
method:HttpRequestHelperMethodGET
|
|
completion:completion, __FUNCTION__, uid, nil];
|
|
}
|
|
|
|
+ (void)requestGameOrderRecord:(HttpRequestHelperCompletion)completion
|
|
currSize:(NSInteger)currSize
|
|
pageSize:(NSInteger)pageSize
|
|
searchType:(NSInteger)searchType
|
|
uid:(NSString *)uid {
|
|
[self makeRequest:@"gamePartnerOrder/record"
|
|
method:HttpRequestHelperMethodGET
|
|
completion:completion, __FUNCTION__, @(currSize).stringValue, @(pageSize).stringValue, @(searchType).stringValue, uid, nil];
|
|
}
|
|
|
|
+ (void)requestGameOrder:(HttpRequestHelperCompletion)completion
|
|
gameId:(NSInteger)gameId
|
|
gameUid:(NSInteger)gameUid
|
|
inning:(NSInteger)inning
|
|
uid:(NSString *)uid {
|
|
[self makeRequest:@"gamePartnerOrder/submit"
|
|
method:HttpRequestHelperMethodPOST
|
|
completion:completion, __FUNCTION__, @(gameId).stringValue, @(gameUid).stringValue, @(inning).stringValue, uid, nil];
|
|
}
|
|
|
|
@end
|