RADataProvider.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // RADataProvider.h
  3. // iSales-USAI
  4. //
  5. // Created by Rui Zhang on 11/11/21.
  6. // Copyright © 2021 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "NetworkUtils.h"
  10. #import "RANetwork.h"
  11. #import "AESCrypt.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface RADataProvider : RANetwork
  14. +(void)request_editor:(NSString*) request_url params:(NSMutableDictionary*)params completionHandler:(resultHandler)result;
  15. +(void)request_commoneditor_partialrefresh: (NSMutableDictionary*)params url:(NSString*)url completionHandler:(resultHandler)result;
  16. +(void)SaveEditor:(NSMutableDictionary*)params completionHandler:(resultHandler)result;
  17. +(void)request_scansearch:(long ) offset limit :(long)limit keywords :(NSString*) keywords completionHandler:(resultHandler)result;
  18. +(void)request_scan_server:(resultHandler)result;
  19. +(void)request_scan_news:(resultHandler)result;
  20. +(void)request_scan_stock:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  21. +(void)request_sign_up:user email:(NSString*)email password:(NSString*) pwd completionHandler:(resultHandler)result;
  22. +(void)request_validate_scan_server:(NSString*)url name:(NSString*)name password:(NSString*)password completionHandler:(resultHandler)result;
  23. +(NSString*)getSiteName;
  24. +(void)request_change_password:(NSString*) pwd completionHandler:(resultHandler)result;
  25. +(void)load_scan_models;
  26. +(NSArray*)request_scan_model_by_names:(NSString*)names;
  27. @end
  28. NS_ASSUME_NONNULL_END