ASNetApis.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // ASNetApis.h
  3. // Asteria
  4. //
  5. // Created by iOS on 2023/11/25.
  6. //
  7. #ifndef ASNetApis_h
  8. #define ASNetApis_h
  9. #define BaseRequestrUrl(url) ([NSString stringWithFormat:@"%@%@",@"rest/V1/",url])
  10. // MARK: - host
  11. #if (DEBUG)
  12. #define HostPath @"pc.bilisar.com"//@"www.bilisar.com"//@"https://www.bilisar.com/" //测试
  13. #else
  14. #define HostPath @"pc.bilisar.com"//@"https://pc.bilisar.com/" //正式
  15. #endif
  16. // MARK: - path
  17. // MARK: - userinfo
  18. #define registerUrl BaseRequestrUrl(@"customers")
  19. #define loginUrl BaseRequestrUrl(@"integration/customer/token")
  20. #define userinfoUrl BaseRequestrUrl(@"customers/me")
  21. #define vipInfoUrl BaseRequestrUrl(@"vip/index")
  22. #define userBirthUrl BaseRequestrUrl(@"vip/birthday")
  23. //MARK: - 个人中心
  24. #define getSignStateUrl BaseRequestrUrl(@"sign/index")
  25. #define postSignUrl BaseRequestrUrl(@"sign/add")
  26. // MARK: 优惠券/礼品卡
  27. #define getUserCouponUrl BaseRequestrUrl(@"coupon/index")
  28. #define getUserGiftCardUrl BaseRequestrUrl(@"gift/index")
  29. // MARK: 积分
  30. #define getPointsDetailUrl BaseRequestrUrl(@"points/index")
  31. #endif /* ASNetApis_h */